Class CmsClientLock

java.lang.Object
org.opencms.gwt.shared.CmsClientLock
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsClientLock extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Client side lock class.

Since:
8.0.0
  • Constructor Details

    • CmsClientLock

      public CmsClientLock()
      Default constructor for serialization.

  • Method Details

    • getLockOwner

      public String getLockOwner()
      Returns the lock owner name.

      Returns:
      the lock owner name
    • getLockType

      Returns the lock type.

      Returns:
      the lock type
    • isOwnedByUser

      public boolean isOwnedByUser()
      Returns if the current lock is owned by the current user.

      Returns:
      if the current lock is owned by the current user
    • setLockOwner

      public void setLockOwner(String lockOwner)
      Sets the lock owner name.

      Parameters:
      lockOwner - the lock owner name to set
    • setLockType

      public void setLockType(CmsClientLock.LockType lockType)
      Sets the lock type.

      Parameters:
      lockType - the lock type to set
    • setOwnedByUser

      public void setOwnedByUser(boolean isOwnedByUser)
      Sets if the current lock is owned by the current user.

      Parameters:
      isOwnedByUser - if the current lock is owned by the current user