Class ResourceHelperImpl

    • Method Detail

      • isGhostNode

        public boolean isGhostNode​(Transaction transaction,
                                   FedoraId resourceId)
        Description copied from interface: ResourceHelper
        Is the resource a "ghost node". Ghost nodes are defined as a resource that does not exist, but whose URI is part of the URI of another resource? For example: http://localhost/rest/a/b - does exist http://localhost/rest/a - does not exist and is therefore a ghost node.
        Specified by:
        isGhostNode in interface ResourceHelper
        Parameters:
        transaction - The transaction
        resourceId - Identifier of the resource
        Returns:
        Whether the resource does not exist, but has
      • doesResourceExist

        public boolean doesResourceExist​(Transaction transaction,
                                         FedoraId fedoraId,
                                         boolean includeDeleted)
        Description copied from interface: ResourceHelper
        Check if a resource exists.
        Specified by:
        doesResourceExist in interface ResourceHelper
        Parameters:
        transaction - The current transaction
        fedoraId - The internal identifier
        includeDeleted - Whether to check for deleted resources too.
        Returns:
        True if the identifier resolves to a resource.