Package org.fcrepo.kernel.impl.models
Class ResourceFactoryImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.ResourceFactoryImpl
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.models.ResourceFactory
@Component public class ResourceFactoryImpl extends Object implements org.fcrepo.kernel.api.models.ResourceFactory
Implementation of ResourceFactory interface.- Since:
- 2019-09-23
- Author:
- whikloj
-
-
Constructor Summary
Constructors Constructor Description ResourceFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<org.fcrepo.kernel.api.models.FedoraResource>getChildren(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId resourceId)org.fcrepo.kernel.api.models.FedoraResourcegetContainer(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId resourceId)org.fcrepo.kernel.api.models.FedoraResourcegetResource(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraID)org.fcrepo.kernel.api.models.FedoraResourcegetResource(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID)<T extends org.fcrepo.kernel.api.models.FedoraResource>
TgetResource(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Class<T> clazz)org.fcrepo.kernel.api.models.FedoraResourcegetResource(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraID)<T extends org.fcrepo.kernel.api.models.FedoraResource>
TgetResource(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId identifier, Class<T> clazz)
-
-
-
Constructor Detail
-
ResourceFactoryImpl
public ResourceFactoryImpl()
-
-
Method Detail
-
getResource
public org.fcrepo.kernel.api.models.FedoraResource getResource(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID) throws org.fcrepo.kernel.api.exception.PathNotFoundException
- Specified by:
getResourcein interfaceorg.fcrepo.kernel.api.models.ResourceFactory- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getResource
public org.fcrepo.kernel.api.models.FedoraResource getResource(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraID) throws org.fcrepo.kernel.api.exception.PathNotFoundException
- Specified by:
getResourcein interfaceorg.fcrepo.kernel.api.models.ResourceFactory- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getResource
public org.fcrepo.kernel.api.models.FedoraResource getResource(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId fedoraID) throws org.fcrepo.kernel.api.exception.PathNotFoundException
- Specified by:
getResourcein interfaceorg.fcrepo.kernel.api.models.ResourceFactory- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getResource
public <T extends org.fcrepo.kernel.api.models.FedoraResource> T getResource(org.fcrepo.kernel.api.identifiers.FedoraId identifier, Class<T> clazz) throws org.fcrepo.kernel.api.exception.PathNotFoundException
- Specified by:
getResourcein interfaceorg.fcrepo.kernel.api.models.ResourceFactory- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getResource
public <T extends org.fcrepo.kernel.api.models.FedoraResource> T getResource(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId identifier, Class<T> clazz) throws org.fcrepo.kernel.api.exception.PathNotFoundException
- Specified by:
getResourcein interfaceorg.fcrepo.kernel.api.models.ResourceFactory- Throws:
org.fcrepo.kernel.api.exception.PathNotFoundException
-
getContainer
public org.fcrepo.kernel.api.models.FedoraResource getContainer(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
- Specified by:
getContainerin interfaceorg.fcrepo.kernel.api.models.ResourceFactory
-
getChildren
public Stream<org.fcrepo.kernel.api.models.FedoraResource> getChildren(String transactionId, org.fcrepo.kernel.api.identifiers.FedoraId resourceId)
- Specified by:
getChildrenin interfaceorg.fcrepo.kernel.api.models.ResourceFactory
-
-