Package com.jalios.jcms.webdav.cat
Class CatWebdavLock
- java.lang.Object
-
- com.jalios.jcms.webdav.WebdavLock
-
- com.jalios.jcms.webdav.cat.CatWebdavLock
-
public class CatWebdavLock extends WebdavLock
A JCMS Representation of a Webdav Lock- Since:
- jcms-5.5.0
- Author:
- Jean-Philippe Encausse
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILEDOC_UPDATE_COUNTER_EXTRA_DATA
FileDocument's ExtraData (for JStore) or ExtraDBData (for DBData) attribute used to store number of webdav update and to force a JStore update when the File is detected as modified during the "unlock" operation.-
Fields inherited from class com.jalios.jcms.webdav.WebdavLock
DEFAULT_TIMEOUT, depth, id, lastMod, MAX_TIMEOUT, md5Digest, owner, scope, secret, timeout, tokens, type, uri
-
-
Constructor Summary
Constructors Constructor Description CatWebdavLock(java.lang.String uri, WebdavContext ctxt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquire(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by lockvoid
refresh(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by unlockvoid
release(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by unlockvoid
setOwner(java.lang.String owner)
This method set the Owner of the Lock-
Methods inherited from class com.jalios.jcms.webdav.WebdavLock
encode, generateId, getDepth, getExpiredTime, getId, getLastModified, getOwner, getScope, getTimeout, getTokens, getType, hasExpired, isExclusive, setDepth, setScope, setTimeout, setType, toString
-
-
-
-
Field Detail
-
FILEDOC_UPDATE_COUNTER_EXTRA_DATA
public static final java.lang.String FILEDOC_UPDATE_COUNTER_EXTRA_DATA
FileDocument's ExtraData (for JStore) or ExtraDBData (for DBData) attribute used to store number of webdav update and to force a JStore update when the File is detected as modified during the "unlock" operation. (for JCMS-1893)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CatWebdavLock
public CatWebdavLock(java.lang.String uri, WebdavContext ctxt)
-
-
Method Detail
-
setOwner
public void setOwner(java.lang.String owner)
Description copied from class:WebdavLock
This method set the Owner of the Lock- Overrides:
setOwner
in classWebdavLock
- Parameters:
owner
- the owner of the lock
-
acquire
public void acquire(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by lock- Overrides:
acquire
in classWebdavLock
- Parameters:
ctxt
- the Webdav Context- See Also:
WebdavLock.acquire(WebdavResource, WebdavContext)
-
release
public void release(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by unlock- Overrides:
release
in classWebdavLock
- Parameters:
ctxt
- the Webdav Context- See Also:
WebdavLock.release(WebdavResource, WebdavContext)
-
refresh
public void refresh(WebdavResource resource, WebdavContext ctxt)
This method is called for other mecanism outside of Webdav that need to be notified by unlock- Overrides:
refresh
in classWebdavLock
- Parameters:
ctxt
- the Webdav Context- See Also:
WebdavLock.refresh(WebdavResource, WebdavContext)
-
-