Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Stream<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.FedoraResource getContainer​(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId resourceId)  
      org.fcrepo.kernel.api.models.FedoraResource getResource​(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraID)  
      <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)  
    • Method Detail

      • 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:
        getResource in interface org.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:
        getResource in interface org.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:
        getContainer in interface org.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:
        getChildren in interface org.fcrepo.kernel.api.models.ResourceFactory