Package org.fcrepo.kernel.impl.models
Class ResourceHelperImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.ResourceHelperImpl
-
- All Implemented Interfaces:
ResourceHelper
@Component public class ResourceHelperImpl extends Object implements ResourceHelper
Utility class for helper methods.- Since:
- 6.0.0
- Author:
- whikloj
-
-
Constructor Summary
Constructors Constructor Description ResourceHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete 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".
-
-
-
Constructor Detail
-
ResourceHelperImpl
public 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 interfaceResourceHelper
- Parameters:
transaction
- The transactionresourceId
- 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 interfaceResourceHelper
- Parameters:
transaction
- The current transactionfedoraId
- The internal identifierincludeDeleted
- Whether to check for deleted resources too.- Returns:
- True if the identifier resolves to a resource.
-
-