Interface LockableObject

  • All Known Implementing Classes:
    AbstractASGDocument

    public interface LockableObject
    Describes Lockable object.
    Version:
    $Id: $Id
    Author:
    h3llka, another
    • Field Detail

      • INT_LOCK_PROPERTY_NAME

        static final java.lang.String INT_LOCK_PROPERTY_NAME
        LockableObject "locked" property.
        See Also:
        Constant Field Values
      • INT_LOCKER_ID_PROPERTY_NAME

        static final java.lang.String INT_LOCKER_ID_PROPERTY_NAME
        LockableObject "lockerId" property.
        See Also:
        Constant Field Values
      • INT_LOCKING_TIME_PROPERTY_NAME

        static final java.lang.String INT_LOCKING_TIME_PROPERTY_NAME
        LockableObject "lockingTime" property.
        See Also:
        Constant Field Values
    • Method Detail

      • isLocked

        boolean isLocked()
        Return true if current is locked, false otherwise.
        Returns:
        boolean param
      • setLocked

        void setLocked​(boolean aLock)
        Allows to lock or unlock current.
        Parameters:
        aLock - boolean lock, unlock
      • getLockerId

        java.lang.String getLockerId()
        Returns lockerName, actually name of user - who locked current.
        Returns:
        string user name
      • setLockerId

        void setLockerId​(java.lang.String aLockerId)
        Allow to modify lockerId.
        Parameters:
        aLockerId - actually user name
      • getLockingTime

        long getLockingTime()
        Returns locking time.
        Returns:
        long value
      • setLockingTime

        void setLockingTime​(long aLockTime)
        Allows to modify locking time.
        Parameters:
        aLockTime - long time