public class LockException extends CheckedException
StoreElement.setLock(boolean,boolean)
,
Lockable.lock()
,
Serialized FormConstructor and Description |
---|
LockException(String message,
User user,
long objectId)
Constructor for this class.
|
LockException(String message,
User user,
long objectId,
Throwable cause)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
long |
getObjectId()
Returns the id of the locked object.
|
long |
getUserId()
Returns the user's id who has currently locked the object.
|
String |
getUserLoginName()
Returns the user's loginname who has currently locked the object.
|
getContext, getErrorCode, getLocalizedMessage, isInfoOnly, setErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public LockException(String message, @Nullable User user, long objectId)
message
- the message for this exceptionuser
- the user which holds the lockobjectId
- the id of the locked objectpublic String getUserLoginName()
User.getLoginName()
public long getUserId()
Principal.getId()
public long getObjectId()
Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210