Package org.mycore.pi.urn
Class MCRURNOAIService
This class registers urn for Metadata.
-
Field Summary
Fields inherited from class org.mycore.pi.MCRPIService
GENERATOR_CONFIG_PREFIX, GENERATOR_PROPERTY_KEY, METADATA_SERVICE_CONFIG_PREFIX, METADATA_SERVICE_PROPERTY_KEY, PI_FLAG, REGISTRATION_CONFIG_PREFIX, TRANSLATE_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Should handle deletion of a Object with the PI.protected Date
provideRegisterDate
(MCRBase obj, String additional) protected void
registerIdentifier
(MCRBase obj, String additional, MCRDNBURN urn) protected void
Should handle updates of a Object with the PI.Methods inherited from class org.mycore.pi.MCRPIService
addFlagToObject, checkConfiguration, getCreationPredicate, getGenerator, getGson, getMetadataService, getNewIdentifier, getPredicateInstance, getProperties, getRegistrationPredicate, getServiceID, getTableEntry, getType, hasFlag, hasFlag, hasRegistrationStarted, init, insertIdentifierToDatabase, isCreated, isRegistered, onDelete, onUpdate, register, register, register, removeFlagFromObject, requireNotEmptyProperty, setProperties, updateFlag, updateFlagsInDatabase, validateAlreadyCreated, validatePermission, validateRegistration, validateRegistration
-
Constructor Details
-
MCRURNOAIService
public MCRURNOAIService()
-
-
Method Details
-
registerIdentifier
protected void registerIdentifier(MCRBase obj, String additional, MCRDNBURN urn) throws MCRPersistentIdentifierException - Specified by:
registerIdentifier
in classMCRPIService<MCRDNBURN>
- Throws:
MCRPersistentIdentifierException
-
delete
protected void delete(MCRDNBURN identifier, MCRBase obj, String additional) throws MCRPersistentIdentifierException Description copied from class:MCRPIService
Should handle deletion of a Object with the PI. E.g. TheMCRDOIService
sets the active flag in Datacite datacentre to false.- Specified by:
delete
in classMCRPIService<MCRDNBURN>
- Parameters:
identifier
- the Identifierobj
- the deleted object- Throws:
MCRPersistentIdentifierException
- to abort deletion of the object or if something went wrong, (e.g.MCRDOIService
throws if not a superuser tries to delete the object)
-
update
protected void update(MCRDNBURN identifier, MCRBase obj, String additional) throws MCRPersistentIdentifierException Description copied from class:MCRPIService
Should handle updates of a Object with the PI. E.g. TheMCRDOIService
sends the updated metadata to the Datacite datacentre.- Specified by:
update
in classMCRPIService<MCRDNBURN>
- Parameters:
identifier
- the Identifierobj
- the deleted object- Throws:
MCRPersistentIdentifierException
- to abort update of the object or if something went wrong.
-
provideRegisterDate
- Overrides:
provideRegisterDate
in classMCRPIService<MCRDNBURN>
-