Package org.mycore.pi
Class MCRPIMetadataService<T extends MCRPersistentIdentifier>
java.lang.Object
org.mycore.pi.MCRPIMetadataService<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
MCRAbstractMODSMetadataService
,MCRPIXPathMetadataService
Should be able to insert/remove DOI, URN or other identifiers to metadata and check if they already have a
Identifier of type T
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<MCRPersistentIdentifier>
getIdentifier
(MCRBase obj, String additional) abstract void
insertIdentifier
(T identifier, MCRBase obj, String additional) abstract void
removeIdentifier
(T identifier, MCRBase obj, String additional) final void
setProperties
(Map<String, String> properties)
-
Constructor Details
-
MCRPIMetadataService
public MCRPIMetadataService()
-
-
Method Details
-
getProperties
-
setProperties
-
insertIdentifier
public abstract void insertIdentifier(T identifier, MCRBase obj, String additional) throws MCRPersistentIdentifierException - Throws:
MCRPersistentIdentifierException
-
removeIdentifier
-
getIdentifier
public abstract Optional<MCRPersistentIdentifier> getIdentifier(MCRBase obj, String additional) throws MCRPersistentIdentifierException - Throws:
MCRPersistentIdentifierException
-