info.magnolia.cms.security
Class JCRSessionOp<R>
java.lang.Object
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.
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 |
JCRSessionOp
public JCRSessionOp(String repository)
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.