Handles the creation of pods. Will call the stored PodStore with the provided settings.

Hierarchy (view full)

Constructors

Properties

baseUrl: string
identifierGenerator: IdentifierGenerator
logger: Logger = ...
podStore: PodStore
relativeWebIdPath: string
webIdStore: WebIdStore

Methods

  • Checks whether the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.

    Parameters

    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not.

  • Creates a pod with the given settings. In case pod creation fails, the given WebID link will be removed, if there is one, before throwing an error.

    Parameters

    • accountId: string
    • settings: PodSettings
    • overwrite: boolean
    • OptionalwebIdLink: string

    Returns Promise<string>

  • Links the WebID to the account if linkWebId is true. Also updates the oidcIssuer value in the settings object in that case.

    Parameters

    • linkWebId: boolean
    • webId: string
    • accountId: string
    • settings: PodSettings

    Returns Promise<undefined | string>