@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
30 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseResourceStore = void 0;
const NotImplementedHttpError_1 = require("../util/errors/NotImplementedHttpError");
/**
* Base implementation of ResourceStore for implementers of custom stores.
*/
/* eslint-disable unused-imports/no-unused-vars */
class BaseResourceStore {
async hasResource(identifier) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
async getRepresentation(identifier, preferences, conditions) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
async setRepresentation(identifier, representation, conditions) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
async addResource(container, representation, conditions) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
async deleteResource(identifier, conditions) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
async modifyResource(identifier, patch, conditions) {
throw new NotImplementedHttpError_1.NotImplementedHttpError();
}
}
exports.BaseResourceStore = BaseResourceStore;
//# sourceMappingURL=BaseResourceStore.js.map