Package com.jalios.jcms
Class WeakLockManager
java.lang.Object
com.jalios.jcms.WeakLockManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckLockMember(Data data, Member mbr) Returns true if the given data can be locked by the given member.static WeakLockManagergetLockDate(Data data) Returns the date the given data has been locked.getLockMember(Data data) Returns the member who has locked the given data.longReturns the lock timeout (in millis).booleanReturns true if the given data is locked.booleanisLockedBy(Data data, Member mbr) Returns true if the given data is locked by the given member.voidLocks the given data for the given member.voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.voidsetLockTimeout(long lockTimeout) Sets the lock timeout (in millis)voidUnlocks the given datavoidUnlocks the given data for the given member.
-
Method Details
-
getInstance
-
lock
Locks the given data for the given member.- Parameters:
data- the datambr- the mbmer- Since:
- jcms-7.1.0
-
unlock
Unlocks the given data for the given member.- Parameters:
data- the datambr- the member- Since:
- jcms-7.1.0
-
unlock
Unlocks the given data- Parameters:
data- the data- Since:
- jcms-7.1.0
-
getLockMember
Returns the member who has locked the given data.- Parameters:
data- the data- Returns:
- the member who has locked the given data.
- Since:
- jcms-7.1.0
-
getLockDate
Returns the date the given data has been locked.- Parameters:
data- the data- Returns:
- the date the given data has been locked.
- Since:
- jcms-7.1.0
-
isLocked
Returns true if the given data is locked.- Parameters:
data- the data- Returns:
- true if the given data is locked.
- Since:
- jcms-7.1.0
-
isLockedBy
Returns true if the given data is locked by the given member.- Parameters:
data- the datambr- the member- Returns:
- true if the given data is locked by the given member.
- Since:
- jcms-7.1.0
-
checkLockMember
Returns true if the given data can be locked by the given member.- Parameters:
data- the datambr- the member- Returns:
- true if the given data can be locked by the given member.
- Since:
- jcms-7.0.1
-
getLockTimeout
public long getLockTimeout()Returns the lock timeout (in millis).- Returns:
- the lock timeout (in millis).
- Since:
- jcms-7.1.0
-
setLockTimeout
public void setLockTimeout(long lockTimeout) Sets the lock timeout (in millis)- Parameters:
lockTimeout-- Since:
- jcms-7.1.0
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-