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 String
Returns the lock token.final int
Reads the lock type.final String
Returns the lock owner.final boolean
Returns, if this document is readonly.void
setLockToken
(String locktoken) Sets the token for the lock.void
setLockType
(int locktype) Sets the locktype.void
setLockUser
(String lockuser) Sets the user which is holding the lock.void
setReadonly
(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
-