|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.WeakLockManager
public class WeakLockManager
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
boolean |
checkLockMember(Data data,
Member mbr)
Returns true if the given data can be locked by the given member. |
static WeakLockManager |
getInstance()
|
Date |
getLockDate(Data data)
Returns the date the given data has been locked. |
Member |
getLockMember(Data data)
Returns the member who has locked the given data. |
long |
getLockTimeout()
Returns the lock timeout (in millis). |
boolean |
isLocked(Data data)
Returns true if the given data is locked. |
boolean |
isLockedBy(Data data,
Member mbr)
Returns true if the given data is locked by the given member. |
void |
lock(Data data,
Member mbr)
Locks the given data for the given member. |
void |
propertiesChange(JProperties properties)
Invoked after properties have been modified in JCMS and save on disk. |
void |
setLockTimeout(long lockTimeout)
Sets the lock timeout (in millis) |
void |
unlock(Data data)
Unlocks the given data |
void |
unlock(Data data,
Member mbr)
Unlocks the given data for the given member. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public static WeakLockManager getInstance()
public void lock(Data data, Member mbr)
data
- the datambr
- the mbmerpublic void unlock(Data data, Member mbr)
data
- the datambr
- the memberpublic void unlock(Data data)
data
- the datapublic Member getLockMember(Data data)
data
- the data
public Date getLockDate(Data data)
data
- the data
public boolean isLocked(Data data)
data
- the data
public boolean isLockedBy(Data data, Member mbr)
data
- the datambr
- the member
public boolean checkLockMember(Data data, Member mbr)
data
- the datambr
- the member
public long getLockTimeout()
public void setLockTimeout(long lockTimeout)
lockTimeout
- public void propertiesChange(JProperties properties)
JPropertiesListener
You cannot alter the value received in parameters.
propertiesChange
in interface JPropertiesListener
properties
- the properties which have been modified (may not contain all JCMS properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |