info.magnolia.cms.security
Class JCRSessionOp<R>

java.lang.Object
  extended by info.magnolia.cms.security.JCRSessionOp<R>
Type Parameters:
R -
All Implemented Interfaces:
MgnlContext.Op<R,javax.jcr.RepositoryException>

public abstract class JCRSessionOp<R>
extends Object
implements MgnlContext.Op<R,javax.jcr.RepositoryException>

Operation requiring session access. Session is available and guaranteed valid throughout the whole op execution time.


Constructor Summary
JCRSessionOp(String repository)
           
 
Method Summary
 R exec()
           
abstract  R exec(javax.jcr.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRSessionOp

public JCRSessionOp(String repository)
Method Detail

exec

public R exec()
       throws javax.jcr.RepositoryException
Specified by:
exec in interface MgnlContext.Op<R,javax.jcr.RepositoryException>
Throws:
javax.jcr.RepositoryException

exec

public abstract R exec(javax.jcr.Session session)
                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.