Class MCRSwordCollectionProvider

java.lang.Object
org.mycore.sword.application.MCRSwordCollectionProvider
All Implemented Interfaces:
MCRSwordLifecycle

public abstract class MCRSwordCollectionProvider extends Object implements MCRSwordLifecycle
Interface to tell the MyCoRe SwordV2 which MyCoRe Objects will be visible to sword and in which collections they are.
Author:
Sebastian Hofmann (mcrshofm)
  • Field Details

    • LOGGER

      protected static Logger LOGGER
  • Constructor Details

    • MCRSwordCollectionProvider

      protected MCRSwordCollectionProvider()
  • Method Details

    • isVisible

      public abstract boolean isVisible()
      tells the SwordV2 impl if the Collection is visible for the current User.
      Returns:
      true if the collection should be provided.
    • getSupportedPagacking

      public abstract List<String> getSupportedPagacking()
      tells which packaging is supported by the collection.
      Returns:
      a list of supported packacking
    • getIDSupplier

      public abstract MCRSwordObjectIDSupplier getIDSupplier()
      Returns:
      a supplier which tells the MyCoRe Sword implementation which objects can be exposed to a collection
    • getContainerHandler

      public MCRSwordContainerHandler getContainerHandler()
    • getIngester

      public abstract MCRSwordIngester getIngester()
    • getMetadataProvider

      public abstract MCRSwordMetadataProvider getMetadataProvider()
    • getMediaHandler

      public MCRSwordMediaHandler getMediaHandler()
      Returns:
      the MCRSwordMediaHandler which will be used for this collection
    • getAuthHandler

      public abstract MCRSwordAuthHandler getAuthHandler()
    • getDerivateIDsofObject

      public Stream<String> getDerivateIDsofObject(String mcrObjectId) throws org.swordapp.server.SwordError
      Throws:
      org.swordapp.server.SwordError
    • init

      public void init(MCRSwordLifecycleConfiguration lifecycleConfiguration)
      Specified by:
      init in interface MCRSwordLifecycle
    • destroy

      public void destroy()
      Specified by:
      destroy in interface MCRSwordLifecycle