Package org.mycore.mods
Class MCRMODSCommands
java.lang.Object
org.mycore.frontend.cli.MCRAbstractCommands
org.mycore.mods.MCRMODSCommands
- All Implemented Interfaces:
MCRExternalCommandInterface
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands
command
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
importFromRSSFeed
(String sourceSystemID, String projectID) loadFromDirectory
(String directory, String projectID) static void
loadFromFile
(String modsFileName, String projectID) static void
loadFromFileWithFiles
(String modsFileName, String fileDirName, String projectID) protected static void
setDefaultPermissions
(MCRObjectID derivateID) Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands
addCommand, getDisplayName, getPossibleCommands, setDisplayName
-
Field Details
-
MODS_V3_XSD_URI
- See Also:
-
-
Constructor Details
-
MCRMODSCommands
public MCRMODSCommands()
-
-
Method Details
-
loadFromDirectory
-
loadFromFile
@MCRCommand(syntax="load mods document from file {0} for project {1}", help="Load MODS document {0} as MyCoRe Object for project {1}", order=20) public static void loadFromFile(String modsFileName, String projectID) throws JDOMException, IOException, MCRActiveLinkException, SAXException, MCRPersistenceException, MCRAccessException -
loadFromFileWithFiles
@MCRCommand(syntax="load mods document from file {0} with files from directory {1} for project {2}", help="Load MODS document {0} as MyCoRe Object with files from direcory {1} for project {2}", order=10) public static void loadFromFileWithFiles(String modsFileName, String fileDirName, String projectID) throws JDOMException, IOException, MCRActiveLinkException, SAXException, MCRPersistenceException, MCRAccessException -
importFromRSSFeed
@MCRCommand(syntax="import publications from {0} RSS feed for project {1}", help="Read RSS feed from data source {0}, convert and save new publications as MyCoRe Object for project {1}", order=30) public static void importFromRSSFeed(String sourceSystemID, String projectID) throws Exception - Throws:
Exception
-
setDefaultPermissions
-