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

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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:
      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