Package com.saperion.ws.wrapper
Class SaWsLockInfo
- java.lang.Object
-
- com.saperion.ws.wrapper.SaWsLockInfo
-
public class SaWsLockInfo extends java.lang.Object
Locking information class.- Author:
- dam
-
-
Constructor Summary
Constructors Constructor Description SaWsLockInfo()
Constructor.SaWsLockInfo(com.saperion.intf.SaLockInfo info)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLockToken()
Returns the lock token.int
getLockType()
Reads the lock type.java.lang.String
getLockUser()
Returns the lock owner.boolean
isReadonly()
Returns, if this document is readonly.void
setLockToken(java.lang.String locktoken)
Sets the token for the lock.void
setLockType(int locktype)
Sets the locktype.void
setLockUser(java.lang.String lockuser)
Sets the user which is holding the lock.void
setReadonly(boolean isReadonly)
Sets if the lock is readonly.
-
-
-
Method Detail
-
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
public final java.lang.String getLockUser()
Returns the lock owner.- Returns:
- the lockUser
-
isReadonly
public final boolean isReadonly()
Returns, if this document is readonly.- Returns:
- the readonly
-
getLockToken
public final java.lang.String 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
public void setLockUser(java.lang.String lockuser)
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
public void setLockToken(java.lang.String locktoken)
Sets the token for the lock.- Parameters:
locktoken
- token for the lock
-
-