com.jalios.jcms.webdav.cat
Class CatWebdavLock

java.lang.Object
  extended by com.jalios.jcms.webdav.WebdavLock
      extended by com.jalios.jcms.webdav.cat.CatWebdavLock

public class CatWebdavLock
extends WebdavLock

A JCMS Representation of a Webdav Lock

Since:
jcms-5.5.0
Version:
$Revision: 67714 $
Author:
Jean-Philippe Encausse

Field Summary
static 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.
static String REVISION
           
 
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
CatWebdavLock(String uri, WebdavContext ctxt)
           
 
Method Summary
 void acquire(WebdavResource resource, WebdavContext ctxt)
          This method is called for other mecanism outside of Webdav that need to be notified by lock
 void refresh(WebdavResource resource, WebdavContext ctxt)
          This method is called for other mecanism outside of Webdav that need to be notified by unlock
 void release(WebdavResource resource, WebdavContext ctxt)
          This method is called for other mecanism outside of Webdav that need to be notified by unlock
 void setOwner(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

FILEDOC_UPDATE_COUNTER_EXTRA_DATA

public static final 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(String uri,
                     WebdavContext ctxt)
Method Detail

setOwner

public void setOwner(String owner)
Description copied from class: WebdavLock
This method set the Owner of the Lock

Overrides:
setOwner in class WebdavLock
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 class WebdavLock
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 class WebdavLock
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 class WebdavLock
Parameters:
ctxt - the Webdav Context
See Also:
WebdavLock.refresh(WebdavResource, WebdavContext)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.