Package com.saperion.ws.wrapper
Class SaWsLockInfo
java.lang.Object
com.saperion.ws.wrapper.SaWsLockInfo
Locking information class.
- Author:
- dam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns the lock token.final intReads the lock type.final StringReturns the lock owner.final booleanReturns, if this document is readonly.voidsetLockToken(String locktoken) Sets the token for the lock.voidsetLockType(int locktype) Sets the locktype.voidsetLockUser(String lockuser) Sets the user which is holding the lock.voidsetReadonly(boolean isReadonly) Sets if the lock is readonly.
-
Constructor Details
-
SaWsLockInfo
public SaWsLockInfo(com.saperion.intf.SaLockInfo info) Constructor.- Parameters:
info- Lockinfo
-
SaWsLockInfo
public SaWsLockInfo()Constructor.
-
-
Method Details
-
getLockType
public final int getLockType()Reads the lock type. Possible variants: LOCKING_LOCKTYPE_DEFAULT = 0 LOCKING_LOCKTYPE_JSRLOCK = 1 LOCKING_LOCKTYPE_JSRCHECKOUT = 2- Returns:
- the lockType
-
getLockUser
Returns the lock owner.- Returns:
- the lockUser
-
isReadonly
public final boolean isReadonly()Returns, if this document is readonly.- Returns:
- the readonly
-
getLockToken
Returns the lock token.- Returns:
- the lockToken
-
setReadonly
public void setReadonly(boolean isReadonly) Sets if the lock is readonly.- Parameters:
isReadonly- if it is a readonly lock
-
setLockUser
Sets the user which is holding the lock.- Parameters:
lockuser- user which holds the lock
-
setLockType
public void setLockType(int locktype) Sets the locktype.- Parameters:
locktype- type of the lock
-
setLockToken
Sets the token for the lock.- Parameters:
locktoken- token for the lock
-