Package org.mycore.mets.tools
Class MCRMetsLock
java.lang.Object
org.mycore.mets.tools.MCRMetsLock
Used to lock the mets editor for a specific Derivate
- Author:
- Sebastian Hofmann (mcrshofm)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Locks a Derivate with the current SessionIdstatic void
Unlocks a Derivate wich was locked with the current SessionIdstatic boolean
Checks if a Derivate is locked
-
Constructor Details
-
MCRMetsLock
public MCRMetsLock()
-
-
Method Details
-
isLocked
Checks if a Derivate is locked- Parameters:
derivateIdString
- the derivate id- Returns:
- true if the derivate is locked
-
doLock
Locks a Derivate with the current SessionId- Parameters:
derivateIdString
- the Derivate to lock- Returns:
- True if the derivate is locked. False if the derivate could not be locked.
-
doUnlock
Unlocks a Derivate wich was locked with the current SessionId- Parameters:
derivateIdString
- the id of the derivate- Throws:
MCRException
- if the session-id of locker is different from current session-id
-