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
getSecurityContextmethod 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)-
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
-
-
-
-
Method Detail
-
__completed
public final void __completed(Ice.AsyncResult __result)
- Specified by:
__completedin classIceInternal.CallbackBase
-
-