Package net.anotheria.asg.data
Interface LockableObject
-
- All Known Implementing Classes:
AbstractASGDocument
public interface LockableObjectDescribes Lockable object.- Version:
- $Id: $Id
- Author:
- h3llka, another
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINT_LOCK_PROPERTY_NAMELockableObject "locked" property.static java.lang.StringINT_LOCKER_ID_PROPERTY_NAMELockableObject "lockerId" property.static java.lang.StringINT_LOCKING_TIME_PROPERTY_NAMELockableObject "lockingTime" property.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetLockerId()Returns lockerName, actually name of user - who locked current.longgetLockingTime()Returns locking time.booleanisLocked()Return true if current is locked, false otherwise.voidsetLocked(boolean aLock)Allows to lock or unlock current.voidsetLockerId(java.lang.String aLockerId)Allow to modify lockerId.voidsetLockingTime(long aLockTime)Allows to modify locking time.
-
-
-
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
-
-