Package omero.cmd.admin
Class UpdateSessionTimeoutRequestI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.cmd.Request
-
- omero.cmd.UpdateSessionTimeoutRequest
-
- omero.cmd.admin.UpdateSessionTimeoutRequestI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,IRequest
public class UpdateSessionTimeoutRequestI extends UpdateSessionTimeoutRequest implements IRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateSessionTimeoutRequestI.Factory
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class omero.cmd.UpdateSessionTimeoutRequest
__ids, serialVersionUID, session, timeToIdle, timeToLive
-
-
Constructor Summary
Constructors Constructor Description UpdateSessionTimeoutRequestI(ome.security.basic.CurrentDetails current, ome.services.sessions.SessionManager manager, ome.security.SecuritySystem security, long maxUserTimeToLive, long maxUserTimeToIdle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildResponse(int step, java.lang.Object object)
Post-transaction chance to map from the return value ofIRequest.step(int)
to aResponse
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()
-
Methods inherited from class omero.cmd.UpdateSessionTimeoutRequest
__readImpl, __writeImpl, clone, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
-
-
-
-
Field Detail
-
helper
protected Helper helper
-
query
protected ome.api.local.LocalQuery query
-
update
protected ome.api.local.LocalUpdate update
-
current
protected final ome.security.basic.CurrentDetails current
-
manager
protected final ome.services.sessions.SessionManager manager
-
security
protected final ome.security.SecuritySystem security
-
updated
protected boolean updated
-
maxUserTimeToLive
protected final long maxUserTimeToLive
-
maxUserTimeToIdle
protected final long maxUserTimeToIdle
-
-
Method Detail
-
getCallContext
public java.util.Map<java.lang.String,java.lang.String> getCallContext()
Description copied from interface:IRequest
Returns the desired call context for this request. Some request implementations will require "omero.group":"-1" for example and will hard-code that value. Others may permit users to pass in the desired values which will be merged into the staticMap
as desired.- Specified by:
getCallContext
in interfaceIRequest
- Returns:
- the call context for this request
-
init
public void init(Helper helper)
Description copied from interface:IRequest
Method called within the transaction boundaries before any processing occurs. Implementations must properly initialize the "step" field of theStatus
object by callingHelper.setSteps(int)
. This count will define how many times theIRequest.step(int)
method will be called. TheHelper
instance passed in contains those resources needed by IRequests to interact with data and should be stored for later use.
-
step
public java.lang.Object step(int step) throws HandleI.Cancel
Description copied from interface:IRequest
Single uncancellable action which will be performed by this IRequest. The return value can be an ome.model object that is attached to the current thread and transaction. After processing and detachment from the transaction, the object will be passed toIRequest.buildResponse(int, Object)
for conversion and storage.- Specified by:
step
in interfaceIRequest
- Parameters:
step
- the step number- Returns:
- an object to be used in building the response
- Throws:
HandleI.Cancel
- if this request is cancelled
-
finish
public void finish() throws HandleI.Cancel
Description copied from interface:IRequest
Method within the transaction boundaries after all processing has occurred. A thrownHandleI.Cancel
will still rollback the current transaction.- Specified by:
finish
in interfaceIRequest
- Throws:
HandleI.Cancel
- if this request is cancelled
-
buildResponse
public void buildResponse(int step, java.lang.Object object)
Description copied from interface:IRequest
Post-transaction chance to map from the return value ofIRequest.step(int)
to aResponse
object.- Specified by:
buildResponse
in interfaceIRequest
- Parameters:
step
- the step numberobject
- an object to be used in building the response
-
getResponse
public Response getResponse()
Description copied from interface:IRequest
Returns the current response value. This method should be protected by synchronization where necessary, and should never raise an exception. It is also guaranteed to be called so that any state cleanup that is necessary can take place here.- Specified by:
getResponse
in interfaceIRequest
- Returns:
- the response to this request
-
updateSession
protected ome.model.meta.Session updateSession()
-
updateField
protected boolean updateField(ome.model.meta.Session s, java.lang.String field, RLong value, boolean isAdmin)
-
-