Package omero.api

Class Callback_ServiceFactory_setSecurityContext

  • All Implemented Interfaces:
    Ice.TwowayCallback, Ice.TwowayCallbackArg1<IObject>, Ice.TwowayCallbackArg1UE<IObject>

    public abstract class Callback_ServiceFactory_setSecurityContext
    extends IceInternal.TwowayCallback
    implements Ice.TwowayCallbackArg1UE<IObject>
    Changes the security context for the current session.

    A security context limits the set of objects which will be returned by all queries and restricts what updates can be made.

    Current valid values for security context:

    Passing an unloaded version of either object type will change the way the current session operates. Note: only objects which are returned by the getSecurityContext method are considered valid. Any other instance will cause an exception to be thrown.

    Example usage in Python:

     sf = client.createSession()
     objs = sf.getSecurityContexts()
     old = sf.setSecurityContext(objs\[-1])
     

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void __completed​(Ice.AsyncResult __result)  
      • Methods inherited from class IceInternal.TwowayCallback

        __hasSentCallback, __sent, exception, sent
      • Methods inherited from class IceInternal.CallbackBase

        check
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface Ice.TwowayCallback

        exception, exception
      • Methods inherited from interface Ice.TwowayCallbackArg1

        response
      • Methods inherited from interface Ice.TwowayCallbackArg1UE

        exception
    • Constructor Detail

      • Callback_ServiceFactory_setSecurityContext

        public Callback_ServiceFactory_setSecurityContext()
    • Method Detail

      • __completed

        public final void __completed​(Ice.AsyncResult __result)
        Specified by:
        __completed in class IceInternal.CallbackBase