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])
     

    • Constructor Detail

      • Callback_ServiceFactory_setSecurityContext

        public Callback_ServiceFactory_setSecurityContext()