info.magnolia.cms.security
Class SilentSessionOp<R>
java.lang.Object
info.magnolia.cms.security.SilentSessionOp<R>
- Type Parameters:
R
-
- All Implemented Interfaces:
- MgnlContext.Op<R,RuntimeException>
public abstract class SilentSessionOp<R>
- extends Object
- implements MgnlContext.Op<R,RuntimeException>
Session operation that just logs all exceptions instead of re-throwing them.
Field Summary |
protected static org.slf4j.Logger |
log
|
Method Summary |
abstract R |
doExec(javax.jcr.Session session)
|
R |
exec()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.slf4j.Logger log
SilentSessionOp
public SilentSessionOp(String repository)
exec
public R exec()
- Specified by:
exec
in interface MgnlContext.Op<R,RuntimeException>
doExec
public abstract R doExec(javax.jcr.Session session)
throws Throwable
- Throws:
Throwable
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.