Package org.fcrepo.kernel.api.models
Interface ResourceHelper
-
- All Known Implementing Classes:
ResourceHelperImpl
public interface ResourceHelper
Utility class interface for helper methods.- Since:
- 6.0.0
- Author:
- whikloj
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted)
Check if a resource exists.boolean
isGhostNode(Transaction transaction, FedoraId resourceId)
Is the resource a "ghost node".
-
-
-
Method Detail
-
doesResourceExist
boolean doesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted)
Check if a resource exists.- Parameters:
transaction
- The current transactionfedoraId
- The internal identifierincludeDeleted
- 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 transactionresourceId
- Identifier of the resource- Returns:
- Whether the resource does not exist, but has
-
-