Package org.mycore.ocfl.commands
Class MCROCFLCommands
java.lang.Object
org.mycore.ocfl.commands.MCROCFLCommands
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
deleteOCFLClassification
(String classId) static void
deleteOCFLUser
(String userId) static void
migrateToOCFL
(String repository) static void
updateOCFLClassification
(String classId) static void
updateOCFLUser
(String userId) static void
writeUserToDb
(String userId) static void
writeUserToDbVersioned
(String userId, String revision)
-
Field Details
-
SUCCESS
- See Also:
-
SUCCESS_BUT_WITHOUT_HISTORY
- See Also:
-
FAILED
- See Also:
-
FAILED_AND_NOW_INVALID_STATE
- See Also:
-
-
Constructor Details
-
MCROCFLCommands
public MCROCFLCommands()
-
-
Method Details
-
migrateToOCFL
@MCRCommand(syntax="migrate metadata to repository {0}", help="migrates all the metadata to the ocfl repository with the id {0}") public static void migrateToOCFL(String repository) -
updateOCFLClassifications
@MCRCommand(syntax="update ocfl classifications", help="Update all classifications in the OCFL store from database") public static List<String> updateOCFLClassifications() -
updateOCFLClassification
@MCRCommand(syntax="update ocfl classification {0}", help="Update classification {0} in the OCFL Store from database") public static void updateOCFLClassification(String classId) -
deleteOCFLClassification
@MCRCommand(syntax="delete ocfl classification {0}", help="Delete classification {0} in the OCFL Store") public static void deleteOCFLClassification(String classId) -
syncClassificationRepository
@MCRCommand(syntax="sync ocfl classifications", help="Update all classifications and remove deleted Classifications to resync OCFL Store to the Database") public static List<String> syncClassificationRepository() -
updateOCFLUsers
@MCRCommand(syntax="update ocfl users", help="Update all users in the OCFL store from database") public static List<String> updateOCFLUsers() -
updateOCFLUser
@MCRCommand(syntax="update ocfl user {0}", help="Update user {0} in the OCFL Store from database") public static void updateOCFLUser(String userId) -
deleteOCFLUser
@MCRCommand(syntax="delete ocfl user {0}", help="Delete user {0} in the OCFL Store") public static void deleteOCFLUser(String userId) -
syncUserRepository
@MCRCommand(syntax="sync ocfl users", help="Update all users and remove deleted users to resync OCFL Store to the Database") public static List<String> syncUserRepository() -
writeUserToDbVersioned
@MCRCommand(syntax="restore user {0} from ocfl with version {1}", help="restore a specified revision of a ocfl user backup to the primary user store") public static void writeUserToDbVersioned(String userId, String revision) throws IOException - Throws:
IOException
-
writeUserToDb
@MCRCommand(syntax="restore user {0} from ocfl", help="restore the latest revision of a ocfl user backup to the primary user store") public static void writeUserToDb(String userId) throws IOException - Throws:
IOException
-