Uses of Annotation Interface
org.mycore.frontend.cli.annotation.MCRCommand
Package
Description
All classes related to the change history of
MCRObject
and MCRDerivate
.Servlets, Commands and Xalan extensions
new MyCoRe user system
-
Uses of MCRCommand in org.mycore.access.mcrimpl
-
Uses of MCRCommand in org.mycore.crypt
Modifier and TypeMethodDescriptionstatic void
decrypt {0} with cipher {1}static void
encrypt {0} with cipher {1}static void
MCRCryptCommands.generateKeyFile
(String cipherid) generate keyfile for cipher {0}static void
MCRCryptCommands.overwriteKeyFile
(String cipherid) generate and overwrite of keyfile of cipher {0}static void
MCRCryptCommands.showChipherConfig()
list all cipher configuration -
Uses of MCRCommand in org.mycore.datamodel.metadata.history
Modifier and TypeMethodDescriptionMCRMetadataHistoryCommands.buildHistory()
MCRMetadataHistoryCommands.buildHistory
(String baseId) static void
MCRMetadataHistoryCommands.buildSingleHistory
(String mcrId) MCRMetadataHistoryCommands.clearHistory()
static void
MCRMetadataHistoryCommands.clearHistory
(String baseId) static void
MCRMetadataHistoryCommands.clearSingleHistory
(String mcrId) -
Uses of MCRCommand in org.mycore.datamodel.objectinfo
Modifier and TypeMethodDescriptionMCRObjectInfoCommands.createAllObjectInfo()
MCRObjectInfoCommands.createObjectInfoForBase
(String baseId) static void
MCRObjectInfoCommands.createObjectInfoForObject
(String idStr) static void
MCRObjectInfoCommands.deleteAllObjectInfo()
-
Uses of MCRCommand in org.mycore.frontend.cli
Modifier and TypeMethodDescriptionstatic void
static void
MCRBatchEditorCommands.batchAddIf
(String oid, String level, String fieldIf, String valueIf, String field2Add, String value2Add) static void
MCRBatchEditorCommands.batchRemove
(String oid, String level, String field, String value) static void
MCRBatchEditorCommands.batchRemoveIf
(String oid, String level, String fieldIf, String valueIf, String field2Rem, String value2Rem) static void
MCRBatchEditorCommands.batchReplace
(String oid, String level, String oldField, String oldValue, String newField, String newValue) static void
MCRBasicCommands.cancelonError()
static void
MCRLoggingCommands.changeLogLevel
(String name, String logLevelToSet) MCRClassification2Commands.checkAllClassifications()
static void
MCRClassification2Commands.checkClassification
(String id) static void
MCRObjectCommands.checkDerivatesInObjects
(String baseId) Check the derivate links in objects of MCR base ID for existing.static void
MCRObjectCommands.checkForCircles()
static void
MCRDerivateCommands.checkObjectsInDerivates
(String baseId) Check the object links in derivates of MCR base ID for existing.static boolean
MCRBasicCommands.checkXMLFile
(String fileName) The method parse and check an XML file.static void
MCRObjectCommands.clearLinks
(String id) Runs though all mycore objects which are linked with the given object and removes its link.static void
MCRClassification2Commands.countChildren
(String classID) Counts the classification categories on top levelstatic void
MCRBasicCommands.createConfigurationDirectory()
static void
Deletes a classificationstatic void
Delete an MCRDerivate from the datastore.Delete MCRDerivates form ID to ID from the datastore.static void
Delete a MCRObject from the datastore.MCRDerivateCommands.deleteAllDerivates()
deletes all MCRDerivate from the datastore.MCRObjectCommands.deleteAllObjects
(String type) Delete all MCRObject from the datastore for a given type.static void
MCRAccessCommands.deleteAllPermissions()
delete all permissionsMCRObjectCommands.deleteFromTo
(String idFrom, String idTo) Delete MCRObject's form ID to ID from the datastore.static void
MCRAccessCommands.deletePermission
(String permission) delete the permission {0}MCRObjectCommands.deleteTopologicalAllObjects()
Delete all MCRObjects from the datastore in topological orderMCRObjectCommands.executeForSelected
(String command) static void
MCRBasicCommands.executeShellCommand
(String command) static void
MCRBasicCommands.exit()
static boolean
Save a MCRClassification.static boolean
Save all MCRClassifications.MCRDerivateCommands.exportAllDerivatesOfProjectWithStylesheet
(String project, String dirname, String style) This command looks for all derivates starting with project name in the application and builds export commands.MCRDerivateCommands.exportAllDerivatesWithStylesheet
(String dirname, String style) This command looks for all derivates in the application and builds export commands.MCRObjectCommands.exportAllObjectsOfBaseWithStylesheet
(String base, String dirname, String style) Export all MCRObject's with data base base to files named MCRObjectID.xml in a directory named dirname.MCRObjectCommands.exportAllObjectsOfTypeWithStylesheet
(String type, String dirname, String style) Export all MCRObject's with data type type to files named MCRObjectID.xml in a directory named dirname.static void
MCRAccessCommands.exportAllPermissionsToFile
(String filename) This method just export the permissions to a filestatic void
MCRDerivateCommands.exportWithStylesheet
(String id, String dirname, String style) Export an MCRDerivate to a file named MCRObjectID.xml in a directory named dirname and store the derivate files in a nested directory named MCRObjectID.static void
MCRDerivateCommands.exportWithStylesheet
(String fromID, String toID, String dirname, String style) Export any MCRDerivate's to files named MCRObjectID.xml in a directory named dirname and the derivate files in nested directories named MCRObjectID.static void
MCRObjectCommands.exportWithStylesheet
(String id, String dirname, String style) Export an MCRObject to a file named MCRObjectID.xml in a directory named dirname.static void
MCRObjectCommands.exportWithStylesheet
(String fromID, String toID, String dirname, String style) Export any MCRObject's to files named MCRObjectID.xml in a directory named dirname.static void
MCRObjectCommands.exportWithTransformer
(String id, String dirname, String transname) Export an MCRObject to a file named MCRObjectID.xml in a directory named dirname.static void
MCRObjectCommands.exportWithTransformer
(String fromID, String toID, String dirname, String transname) Export any MCRObject's to files named MCRObjectID.xml in a directory named dirname.static void
MCRClassification2Commands.filterClassificationWithMapping
(String id) static void
static void
Get the last used MCRObjectID for the given MCRObjectID base.static void
Get the next free MCRObjectID for the given MCRObjectID base.static void
static void
MCRDerivateCommands.linkDerivateToObject
(String derivateId, String objectId) Links the given derivate to the given object.static void
MCRClassification2Commands.listAllClassifications()
List all IDs of all classifications stored in the databasestatic void
MCRAccessCommands.listAllPermissions()
This method invokes MCRUserMgr.getAllPrivileges() and retrieves a ArrayList of all privileges stored in the persistent datastore.static void
MCRClassification2Commands.listClassification
(String classid) List a MCRClassification.static void
MCRBasicCommands.listKnownCommands()
Shows a list of commands understood by the command line interface and shows their input syntax.static void
MCRBasicCommands.listKnownCommandsBeginningWithPrefix
(String pattern) Shows the help text for one or more commands.static void
MCRObjectCommands.listRevisions
(String id) List revisions of an MyCoRe Object.static void
MCRObjectCommands.listSelected()
List all selected MCRObjects.MCRClassification2Commands.loadFromDirectory
(String directory) Loads MCRClassification from all XML files in a directory.MCRDerivateCommands.loadFromDirectory
(String directory) Loads MCRDerivates from all XML files in a directory.MCRObjectCommands.loadFromDirectory
(String directory) Load MCRObject's from all XML files in a directory.MCRClassification2Commands.loadFromFile
(String filename) Adds a classification.static boolean
MCRDerivateCommands.loadFromFile
(String file) Loads an MCRDerivates from an XML file.static boolean
MCRObjectCommands.loadFromFile
(String file) Load a MCRObjects from an XML file.static void
MCRClassification2Commands.loadFromURI
(String fileURI) static void
MCRClassification2Commands.loadFromURL
(String fileURL) static void
MCRAccessCommands.loadPermissionsFromFile
(String filename) This method deletes the old permissions (if given any) and sets the new permissions given in a certain fileMCRObjectCommands.loadTopologicalFromDirectory
(String directory) Load MCRObject's from all XML files in a directory in proper order (respecting parent-child-relationships).static void
MCRAccessCommands.permissionDeleteAllForID
(String id) delete all permissions for a given idstatic void
MCRAccessCommands.permissionDeleteAllForSelected()
delete all permissions for all selected objectsstatic void
MCRAccessCommands.permissionDeleteForID
(String permission, String id) delete a given permission for a given idstatic void
MCRAccessCommands.permissionDeleteForSelected
(String permission) delete all permissions for all selected objectsstatic void
MCRAccessCommands.permissionUpdateForID
(String permission, String id, String strFileRule) updates the permission for a given id and a given permission type with a given rulestatic void
MCRAccessCommands.permissionUpdateForID
(String permission, String id, String strFileRule, String description) updates the permission for a given id and a given permission type with a given rulestatic void
MCRAccessCommands.permissionUpdateForSelected
(String permission, String strFileRule) updates the permissions for all ids of a given MCRObjectID-Type with a given rule and a given permissionstatic void
MCRAccessCommands.permissionUpdateForSelected
(String permission, String strFileRule, String description) updates the permissions for all ids of a given MCRObjectID-Type and for a given permission type with a given rulestatic void
MCRBasicCommands.quit()
MCRBasicCommands.readCommandsFile
(String file) static void
MCRObjectCommands.rebuildMCRLinkHrefTableForObject
(String objectId) static void
MCRBasicCommands.reloadJPAMappings()
static void
MCRDerivateCommands.renameFiles
(String derivate, String pattern, String newName) MCRDerivateCommands.repairDerivateSearch()
The method start the repair the content search index for all derivates.MCRDerivateCommands.repairDerivateSearchForBase
(String project) Repairing the content search index for all derivates in project {0}.static void
MCRDerivateCommands.repairDerivateSearchForID
(String id) The method start the repair the content search index for one.static void
MCRClassification2Commands.repairEmptyLabels()
static void
MCRClassification2Commands.repairLeftRightValue
(String classID) static void
MCRObjectCommands.repairMCRLinkHrefTable()
MCRObjectCommands.repairMetadataSearch
(String type) The method start the repair of the metadata search for a given MCRObjectID type.MCRObjectCommands.repairMetadataSearchForBase
(String baseID) The method start the repair of the metadata search for a given MCRObjectID base.static void
MCRObjectCommands.repairMetadataSearchForID
(String id) The method start the repair of the metadata search for a given MCRObjectID as String.static void
MCRClassification2Commands.repairMissingParent
(String classID) static void
MCRClassification2Commands.repairPositionInParent()
static void
MCRObjectCommands.replaceParent
(String sourceId, String newParentId) Moves object to new parent.static void
MCRObjectCommands.restoreToRevision
(String id, String revision) This method restores a MyCoRe Object to the selected revision.static void
MCRObjectCommands.selectDescendantObjects
(String id) static void
MCRObjectCommands.selectObjectsWithXpath
(String xPath) static void
MCRDerivateCommands.setClassificationOfDerivate
(String derivateIDStr, String categoriesCommaList) static void
MCRDerivateCommands.setMainFile
(String derivateIDString, String filePath) static void
MCRDerivateCommands.setOrderOfDerivate
(String derivateIDStr, String orderStr) static void
MCRAccessCommands.setWebsiteReadOnly()
static void
MCRAccessCommands.setWebsiteReadOnly
(String message) static void
static void
Export an MCRDerivate to a file named MCRObjectID.xml in a directory named dirname and store the derivate files in a nested directory named MCRObjectID.static void
MCRDeveloperCommands.showAllProperties()
static void
MCRBasicCommands.showCommandStatistics()
static void
MCRDeveloperCommands.showMessage
(String key, String lang) static void
MCRDeveloperCommands.showMessages
(String lang) static void
MCRDeveloperCommands.showMessages
(String keyPrefix, String lang) static void
MCRDeveloperCommands.showProperties
(String keyPrefix) static void
MCRDeveloperCommands.showProperty
(String key) static void
MCRDeveloperCommands.showResource
(String uri) static void
MCRBasicCommands.skipOnError()
MCRDerivateCommands.synchronizeAllDerivates()
The method start the repair the content search index for all derivates.static void
MCRDerivateCommands.testRenameFile
(String filename, String pattern, String newName) static void
MCRDeveloperCommands.touchDerivate
(String id) static void
MCRDeveloperCommands.touchObject
(String id) static void
MCRObjectCommands.transformObject
(String objectIDStr, String transformer) static void
MCRDerivateCommands.transformXMLMatchingPatternWithStylesheet
(String pattern, String derivate, String stylesheet) static void
MCRAccessCommands.unsetWebsiteReadOnly()
MCRClassification2Commands.updateFromDirectory
(String directory) Updates MCRClassification from all XML files in a directory.MCRDerivateCommands.updateFromDirectory
(String directory) Updates MCRDerivates from all XML files in a directory.MCRObjectCommands.updateFromDirectory
(String directory) Update MCRObject's from all XML files in a directory.MCRClassification2Commands.updateFromFile
(String filename) Replaces a classification with a new versionstatic boolean
MCRDerivateCommands.updateFromFile
(String file) Updates an MCRDerivates from an XML file.static boolean
MCRObjectCommands.updateFromFile
(String file) Update a MCRObject's from an XML file.static void
MCRClassification2Commands.updateFromURI
(String fileURI) static void
MCRClassification2Commands.updateFromURL
(String fileURL) MCRObjectCommands.updateTopologicalFromDirectory
(String directory) Update MCRObject's from all XML files in a directory in proper order (respecting parent-child-relationships).static void
MCRObjectCommands.validateObject
(String objectID) Check if an object validates against its specified schema.MCRObjectCommands.validateObjectsOfBase
(String baseID) Checks objects of the specified base ID for validity against their specified schemas.MCRObjectCommands.validateObjectsOfType
(String type) Checks objects of the specified type for validity against their specified schemas.static void
MCRObjectCommands.validateObjectWithTransformer
(String objectID, String transformerType) Check if an object validates against its specified schema.static void
MCRBasicCommands.whoami()
static void
Does a xsl transform with the given mycore object. -
Uses of MCRCommand in org.mycore.frontend.indexbrowser
Modifier and TypeMethodDescriptionstatic void
MCRGoogleSitemapCommands.buildSitemap()
The build and store method. -
Uses of MCRCommand in org.mycore.impex
Modifier and TypeMethodDescriptionstatic void
static void
MCRTransferPackageCommands.fromDirectory
(String sourceDirectory, String mycoreTargetId) static void
MCRTransferPackageCommands.importDerivate
(String derivateId, String targetDirectoryPath) static void
MCRTransferPackageCommands.importObject
(String pathToClassification) MCRTransferPackageCommands.importObject
(String objectId, String targetDirectoryPath, String parentId) MCRTransferPackageCommands.importTransferPackageFromTar
(String pathToTar, String mycoreTargetId) MCRTransferPackageCommands.importTransferPackagesFromDirectory
(String directory) static void
-
Uses of MCRCommand in org.mycore.iview2.frontend
Modifier and TypeMethodDescriptionMCRIView2Commands.checkAll()
meta command to check (and repair) tiles of all images of all derivates.MCRIView2Commands.checkAllOfProject
(String project) meta command to check (and repair) tiles of all images of derivates of a project.static void
MCRIView2Commands.checkImage
(String derivate, String absoluteImagePath) checks and repairs tile of this derivate.MCRIView2Commands.checkTilesOfDerivate
(String derivateID) meta command to check (and repair) all tiles of all images of this derivate.static void
MCRIView2Commands.deleteAllTiles()
Deletes all image tiles.static void
MCRIView2Commands.deleteDerivateTiles
(String derivateID) Deletes all image tiles of this derivate.MCRIView2Commands.deleteDerivateTilesOfObject
(String objectID) Deletes all image tiles of derivates of this object.static void
MCRIView2Commands.deleteImageTiles
(String derivate, String absoluteImagePath) Deletes all image tiles of this derivate.static void
MCRIView2Commands.fixDeadEntries()
MCRIView2Commands.tileAll()
meta command to tile all images of all derivates.MCRIView2Commands.tileAllOfProject
(String project) meta command to tile all images of derivates of a project.MCRIView2Commands.tileDerivate
(String derivateID) meta command to tile all images of this derivate.MCRIView2Commands.tileDerivatesOfObject
(String objectID) meta command to tile all images of derivates of an object .static void
Tiles this image. -
Uses of MCRCommand in org.mycore.mcr.acl.accesskey.cli
Modifier and TypeMethodDescriptionstatic void
MCRAccessKeyCommands.cleanUp()
static void
MCRAccessKeyCommands.clearAccessKeys()
static void
MCRAccessKeyCommands.clearAccessKeys
(String objectIdString) static void
MCRAccessKeyCommands.createAccessKey
(String objectIdString, String pathString) static void
MCRAccessKeyCommands.exportAccessKeysToFile
(String objectIdString, String pathString) static void
MCRAccessKeyCommands.hashSecret
(String secret, String objectIdString) static void
MCRAccessKeyCommands.importAccessKeysFromFile
(String objectIdString, String pathString) static void
MCRAccessKeyCommands.removeAccessKey
(String objectIdString, String secret) static void
MCRAccessKeyCommands.updateAccessKey
(String objectIdString, String secret, String pathString) -
Uses of MCRCommand in org.mycore.mets.frontend
Modifier and TypeMethodDescriptionstatic void
MCRMetsCommands.addMetsFileForDerivate
(String derivateID) MCRMetsCommands.addMetsFileForProjectID
(String projectID) static void
MCRMetsCommands.fixInvalidMets()
static void
MCRMetsCommands.validateSelectedMets()
-
Uses of MCRCommand in org.mycore.migration.cli
Modifier and TypeMethodDescriptionMCRMigrationCommands.addServFlags()
static void
MCRMigrationCommands.addServFlags
(String id) static void
MCRMigrationCommands.fixDerivateLinks
(String xpath, String id) static void
MCRMigrationCommands.fixMCR1717()
MCRMigrationCommands.fixMissingChildren()
static void
MCRMigrationCommands.fixMissingChildren
(String id) MCRMigrationCommands.migrateAllDerivates()
MCRMigrationCommands.migrateDerivateLink
(String objectIDStr) static void
MCRMigrationCommands.migrateTEIEntrysOfMetsFileOfDerivate
(String derivateIdStr) static void
MCRMigrationCommands.setOrderOfDerivate
(String derivateIDStr, String orderStr) -
Uses of MCRCommand in org.mycore.mods
Modifier and TypeMethodDescriptionstatic void
MCRMODSCommands.importFromRSSFeed
(String sourceSystemID, String projectID) MCRMODSCommands.loadFromDirectory
(String directory, String projectID) static void
MCRMODSCommands.loadFromFile
(String modsFileName, String projectID) static void
MCRMODSCommands.loadFromFileWithFiles
(String modsFileName, String fileDirName, String projectID) -
Uses of MCRCommand in org.mycore.ocfl.commands
Modifier and TypeMethodDescriptionstatic void
MCROCFLCommands.deleteOCFLClassification
(String classId) static void
MCROCFLCommands.deleteOCFLUser
(String userId) static void
MCROCFLCommands.migrateToOCFL
(String repository) MCROCFLCommands.syncClassificationRepository()
MCROCFLCommands.syncUserRepository()
static void
MCROCFLCommands.updateOCFLClassification
(String classId) MCROCFLCommands.updateOCFLClassifications()
static void
MCROCFLCommands.updateOCFLUser
(String userId) MCROCFLCommands.updateOCFLUsers()
static void
MCROCFLCommands.writeUserToDb
(String userId) static void
MCROCFLCommands.writeUserToDbVersioned
(String userId, String revision) -
Uses of MCRCommand in org.mycore.pi.cli
Modifier and TypeMethodDescriptionMCRPICommands.addFlagsToObjects()
static void
MCRPICommands.addFlagToObject
(String mycoreIDString) static void
MCRPICommands.controlObjectWithService
(String objectIDString, String serviceID) static void
MCRPICommands.controlObjectWithServiceAndAdditional
(String objectIDString, String serviceID, String additional) static void
MCRPICommands.createPIForObjectIfNotExist
(String serviceID, String objectIDString) static void
MCRPICommands.createPIForObjectIfNotExist
(String serviceID, String objectIDString, String additional) static void
MCRPICommands.migrateURNGranularToServiceID
(String serviceID) static void
MCRPICommands.removeControlFromObject
(String objectIDString, String serviceID) static void
MCRPICommands.removeControlFromObject
(String objectIDString, String serviceID, String additional) static void
MCRPICommands.updateObject
(String objectIDString) -
Uses of MCRCommand in org.mycore.pi.doi.cli
Modifier and TypeMethodDescriptionstatic void
MCRDOICommands.repairIncompleteRegisteredDOI
(String doiString, String serviceID) static void
MCRDOICommands.synchronizeDatabase
(String serviceID) static void
MCRDOICommands.updateMediaListForDOI
(String doiString, String serviceID) MCRDOICommands.updateMediaListOfAllDOI
(String serviceID) static void
MCRDOICommands.validateCrossrefDocument
(String mycoreIDString, String transformer) -
Uses of MCRCommand in org.mycore.solr.commands
Modifier and TypeMethodDescriptionstatic void
MCRSolrCommands.deleteByIdFromSolr
(String objectID, String coreID) static void
static void
MCRSolrCommands.dropIndexByType
(String type, String coreID) static void
MCRSolrCommands.listConfig()
This command displays the MyCoRe properties, which have to be set, to reload the current Solr / Solr Core configuration on the next start of the MyCoRe application.static void
This command optimizes the index in Solr in a given core.static void
MCRSolrCommands.rebuildClassificationIndex
(String coreID) static void
MCRSolrCommands.rebuildContentIndex
(String coreID) static void
MCRSolrCommands.rebuildContentIndexForSelected
(String coreID) static void
MCRSolrCommands.rebuildContentIndexObject
(String objectID, String coreID) static void
MCRSolrCommands.rebuildMetadataAndContentIndex
(String coreID) static void
MCRSolrCommands.rebuildMetadataIndex
(String coreID) static void
MCRSolrCommands.rebuildMetadataIndexForSelected
(String coreID) static void
MCRSolrCommands.rebuildMetadataIndexObject
(String object, String coreID) static void
MCRSolrCommands.rebuildMetadataIndexType
(String type, String coreID) static void
MCRSolrCommands.registerSolrCore
(String coreName, String coreID) static void
MCRSolrCommands.registerSolrCore
(String coreName, String server, String coreID) static void
MCRSolrCommands.reloadSolrConfiguration
(String configType, String coreID) This command recreates the managed-schema.xml and solrconfig.xml files.static void
MCRSolrCommands.selectObjectsWithSolrQuery
(String query, String coreID) static void
MCRSolrCommands.switchSolrCore
(String coreID1, String coreID2) static void
MCRSolrCommands.synchronizeMetadataIndex
(String coreID) static void
MCRSolrCommands.synchronizeMetadataIndex
(String objectType, String coreID) -
Uses of MCRCommand in org.mycore.user2
Modifier and TypeMethodDescriptionstatic void
Loads XML from a user and looks for roles currently not present in the system and creates them.static void
MCRUserCommands.assignUserToRole
(String userID, String roleID) This method adds a user as a member to a rolestatic void
MCRUserCommands.changeToUser
(String user, String password) This command changes the user of the session context to a new user.static void
MCRUserCommands.deleteRole
(String roleID) This method invokesMCRRoleManager.deleteRole(String)
and permanently removes a role from the system.static void
MCRUserCommands.deleteUser
(String userID) This method invokes MCRUserMgr.deleteUser() and permanently removes a user from the system.static void
MCRUserCommands.disableUser
(String userID) This method invokes MCRUserMgr.disableUser() that disables a userstatic void
MCRUserCommands.enableUser
(String userID) This method invokes MCRUserMgr.enableUser() that enables a userstatic void
MCRUserCommands.encryptPasswordsInXMLFile
(String oldFile, String newFile) A given XML file containing user data with cleartext passwords must be converted prior to loading the user data into the system.MCRUserCommands.exportAllUserToDirectory
(String directory) static void
MCRUserCommands.exportRole
(String roleID, String directory) Exports a single role to the specified directory.static void
MCRUserCommands.exportUserToFile
(String userID, String filename) This command takes a userID and file name as a parameter, retrieves the user from MCRUserMgr as JDOM document and export this to the given file.MCRUserCommands.importAllUsersFromDirectory
(String directory) static void
MCRUserCommands.importUserFromFile
(String filename) This command takes a file name as a parameter, creates the MCRUser instances stores it in the database if it does not exists.MCRUserCommands.initSuperuser()
This method initializes the user and role system an creates a superuser with values set in mycore.properties.private As 'super' default, if no properties were set, mcradmin with password mycore will be used.static void
MCRUserCommands.listAllRoles()
This method invokesMCRRoleManager.listSystemRoles()
and retrieves a list of all roles stored in the persistent datastore.static void
MCRUserCommands.listAllUsers()
This method invokes MCRUserMgr.getAllUserIDs() and retrieves a ArrayList of all users stored in the persistent datastore.static void
This method invokesMCRRoleManager.getRole(String)
and then works with the retrieved role object to get an XML-Representation.static void
This method invokes MCRUserMgr.retrieveUser() and then works with the retrieved user object to get an XML-Representation.static void
This command changes the user of the session context to a new user.static void
MCRUserCommands.setPassword
(String userID, String password) This method invokes MCRUserMgr.retrieveUser() and then works with the retrieved user object to change the password.static void
MCRUserCommands.unassignUserFromRole
(String userID, String roleID) This method removes a member user from a roleMCRUserCommands.updateAllUsersFromDirectory
(String directory) static void
MCRUserCommands.updateUserFromFile
(String filename) This method invokes MCRUserMgr.updateUser() with data from a file. -
Uses of MCRCommand in org.mycore.webcli.cli
Modifier and TypeMethodDescriptionstatic void
MCRBasicWebCLICommands.cancelonError()
MCRBasicWebCLICommands.readCommandsFile
(String file) MCRBasicWebCLICommands.readCommandsResource
(String resource) static void
MCRBasicWebCLICommands.showCommandStatistics()
static void
MCRBasicWebCLICommands.skipOnError()