|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.source.helpers.SourceLock
public class SourceLock
This interface for lock of a source
| Constructor Summary | |
|---|---|
SourceLock(String subject,
String type,
Date expiration,
boolean inheritable,
boolean exclusive)
Creates a new lock for a source |
|
| Method Summary | |
|---|---|
Date |
getExpiration()
Returns the expiration date |
String |
getSubject()
return the subject of the lock |
String |
getType()
Return ths type of the lock |
boolean |
isExclusive()
Returns the exclusive flag |
boolean |
isInheritable()
Returns the inheritable flag |
void |
setExclusive(boolean exclusive)
Sets the exclusive flag |
void |
setExpiration(Date expiration)
Set the expiration date |
void |
setInheritable(boolean inheritable)
Sets the inheritable flag |
void |
setSubject(String subject)
Sets the subject for this lock |
void |
setType(String type)
Sets the type of the lock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceLock(String subject,
String type,
Date expiration,
boolean inheritable,
boolean exclusive)
subject - Which user should be lockedtype - Type of lockexpiration - When the lock expiresinheritable - If the lock is inheritableexclusive - If the lock is exclusive| Method Detail |
|---|
public void setSubject(String subject)
subject - Which user should be lockedpublic String getSubject()
public void setType(String type)
type - Type of lockpublic String getType()
public void setExpiration(Date expiration)
expiration - Expiration datepublic Date getExpiration()
public void setInheritable(boolean inheritable)
inheritable - If the lock is inheritablepublic boolean isInheritable()
public void setExclusive(boolean exclusive)
exclusive - If the lock is exclusivepublic boolean isExclusive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||