Package org.mycore.pi.doi
Class MCRCrossrefService
java.lang.Object
org.mycore.pi.MCRPIService<T>
org.mycore.pi.MCRPIJobService<MCRDigitalObjectIdentifier>
org.mycore.pi.doi.MCRDOIBaseService
org.mycore.pi.doi.MCRCrossrefService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mycore.pi.MCRPIJobService
MCRPIJobService.PiJobAction
-
Field Summary
Fields inherited from class org.mycore.pi.doi.MCRDOIBaseService
CONTEXT_DOI, CONTEXT_OBJ
Fields inherited from class org.mycore.pi.MCRPIJobService
CREATION_PREDICATE, JOB_API_USER_PROPERTY, REGISTRATION_PREDICATE
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
Checks the service parameters.protected void
delete
(MCRDigitalObjectIdentifier identifier, MCRBase obj, String additional) Should handle deletion of a Object with the PI.protected void
protected String
protected void
registerIdentifier
(MCRBase obj, String additional, MCRDigitalObjectIdentifier pi) protected void
registerJob
(Map<String, String> parameters) protected Document
protected void
Methods inherited from class org.mycore.pi.doi.MCRDOIBaseService
checkJobValid, getJobInformation, getPassword, getSchema, getTransformer, getTransformerID, getUsername, initCommonProperties, insertIdentifierToDatabase, provideRegisterDate, resolveSchema, setPassword, setSchema, setTransformerID, setUsername, startRegisterJob, update, validateDocument
Methods inherited from class org.mycore.pi.MCRPIJobService
addDeleteJob, addRegisterJob, addUpdateJob, getAction, getRegistrationCondition, parseIdentifier, rollbackDeleteJob, rollbackRegisterJob, rollbackUpdateJob, runAsJobUser, updateRegistrationDate, updateStartRegistrationDate, validateJobUserRights
Methods inherited from class org.mycore.pi.MCRPIService
addFlagToObject, getCreationPredicate, getGenerator, getGson, getMetadataService, getNewIdentifier, getPredicateInstance, getProperties, getRegistrationPredicate, getServiceID, getTableEntry, getType, hasFlag, hasFlag, hasRegistrationStarted, init, isCreated, isRegistered, onDelete, onUpdate, register, register, register, removeFlagFromObject, requireNotEmptyProperty, setProperties, updateFlag, updateFlagsInDatabase, validateAlreadyCreated, validatePermission, validateRegistration, validateRegistration
-
Field Details
-
DEFAULT_SCHEMA
- See Also:
-
-
Constructor Details
-
MCRCrossrefService
public MCRCrossrefService()
-
-
Method Details
-
getDefaultSchemaPath
- Specified by:
getDefaultSchemaPath
in classMCRDOIBaseService
-
checkConfiguration
Description copied from class:MCRPIService
Checks the service parameters.- Overrides:
checkConfiguration
in classMCRPIJobService<MCRDigitalObjectIdentifier>
- Throws:
MCRConfigurationException
- if parameter is missing or wrong!
-
registerIdentifier
protected void registerIdentifier(MCRBase obj, String additional, MCRDigitalObjectIdentifier pi) throws MCRPersistentIdentifierException - Specified by:
registerIdentifier
in classMCRPIService<MCRDigitalObjectIdentifier>
- Throws:
MCRPersistentIdentifierException
-
transform
- Specified by:
transform
in classMCRDOIBaseService
- Throws:
MCRPersistentIdentifierException
-
delete
protected void delete(MCRDigitalObjectIdentifier 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<MCRDigitalObjectIdentifier>
- 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)
-
deleteJob
- Specified by:
deleteJob
in classMCRPIJobService<MCRDigitalObjectIdentifier>
- Throws:
MCRPersistentIdentifierException
-
updateJob
- Specified by:
updateJob
in classMCRPIJobService<MCRDigitalObjectIdentifier>
- Throws:
MCRPersistentIdentifierException
-
registerJob
- Specified by:
registerJob
in classMCRPIJobService<MCRDigitalObjectIdentifier>
- Throws:
MCRPersistentIdentifierException
-