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

java.lang.Object
  extended by 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.

Version:
$Id: $
Author:
had

Field Summary
protected static org.slf4j.Logger log
           
 
Constructor Summary
SilentSessionOp(String repository)
           
 
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
 

Field Detail

log

protected static final org.slf4j.Logger log
Constructor Detail

SilentSessionOp

public SilentSessionOp(String repository)
Method Detail

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.