org.teiid.transport
Class AdminAuthorizationInterceptor

java.lang.Object
  extended by org.teiid.transport.AdminAuthorizationInterceptor
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class AdminAuthorizationInterceptor
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Call authorization service to make sure the current admin user has the proper admin role(s) to perform the method.


Constructor Summary
AdminAuthorizationInterceptor(AuthorizationService authorizationService, java.lang.Object service)
          Ctor.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminAuthorizationInterceptor

public AdminAuthorizationInterceptor(AuthorizationService authorizationService,
                                     java.lang.Object service)
Ctor.

Parameters:
securityContextFactory -
authorizationService -
methodNames -
Since:
4.3
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Parameters:
invocation -
securityContext -
Throws:
AuthorizationException
MetaMatrixProcessingException
java.lang.Throwable
Since:
4.3


Copyright © 2009. All Rights Reserved.