|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.cluster.ClusterRecord
org.apache.jackrabbit.core.cluster.LockRecord
public class LockRecord
Cluster record representing a lock or unlock operation.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord |
|---|
END_MARKER, record, workspace |
| Constructor Summary | |
|---|---|
LockRecord(NodeId nodeId,
boolean isDeep,
String lockOwner,
Record record,
String workspace)
Create a new instance of this class. |
|
LockRecord(NodeId nodeId,
Record record,
String workspace)
Create a new instance of this class. |
|
| Method Summary | |
|---|---|
protected void |
doRead()
Deserialize this record. |
protected void |
doWrite()
Serialize this record. |
NodeId |
getNodeId()
Return the node id. |
String |
getOwner()
Return the lock owner associated with the lock operation. |
String |
getUserId()
Deprecated. User getOwner() instead. |
boolean |
isDeep()
Return a flag indicating whether the lock is deep. |
boolean |
isLock()
Return a flag indicating whether this is a lock or an unlock operation. |
void |
process(ClusterRecordProcessor processor)
Process this record, calling the appropriate process
method. |
| Methods inherited from class org.apache.jackrabbit.core.cluster.ClusterRecord |
|---|
cancelUpdate, getRevision, getWorkspace, read, readEndMarker, update, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockRecord(NodeId nodeId,
boolean isDeep,
String lockOwner,
Record record,
String workspace)
nodeId - node idisDeep - flag indicating whether the lock is deeplockOwner - the name of the lock owner.record - journal recordworkspace - workspace
public LockRecord(NodeId nodeId,
Record record,
String workspace)
nodeId - node idrecord - journal recordworkspace - workspace| Method Detail |
|---|
protected void doRead()
throws JournalException
doRead in class ClusterRecordJournalException - if an error occurs
protected void doWrite()
throws JournalException
doWrite in class ClusterRecordJournalException - if an error occurspublic void process(ClusterRecordProcessor processor)
process
method.
process in class ClusterRecordprocessor - processorpublic NodeId getNodeId()
public boolean isLock()
true if this is a lock operation;
false if this is an unlock operationpublic boolean isDeep()
true if the lock is deep;
false otherwisepublic String getUserId()
getOwner() instead.
public String getOwner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||