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 -
Method Summary
Modifier and TypeMethodDescriptionStream<org.fcrepo.kernel.api.models.FedoraResource> getChildren(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId resourceId) org.fcrepo.kernel.api.models.FedoraResourcegetContainer(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId resourceId) 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 Details
-
ResourceFactoryImpl
public ResourceFactoryImpl()
-
-
Method Details
-
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 <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(org.fcrepo.kernel.api.Transaction transaction, 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(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId resourceId) - Specified by:
getChildrenin interfaceorg.fcrepo.kernel.api.models.ResourceFactory
-