|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.context.MgnlContext.RepositoryOp info.magnolia.context.MgnlContext.LockingOp
public abstract static class MgnlContext.LockingOp
Operation that is performed only if JCR lock can be issued on the path specified by combination of parameters in constructor. Lock issued and held by this operation prevents other concurrent modifications and should not be used without reason. Locking is always session scoped, meaning that is issuing session is closed, any locks held by the session are forcefully released at this point. Since Magnolia uses request scoped sessions in most cases, it means that no matter what happens lock will be released latest when request processing is finished.
Constructor Summary | |
---|---|
MgnlContext.LockingOp(String workspaceName,
String lockPath)
Performs operation only if shallow lock can be obtained within reasonable time on a path specified by params. |
|
MgnlContext.LockingOp(String workspaceName,
String lockPath,
boolean deepLock)
Performs operation only if shallow or deep lock can be obtained within reasonable time on a path specified by params. |
|
MgnlContext.LockingOp(String workspaceName,
String lockPath,
boolean deepLock,
String nodeType)
Performs operation only if shallow or deep lock can be obtained within reasonable time on a path specified by params. |
|
MgnlContext.LockingOp(String workspaceName,
String lockPath,
boolean deepLock,
String lockedNodeType,
String userName)
Performs operation only if shallow or deep lock can be obtained within reasonable time on a path specified by params. |
|
MgnlContext.LockingOp(String workspaceName,
String lockPath,
String nodeType)
Performs operation only if shallow lock can be obtained within reasonable time on a path specified by params. |
Method Summary | |
---|---|
Void |
exec()
|
Methods inherited from class info.magnolia.context.MgnlContext.RepositoryOp |
---|
doExec |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MgnlContext.LockingOp(String workspaceName, String lockPath)
public MgnlContext.LockingOp(String workspaceName, String lockPath, boolean deepLock)
public MgnlContext.LockingOp(String workspaceName, String lockPath, String nodeType)
public MgnlContext.LockingOp(String workspaceName, String lockPath, boolean deepLock, String nodeType)
public MgnlContext.LockingOp(String workspaceName, String lockPath, boolean deepLock, String lockedNodeType, String userName)
Method Detail |
---|
public Void exec() throws javax.jcr.RepositoryException
exec
in interface MgnlContext.Op<Void,javax.jcr.RepositoryException>
exec
in class MgnlContext.RepositoryOp
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |