| java.lang.Object org.apache.cocoon.components.source.helpers.SourceLock
SourceLock | public class SourceLock (Code) | | This interface for lock of a source
author: Stephan Michels version: CVS $Id: SourceLock.java 433543 2006-08-22 06:22:54Z crossley $ |
SourceLock | public SourceLock(String subject, String type, Date expiration, boolean inheritable, boolean exclusive)(Code) | | Creates a new lock for a source
Parameters: subject - Which user should be locked Parameters: type - Type of lock Parameters: expiration - When the lock expires Parameters: inheritable - If the lock is inheritable Parameters: exclusive - If the lock is exclusive |
getExpiration | public Date getExpiration()(Code) | | Returns the expiration date
Expiration date |
getSubject | public String getSubject()(Code) | | return the subject of the lock
Which user should be locked |
getType | public String getType()(Code) | | Return ths type of the lock
Type of lock |
isExclusive | public boolean isExclusive()(Code) | | Returns the exclusive flag
If the lock is exclusive |
isInheritable | public boolean isInheritable()(Code) | | Returns the inheritable flag
If the lock is inheritable |
setExclusive | public void setExclusive(boolean exclusive)(Code) | | Sets the exclusive flag
Parameters: exclusive - If the lock is exclusive |
setExpiration | public void setExpiration(Date expiration)(Code) | | Set the expiration date
Parameters: expiration - Expiration date |
setInheritable | public void setInheritable(boolean inheritable)(Code) | | Sets the inheritable flag
Parameters: inheritable - If the lock is inheritable |
setSubject | public void setSubject(String subject)(Code) | | Sets the subject for this lock
Parameters: subject - Which user should be locked |
setType | public void setType(String type)(Code) | | Sets the type of the lock
Parameters: type - Type of lock |
|
|