org.apache.jackrabbit.oak.jcr.lock
Class LockOperation<T>

java.lang.Object
  extended by org.apache.jackrabbit.oak.jcr.session.operation.SessionOperation<T>
      extended by org.apache.jackrabbit.oak.jcr.lock.LockOperation<T>
Type Parameters:
T - return type of the perform() method

public abstract class LockOperation<T>
extends SessionOperation<T>

Abstract base class for locking operations.


Field Summary
protected  SessionDelegate session
           
 
Constructor Summary
protected LockOperation(SessionContext context, String absPath, String name)
           
protected LockOperation(SessionDelegate session, NodeDelegate node, String name)
           
 
Method Summary
 boolean isRefresh()
          Return true if this operation refreshed the transient space
 T perform()
           
protected abstract  T perform(NodeDelegate node)
           
 
Methods inherited from class org.apache.jackrabbit.oak.jcr.session.operation.SessionOperation
checkPreconditions, isLogout, isSave, isUpdate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

session

protected final SessionDelegate session
Constructor Detail

LockOperation

protected LockOperation(SessionDelegate session,
                        NodeDelegate node,
                        String name)

LockOperation

protected LockOperation(SessionContext context,
                        String absPath,
                        String name)
                 throws javax.jcr.PathNotFoundException
Throws:
javax.jcr.PathNotFoundException
Method Detail

isRefresh

public boolean isRefresh()
Description copied from class: SessionOperation
Return true if this operation refreshed the transient space

Overrides:
isRefresh in class SessionOperation<T>

perform

public T perform()
          throws javax.jcr.RepositoryException
Specified by:
perform in class SessionOperation<T>
Throws:
javax.jcr.RepositoryException

perform

protected abstract T perform(NodeDelegate node)
                      throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.