Class SaWsLockInfo

java.lang.Object
com.saperion.ws.wrapper.SaWsLockInfo

public class SaWsLockInfo extends Object
Locking information class.
Author:
dam
  • 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

      public final 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 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(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(String locktoken)
      Sets the token for the lock.
      Parameters:
      locktoken - token for the lock