Package org.mycore.sword.application
Class MCRSwordCollectionProvider
java.lang.Object
org.mycore.sword.application.MCRSwordCollectionProvider
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
abstract MCRSwordAuthHandler
getDerivateIDsofObject
(String mcrObjectId) abstract MCRSwordObjectIDSupplier
abstract MCRSwordIngester
abstract MCRSwordMetadataProvider
tells which packaging is supported by the collection.void
init
(MCRSwordLifecycleConfiguration lifecycleConfiguration) abstract boolean
tells the SwordV2 impl if the Collection is visible for the current User.
-
Field Details
-
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
tells which packaging is supported by the collection.- Returns:
- a list of supported packacking
-
getIDSupplier
- Returns:
- a supplier which tells the MyCoRe Sword implementation which objects can be exposed to a collection
-
getContainerHandler
-
getIngester
-
getMetadataProvider
-
getMediaHandler
- Returns:
- the
MCRSwordMediaHandler
which will be used for this collection
-
getAuthHandler
-
getDerivateIDsofObject
public Stream<String> getDerivateIDsofObject(String mcrObjectId) throws org.swordapp.server.SwordError - Throws:
org.swordapp.server.SwordError
-
init
- Specified by:
init
in interfaceMCRSwordLifecycle
-
destroy
public void destroy()- Specified by:
destroy
in interfaceMCRSwordLifecycle
-