Checks whether the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.
Input that could potentially be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Creates a new pod and updates the account accordingly.
Identifier of the account that is creating the account.
Settings to create a pod with.
If the pod is allowed to overwrite existing data.
The ID of the new pod resource.
Handles the given input. This may only be called if canHandle did not reject. When unconditionally calling both in sequence, consider handleSafe instead.
A promise resolving when handling is finished.
Helper function that first runs canHandle followed by handle. Throws the error of canHandle if the data cannot be handled, or returns the result of handle otherwise.
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.
Remove an owner from a pod. This should not remove the last owner as a pod always needs to have at least one owner. https://solidproject.org/TR/2022/protocol-20221231#server-storage-track-owner
ID of the pod.
WebID of the owner.
Add or update an owner of a pod. In case there already is an owner with this WebID, it will be updated, otherwise a new owner will be added.
ID of the pod.
WebID of the owner.
Whether the owner wants to be exposed or not.
A PodStore implementation using a PodManager to create pods and a AccountLoginStorage to store the data. Needs to be initialized before it can be used.
Adds the initial WebID as the owner of the pod. By default, this owner is not exposed through a link header. This can be changed by setting the constructor
visible
parameter totrue
.