Package org.mycore.pi.doi.cli
Class MCRDOICommands
java.lang.Object
org.mycore.pi.doi.cli.MCRDOICommands
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
repairIncompleteRegisteredDOI
(String doiString, String serviceID) static void
synchronizeDatabase
(String serviceID) static void
updateMediaListForDOI
(String doiString, String serviceID) updateMediaListOfAllDOI
(String serviceID) static void
validateCrossrefDocument
(String mycoreIDString, String transformer)
-
Field Details
-
CROSSREF_SCHEMA_PATH
- See Also:
-
-
Constructor Details
-
MCRDOICommands
public MCRDOICommands()
-
-
Method Details
-
repairIncompleteRegisteredDOI
@MCRCommand(syntax="repair incomplete registered doi {0} with registration service {1}", help="Use this method if a DOI is registered, but not inserted in the Database. {0} is the DOI and {1} the registration service from configuration.") public static void repairIncompleteRegisteredDOI(String doiString, String serviceID) throws MCRPersistentIdentifierException, MCRAccessException, MCRActiveLinkException -
synchronizeDatabase
@MCRCommand(syntax="repair registered dois {0}", help="Contacts the Registration Service and inserts all registered DOIs to the Database. It also updates all media files. The Service ID{0} is the id from the configuration.", order=10) public static void synchronizeDatabase(String serviceID) -
updateMediaListOfAllDOI
-
updateMediaListForDOI
@MCRCommand(syntax="repair medialist of {0} and service {1}", help="Sends new media list to Datacite. {0} is the DOI. The Service ID{1} is the id from the configuration.") public static void updateMediaListForDOI(String doiString, String serviceID) -
validateCrossrefDocument
@MCRCommand(syntax="validate document {0} with transformer {1} against crossref schema") public static void validateCrossrefDocument(String mycoreIDString, String transformer) throws MCRPersistentIdentifierException - Throws:
MCRPersistentIdentifierException
-