ome.security.basic
Class EventHandler
java.lang.Object
ome.security.basic.EventHandler
- All Implemented Interfaces:
- Advice, Interceptor, MethodInterceptor
public class EventHandler
- extends Object
- implements MethodInterceptor
method interceptor responsible for login and creation of Events. Calls are
made to the BasicSecuritySystem
provided in the
constructor
.
After the method is invoked
various cleanup actions are performed and finally all credentials
all cleared
from the
Thread
.
- Since:
- 3.0
- Author:
- Josh Moore josh.moore@gmx.de
Constructor Summary |
EventHandler(org.springframework.jdbc.core.simple.SimpleJdbcOperations isolatedJdbc,
org.springframework.jdbc.core.simple.SimpleJdbcOperations simpleJdbc,
BasicSecuritySystem securitySystem,
SessionFactory factory,
org.springframework.transaction.interceptor.TransactionAttributeSource txSource)
only public constructor, used for dependency injection. |
EventHandler(org.springframework.jdbc.core.simple.SimpleJdbcOperations isolatedJdbc,
org.springframework.jdbc.core.simple.SimpleJdbcOperations simpleJdbc,
BasicSecuritySystem securitySystem,
SessionFactory factory,
org.springframework.transaction.interceptor.TransactionAttributeSource txSource,
boolean readOnly)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
txSource
protected final org.springframework.transaction.interceptor.TransactionAttributeSource txSource
secSys
protected final BasicSecuritySystem secSys
factory
protected final SessionFactory factory
isolatedJdbc
protected final org.springframework.jdbc.core.simple.SimpleJdbcOperations isolatedJdbc
simpleJdbc
protected final org.springframework.jdbc.core.simple.SimpleJdbcOperations simpleJdbc
readOnly
protected final boolean readOnly
EventHandler
public EventHandler(org.springframework.jdbc.core.simple.SimpleJdbcOperations isolatedJdbc,
org.springframework.jdbc.core.simple.SimpleJdbcOperations simpleJdbc,
BasicSecuritySystem securitySystem,
SessionFactory factory,
org.springframework.transaction.interceptor.TransactionAttributeSource txSource)
- only public constructor, used for dependency injection. Requires an
active
HibernateTemplate
and BasicSecuritySystem
.
- Parameters:
securitySystem
- Not null.template
- Not null.
EventHandler
public EventHandler(org.springframework.jdbc.core.simple.SimpleJdbcOperations isolatedJdbc,
org.springframework.jdbc.core.simple.SimpleJdbcOperations simpleJdbc,
BasicSecuritySystem securitySystem,
SessionFactory factory,
org.springframework.transaction.interceptor.TransactionAttributeSource txSource,
boolean readOnly)
invoke
public Object invoke(MethodInvocation arg0)
throws Throwable
- invocation interceptor for prepairing this
Thread
for execution
and subsequently reseting it.
- Specified by:
invoke
in interface MethodInterceptor
- Throws:
Throwable
- See Also:
MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)
OmeroJava Api
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.