Package omero.api
Class Callback_ServiceFactory_setSecurityContext
- java.lang.Object
-
- IceInternal.CallbackBase
-
- IceInternal.TwowayCallback
-
- omero.api.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:
ExperimenterGroup
- logs into a specific groupShare
- uses IShare to activate a share
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 Summary
Constructors Constructor Description Callback_ServiceFactory_setSecurityContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
__completed(Ice.AsyncResult __result)
-