public class UpdateSessionTimeoutRequestI extends UpdateSessionTimeoutRequest implements IRequest
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateSessionTimeoutRequestI.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected ome.security.basic.CurrentDetails |
current |
protected Helper |
helper |
protected ome.services.sessions.SessionManager |
manager |
protected long |
maxUserTimeToIdle |
protected long |
maxUserTimeToLive |
protected ome.api.local.LocalQuery |
query |
protected ome.security.SecuritySystem |
security |
protected ome.api.local.LocalUpdate |
update |
protected boolean |
updated |
__ids, serialVersionUID, session, timeToIdle, timeToLive| Constructor and Description |
|---|
UpdateSessionTimeoutRequestI(ome.security.basic.CurrentDetails current,
ome.services.sessions.SessionManager manager,
ome.security.SecuritySystem security,
long maxUserTimeToLive,
long maxUserTimeToIdle) |
| 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.
|
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.
|
protected boolean |
updateField(ome.model.meta.Session s,
java.lang.String field,
RLong value,
boolean isAdmin) |
protected ome.model.meta.Session |
updateSession() |
__readImpl, __writeImpl, clone, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticIdprotected Helper helper
protected ome.api.local.LocalQuery query
protected ome.api.local.LocalUpdate update
protected final ome.security.basic.CurrentDetails current
protected final ome.services.sessions.SessionManager manager
protected final ome.security.SecuritySystem security
protected boolean updated
protected final long maxUserTimeToLive
protected final long maxUserTimeToIdle
public UpdateSessionTimeoutRequestI(ome.security.basic.CurrentDetails current,
ome.services.sessions.SessionManager manager,
ome.security.SecuritySystem security,
long maxUserTimeToLive,
long maxUserTimeToIdle)
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 IRequest.step(int) method will be called.
The 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 IRequeststep - the step numberHandleI.Cancel - if this request is cancelledpublic void finish()
throws HandleI.Cancel
IRequestHandleI.Cancel will still rollback the current
transaction.finish in interface IRequestHandleI.Cancel - if this request is cancelledpublic void buildResponse(int step,
java.lang.Object object)
IRequestIRequest.step(int) to a Response object.buildResponse in interface IRequeststep - the step numberobject - an object to be used in building the responsepublic Response getResponse()
IRequestgetResponse in interface IRequestprotected ome.model.meta.Session updateSession()
protected boolean updateField(ome.model.meta.Session s,
java.lang.String field,
RLong value,
boolean isAdmin)