Checks if the input data can be handled by this class. Throws an error if it can't handle the data.
Input data that could potentially be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Handles the given input. This should only be done if the canHandle function returned true
.
Therefore, consider using the handleSafe function instead.
A promise resolving when the handling is finished. Return value depends on the given type.
Input data that will be handled if it can be handled.
A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.
Verifies if the root container already exists and has the pim:Storage type.
Initializer that sets up the root container. Will copy all the files and folders in the given path to the corresponding documents and containers. This will always happen when the server starts unless the following 2 conditions are both fulfilled:
It is important that the ResourcesGenerator generates a
<> a pim:Storage
triple for the root container: this prevents deletion of the root container as storage root containers can not be deleted. Solid, §4.1: "Servers exposing the storage resource MUST advertise by including the HTTP Link header with rel="type" targeting http://www.w3.org/ns/pim/space#Storage when responding to storage’s request URI." https://solid.github.io/specification/protocol#storage