public class CurrentSessionsRequestI extends omero.cmd.CurrentSessionsRequest implements IRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
CurrentSessionsRequestI.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> |
contexts |
protected ome.security.basic.CurrentDetails |
current |
protected Helper |
helper |
protected ome.services.sessions.SessionManager |
manager |
| Constructor and Description |
|---|
CurrentSessionsRequestI(ome.security.basic.CurrentDetails current,
ome.services.sessions.SessionManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildResponse(int step,
java.lang.Object object)
Post-transaction chance to map from the return value of
IRequest.step(int) to a Response object. |
void |
finish()
Method within the transaction boundaries after all processing has
occurred.
|
java.util.Map<java.lang.String,java.lang.String> |
getCallContext()
Returns the desired call context for this request.
|
omero.cmd.Response |
getResponse()
Returns the current response value.
|
void |
init(Helper helper)
Method called within the transaction boundaries before any processing occurs.
|
java.lang.Object |
step(int step)
Single uncancellable action which will be performed by this IRequest.
|
__read, __read, __write, __write, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticIdprotected Helper helper
protected final ome.security.basic.CurrentDetails current
protected final ome.services.sessions.SessionManager manager
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Object>> contexts
public CurrentSessionsRequestI(ome.security.basic.CurrentDetails current,
ome.services.sessions.SessionManager manager)
public java.util.Map<java.lang.String,java.lang.String> getCallContext()
IRequestMap as desired.getCallContext in interface IRequestpublic void init(Helper helper)
IRequestStatus object by calling Helper#setSteps(int). This count
will define how many times the {@link #step(int)} method will be called.
The {@link Helper} instance passed in contains those resources needed by
IRequests to interact with data and should be stored for later use.public java.lang.Object step(int step)
throws HandleI.Cancel
IRequestIRequest.buildResponse(int, Object) for conversion and storage.step in interface IRequestHandleI.Cancelpublic void finish()
throws HandleI.Cancel
IRequestHandleI.Cancel will still rollback the current
transaction.finish in interface IRequestHandleI.Cancelpublic void buildResponse(int step,
java.lang.Object object)
IRequestIRequest.step(int) to a Response object.buildResponse in interface IRequestpublic omero.cmd.Response getResponse()
IRequestgetResponse in interface IRequest