Interface ResourceHelper

    • Method Detail

      • doesResourceExist

        boolean doesResourceExist​(Transaction transaction,
                                  FedoraId fedoraId,
                                  boolean includeDeleted)
        Check if a resource exists.
        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.
      • isGhostNode

        boolean isGhostNode​(Transaction transaction,
                            FedoraId resourceId)
        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.
        Parameters:
        transaction - The transaction
        resourceId - Identifier of the resource
        Returns:
        Whether the resource does not exist, but has