Package omero.cmd

Class CallContext

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public class CallContext
    extends java.lang.Object
    implements org.aopalliance.intercept.MethodInterceptor
    Interceptor which takes any context provided by the client and calls setContext on CurrentDetails. This allows users to dynamically change, for example, the call group without modifying the whole session.
    See Also:
    Trac ticket #3529
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FILENAME_KEY  
      static java.lang.String TOKEN_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      CallContext​(ome.security.basic.CurrentDetails cd, java.lang.String token)  
      CallContext​(ome.system.OmeroContext ctx, java.lang.String token)  
      CallContext​(ome.system.OmeroContext ctx, java.lang.String token, Ice.Current current)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation arg0)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CallContext

        public CallContext​(ome.system.OmeroContext ctx,
                           java.lang.String token,
                           Ice.Current current)
      • CallContext

        public CallContext​(ome.system.OmeroContext ctx,
                           java.lang.String token)
      • CallContext

        public CallContext​(ome.security.basic.CurrentDetails cd,
                           java.lang.String token)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation arg0)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        java.lang.Throwable
        See Also:
        MethodInterceptor.invoke(org.aopalliance.intercept.MethodInvocation)