Uses of Class
org.mycore.common.MCRException
Package
Description
Classes required for persistence of
MCRAccessControlSystem
.Holds classes that handling configuration and initialization tasks.
new MyCoRe user system
-
Uses of MCRException in org.mycore.access
Modifier and TypeMethodDescriptionvoid
void
static void
adds an access rule for an ID to an access system.static void
MCRAccessManager.addRule
(MCRObjectID id, String permission, Element rule, String description) adds an access rule for an MCRObjectID to an access system.void
adds an access rule for an ID to an access system.void
adds an access rule for an "a priori-permission" like "create-document"void
MCRAccessBaseImpl.removeAllRules
(String id) static void
MCRAccessManager.removeAllRules
(MCRObjectID id) removes all rules for the MCRObjectID.void
MCRRuleAccessInterface.removeAllRules
(String id) removes all rules of theid
.void
MCRAccessBaseImpl.removeRule
(String permission) void
MCRAccessBaseImpl.removeRule
(String id, String permission) static void
MCRAccessManager.removeRule
(String id, String permission) removes thepermission
rule for the ID.static void
MCRAccessManager.removeRule
(MCRObjectID id, String permission) removes thepermission
rule for the MCRObjectID.void
MCRRuleAccessInterface.removeRule
(String permission) removes a rule for an "a priori permission" like "create-document"void
MCRRuleAccessInterface.removeRule
(String id, String permission) removes a rule.void
MCRAccessBaseImpl.updateRule
(String id, String permission, Element rule, String description) void
MCRAccessBaseImpl.updateRule
(String permission, Element rule, String description) static void
MCRAccessManager.updateRule
(String id, String permission, Element rule, String description) updates an access rule for an ID.static void
MCRAccessManager.updateRule
(MCRObjectID id, String permission, Element rule, String description) updates an access rule for an MCRObjectID.void
MCRRuleAccessInterface.updateRule
(String id, String permission, Element rule, String description) updates an access rule for an ID to an access system.void
MCRRuleAccessInterface.updateRule
(String permission, Element rule, String description) updates an access rule for an "a priori permission" of an access system like "create-document". -
Uses of MCRException in org.mycore.access.mcrimpl
Modifier and TypeMethodDescriptionvoid
void
MCRAccessControlSystem.removeAllRules
(String id) void
MCRAccessControlSystem.removeRule
(String permission) void
MCRAccessControlSystem.removeRule
(String id, String pool) void
MCRAccessControlSystem.updateRule
(String id, String pool, Element rule, String description) void
MCRAccessControlSystem.updateRule
(String permission, Element rule, String description) -
Uses of MCRException in org.mycore.backend.jpa.access
Modifier and TypeMethodDescriptionboolean
MCRJPARuleStore.existsRule
(String ruleid) Method checks existance of rule in db -
Uses of MCRException in org.mycore.common
Modifier and TypeClassDescriptionclass
Instances of this class represent a general exception thrown by the persistency layer of the MyCoRe implementation.class
Instances of MCRUsageException are thrown when the MyCoRe API is used in an illegal way.Modifier and TypeMethodDescriptionprotected static com.ibm.icu.util.GregorianCalendar
MCRCalendar.getCalendarFromGregorianDate
(String dateString, boolean last) This method convert a ancient date to a general Calendar value.protected static com.ibm.icu.util.Calendar
MCRCalendar.getCalendarFromJulianDate
(String dateString, boolean last) This method convert a JulianCalendar date to a general Calendar value.static com.ibm.icu.util.Calendar
MCRCalendar.getHistoryDateAsCalendar
(String dateString, boolean last, String calendarString) This method check an ancient date string for the given calendar. -
Uses of MCRException in org.mycore.common.config
Modifier and TypeClassDescriptionclass
Instances of this class represent an exception thrown because of an error in the MyCoRe configuration. -
Uses of MCRException in org.mycore.common.content.streams
ModifierConstructorDescription -
Uses of MCRException in org.mycore.common.events
Modifier and TypeMethodDescriptionvoid
MCREventHandler.doHandleEvent
(MCREvent evt) Handles an event.void
MCREventManager.handleEvent
(MCREvent evt) Same as handleEvent( evt, MCREventManager.FORWARD )void
MCREventHandler.undoHandleEvent
(MCREvent evt) Handles rollback of event handling. -
Uses of MCRException in org.mycore.common.xml
-
Uses of MCRException in org.mycore.crypt
-
Uses of MCRException in org.mycore.datamodel.classifications2.utils
Modifier and TypeMethodDescriptionstatic void
Imports a classification from the given path.static void
MCRClassificationUtils.fromStream
(InputStream inputStream) Imports a classification from the given input stream. -
Uses of MCRException in org.mycore.datamodel.ifs
ModifierConstructorDescriptionConstructs a new MCRContentInputStream -
Uses of MCRException in org.mycore.datamodel.metadata
Modifier and TypeMethodDescriptionMCRBase.createXML()
This method create a XML stream for all object data.MCRDerivate.createXML()
This methode create a XML stream for all object data.MCRMetaAccessRule.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaAccessRule definition for the given subtag.MCRMetaAddress.createXML()
This method creates a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaAddress definition for the given subtag.MCRMetaBoolean.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRBoolean definition for the given subtag.MCRMetaClassification.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaClassification definition for the given subtag.MCRMetaDateLangText.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLangText definition for the given subtag.MCRMetaDefault.createXML()
This abstract method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMeta... definition for the given subtag.MCRMetaDerivateLink.createXML()
final Element
MCRMetaElement.createXML
(boolean flag) This methode create a XML stream for all data in this class, defined by the MyCoRe XML MCRLangText definition for the given subtag.MCRMetaEnrichedLinkID.createXML()
MCRMetaHistoryDate.createXML()
This method creates a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaHistoryDate definition for the given subtag.MCRMetaIFS.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaIFS definition for the given subtag.MCRMetaInstitutionName.createXML()
This method creates a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaInstitutionName definition for the given subtag.MCRMetaInterface.createXML()
This method create a XML stream for a metadata part.MCRMetaISO8601Date.createXML()
MCRMetaLangText.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLangText definition for the given subtag.MCRMetaLink.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLink definition for the given subtag.MCRMetaNumber.createXML()
This method creates an XML element containing all data in this instance, as defined by the MyCoRe XML MCRNumber definition for the given subtag.MCRMetaPersonName.createXML()
This method creates a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaPersonName definition for the given subtag.MCRMetaSpatial.createXML()
MCRMetaXML.createXML()
This method create a XML stream for all data in this class, defined by the MyCoRe XML MCRMetaLangText definition for the given subtag.MCRObject.createXML()
This method creates a XML stream for all object data.final Element
MCRObjectDerivate.createXML()
This methode create a XML stream for all derivate data.final Element
MCRObjectMetadata.createXML()
This methode create a XML stream for all metadata.final Element
MCRObjectService.createXML()
This method create a XML stream for all structure data.final Element
MCRObjectStructure.createXML()
createXML is the inverse of setFromDOM and converts the structure's memory copy into XML.final void
This method set the permission and the condition.void
This method set a bidirectional link with xlink:from, xlink:to and xlink:title.final void
This method set a bidirectional link with xlink:from, xlink:to and xlink:title.final void
MCRMetaLinkID.setBiLink
(MCRObjectID from, MCRObjectID to, String title) This method set a bidirectional link with xlink:from, xlink:to and xlink:title.final void
MCRMetaAccessRule.setCondition
(Element condition) This method set the condition.void
MCRMetaClassification.setFromDOM
(Element element) This method read the XML input stream part from a DOM part for the metadata of the document.void
MCRMetaDefault.setFromDOM
(Element element) This method read the XML input stream part from a DOM part for the metadata of the document.void
MCRMetaDerivateLink.setFromDOM
(Element element) final void
MCRMetaElement.setFromDOM
(Element element) This methode read the XML input stream part from a DOM part for the metadata of the document.void
MCRMetaIFS.setFromDOM
(Element element) This method read the XML input stream part from a DOM part for the metadata of the document.void
MCRMetaLink.setFromDOM
(Element element) This method read the XML input stream part from a DOM part for the metadata of the document.void
MCRMetaSpatial.setFromDOM
(Element element) final void
MCRObjectMetadata.setFromDOM
(Element element) This methode read the XML input stream part from a DOM part for the metadata of the document.protected final void
MCRBase.setFromURI
(URI uri) This method read the XML input stream from an URI to build up the MyCoRe-Object.protected final void
MCRBase.setFromXML
(byte[] xml, boolean valid) This method read the XML input stream from a byte array to build up the MyCoRe-Object.void
This method set the number, if it is null or not a number, a MCRException will be throw.void
MCRMetaNumber.setNumber
(BigDecimal number) This method set the number, if it is null a MCRException will be throw.void
MCRMetaLink.setReference
(String href, String label, String title) This method set a reference with xlink:href, xlink:label and xlink:title.final void
MCRMetaLinkID.setReference
(String href, String label, String title) This method set a reference with xlink:href, xlink:label and xlink:title.final void
MCRMetaLinkID.setReference
(MCRObjectID href, String label, String title) This method set a reference with xlink:href, xlink:label and xlink:title.final void
This method set the subtag element.void
This method set the subtag element.protected void
MCRDerivate.setUp()
The given DOM was convert into an internal view of metadata.protected void
MCRObject.setUp()
The given DOM was convert into an internal view of metadata.final void
This method set values of classid and categid.void
MCRBase.validate()
Validates the content of this class.void
MCRDerivate.validate()
Validates this MCRDerivate.void
MCRMetaAccessRule.validate()
Validates this MCRMetaAccessRule.void
MCRMetaAddress.validate()
Validates this MCRMetaAddress.void
MCRMetaClassification.validate()
Validates this MCRMetaClassification.void
MCRMetaDefault.validate()
Validates this MCRMetaDefault.void
MCRMetaDerivateLink.validate()
Validates this MCRMetaDerivateLink.void
MCRMetaElement.validate()
Validates this MCRMetaElement.void
MCRMetaHistoryDate.validate()
Validates this MCRMetaHistoryDate.void
MCRMetaIFS.validate()
Validates this MCRMetaIFS.void
MCRMetaInstitutionName.validate()
Validates this MCRMetaInstitutionName.void
MCRMetaInterface.validate()
Validates the content of this class.void
MCRMetaISO8601Date.validate()
Validates this MCRMetaISO8601Date.void
MCRMetaLangText.validate()
Validates this MCRMetaLangText.void
MCRMetaLink.validate()
Validates this MCRMetaLink.void
MCRMetaPersonName.validate()
Validates this MCRMetaPersonName.void
MCRMetaSpatial.validate()
void
MCRMetaXML.validate()
Validates this MCRMetaXML.void
MCRObjectDerivate.validate()
Validates this MCRObjectDerivate.void
MCRObjectMetadata.validate()
Validates this MCRObjectMetadata.void
MCRObjectStructure.validate()
Validates this MCRObjectStructure.ModifierConstructorDescriptionMCRBase()
This is the constructor of the MCRBase class.This is the constructor of the MCRDerivate class.MCRMetaAccessRule
(String subtag, String type, int inherted, String permission, Element condition) This is the constructor.MCRMetaAddress
(String subtag, String defaultLang, String type, int inherted, String country, String state, String zipcode, String city, String street, String number) This is the constructor.MCRMetaBoolean
(String subtag, String type, int inherted, boolean value) This is the constructor.MCRMetaBoolean
(String subtag, String type, int inherted, String value) This is the constructor.MCRMetaBoolean
(String subtag, String lang, String type, int inherted, String value) Deprecated.MCRMetaClassification
(String subtag, int inherted, String type, String classid, String categid) This is the constructor.MCRMetaClassification
(String subtag, int inherted, String type, MCRCategoryID category) This is the constructor.MCRMetaDateLangText
(String subtag, String lang, String type, int inherted, String form, String text) This is the constructor.MCRMetaDefault
(String subtag, String lang, String type, int inherited) This is the constructor.MCRMetaDefault
(String subtag, String lang, String type, int sequence, int inherited) This is the constructor.MCRMetaHistoryDate
(String subtag, String type, int inherted) This is the constructor.MCRMetaIFS
(String subtag, String sourcePath) This is the constructor.MCRMetaInstitutionName
(String subtag, String lang, String type, int inherted, String fullname, String nickname, String property) This is the constructor.This is the constructor.MCRMetaLink
(String subtag, int inherted) This is the constructor.MCRMetaNumber
(String subtag, int inherted, String dimension, String measurement, String number) This is the constructor.MCRMetaNumber
(String subtag, int inherted, String dimension, String measurement, BigDecimal number) This is the constructor.MCRMetaPersonName
(String subtag, int inherted) This is the constructor.MCRMetaSpatial
(String subtag, String type, Integer inherited) The constructor for a MCRMetaSpatial instance with an empty data container.MCRMetaSpatial
(String subtag, String defaultLanguage, String type, Integer inherited) Deprecated.MCRMetaXML
(String subtag, String type, int inherited) This is the constructor of the MCRObject class. -
Uses of MCRException in org.mycore.frontend.cli
Modifier and TypeMethodDescriptionstatic boolean
MCRBasicCommands.checkXMLFile
(String fileName) The method parse and check an XML file.static void
MCRAccessCommands.listAllPermissions()
This method invokes MCRUserMgr.getAllPrivileges() and retrieves a ArrayList of all privileges stored in the persistent datastore.MCRClassification2Commands.loadFromFile
(String filename) Adds a classification.static boolean
MCRObjectCommands.loadFromFile
(String file) Load a MCRObjects from an XML file.static boolean
MCRObjectCommands.loadFromFile
(String file, boolean importMode) Load a MCRObjects from an XML file.MCRClassification2Commands.updateFromFile
(String filename) Replaces a classification with a new versionstatic boolean
MCRObjectCommands.updateFromFile
(String file) Update a MCRObject's from an XML file.static boolean
MCRObjectCommands.updateFromFile
(String file, boolean importMode) Update a MCRObject's from an XML file. -
Uses of MCRException in org.mycore.frontend.fileupload
Modifier and TypeMethodDescriptionstatic void
MCRUploadHelper.checkPathName
(String path) seeMCRUploadHelper.checkPathName(String, boolean)
checkFilePattern=truestatic void
MCRUploadHelper.checkPathName
(String path, boolean checkFilePattern) checks if path contains reserved URI characters or path starts or ends with whitespace. -
Uses of MCRException in org.mycore.frontend.servlets
-
Uses of MCRException in org.mycore.frontend.xeditor.validation
-
Uses of MCRException in org.mycore.mcr.acl.accesskey
Modifier and TypeMethodDescriptionstatic void
MCRAccessKeyUtils.addAccessKeySecret
(MCRSession session, MCRObjectID objectId, String value) static void
MCRAccessKeyUtils.addAccessKeySecret
(MCRUser user, MCRObjectID objectId, String value) Adds the value of aMCRAccessKey
as user attribute to aMCRUser
for aMCRObjectID
including derivates.static void
MCRAccessKeyUtils.addAccessKeySecretForObject
(MCRSession session, MCRObjectID objectId, String value) static void
MCRAccessKeyUtils.addAccessKeySecretForObject
(MCRUser user, MCRObjectID objectId, String value) static void
MCRAccessKeyUtils.addAccessKeySecretToCurrentSession
(MCRObjectID objectId, String value) static void
MCRAccessKeyUtils.addAccessKeySecretToCurrentUser
(MCRObjectID objectId, String value) static void
MCRAccessKeyManager.createAccessKey
(MCRObjectID objectId, MCRAccessKey accessKey) Creates aMCRAccessKey
for givenMCRObjectID
.static String
MCRAccessKeyManager.hashSecret
(String secret, MCRObjectID objectId) Encrypts secret and usesMCRObjectID
as salt.static void
MCRAccessKeyManager.updateAccessKey
(MCRObjectID objectId, String secret, MCRAccessKey updatedAccessKey) UpdatesMCRAccessKey
-
Uses of MCRException in org.mycore.mcr.acl.accesskey.cli
Modifier and TypeMethodDescriptionstatic 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 MCRException in org.mycore.mcr.acl.accesskey.exception
Modifier and TypeClassDescriptionclass
Exception that refers to a collision of access keys.class
Exception that refers to a disabled access key.class
Instances of this class represent a general exception related to access keys.class
Exception that refers to an expired access key.class
Exception that refers to an invalid value.class
Exception that refers to an invalid permission type.class
Exception that refers to an unknown access key.class
Exception that refers to an error during transformation of an access key. -
Uses of MCRException in org.mycore.mets.model
Modifier and TypeMethodDescriptionstatic MCRMETSGenerator
Returns a generator for the given derivate.static MCRMETSGenerator
Returns a generator for the given derivate.org.mycore.mets.model.Mets
MCRMETSDefaultGenerator.generate()
org.mycore.mets.model.Mets
MCRMETSGenerator.generate()
Creates a new METS pojo.org.mycore.mets.model.Mets
MCRMETSHierarchyGenerator.generate()
Returns the generator. -
Uses of MCRException in org.mycore.mets.tools
-
Uses of MCRException in org.mycore.ocfl
Modifier and TypeMethodDescriptionvoid
MCROCFLClassificationEventHandler.doHandleEvent
(MCREvent evt) void
MCROCFLClassificationEventHandler.undoHandleEvent
(MCREvent evt) -
Uses of MCRException in org.mycore.ocfl.user
Modifier and TypeMethodDescriptionvoid
MCROCFLUserEventHandler.doHandleEvent
(MCREvent evt) void
MCROCFLUserEventHandler.undoHandleEvent
(MCREvent evt) -
Uses of MCRException in org.mycore.parsers.bool
-
Uses of MCRException in org.mycore.user2
Modifier and TypeMethodDescriptionstatic void
MCRUserCommands.assignUserToRole
(String userID, String roleID) This method adds a user as a member to a rolestatic 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
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 role