Package org.fcrepo.kernel.api.models
Interface ResourceHelper
public interface ResourceHelper
Utility class interface for helper methods.
- Since:
- 6.0.0
- Author:
- whikloj
-
Method Summary
Modifier and TypeMethodDescriptionbooleandoesResourceExist(Transaction transaction, FedoraId fedoraId, boolean includeDeleted) Check if a resource exists.booleanisGhostNode(Transaction transaction, FedoraId resourceId) Is the resource a "ghost node".
-
Method Details
-
doesResourceExist
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
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
-