Package com.saperion.intf
Interface SaLockInfo
public interface SaLockInfo
Locking information interface.
- Author:
- rbo
-
Method Summary
Modifier and TypeMethodDescriptionReturns the lock token; only relevant for JCR.intReads the lock type.Returns the lock owner.Returns the lock user full name.booleanReturns true, if this is an own lock.booleanReturns true, if this document is readonly; only relevant for JCR.voidsetUserInfo(SaUserInfo info) Sets the user info.
-
Method Details
-
getLockType
int getLockType()Reads the lock type. Possible variants: LOCKING_LOCKTYPE_DEFAULT = 0 LOCKING_LOCKTYPE_JSRLOCK = 1 LOCKING_LOCKTYPE_JSRCHECKOUT = 2- Returns:
- the lockType
-
getLockUser
String getLockUser()Returns the lock owner.- Returns:
- the lockUser
-
isReadonly
boolean isReadonly()Returns true, if this document is readonly; only relevant for JCR.- Returns:
- the readonly
-
getLockToken
String getLockToken()Returns the lock token; only relevant for JCR.- Returns:
- the lockToken
-
getUserFullName
String getUserFullName()Returns the lock user full name.- Returns:
- Lock user full name
-
isOwnLock
boolean isOwnLock()Returns true, if this is an own lock.- Returns:
- True, if own lock
-
setUserInfo
Sets the user info.- Parameters:
info- User info
-