public class Delete2I extends omero.cmd.Delete2 implements IRequest, WrappableRequest<omero.cmd.Delete2>
Constructor and Description |
---|
Delete2I(ACLVoter aclVoter,
Roles securityRoles,
GraphPathBean graphPathBean,
LightAdminPrivileges adminPrivileges,
Deletion deletionInstance,
java.util.Set<java.lang.Class<? extends IObject>> targetClasses,
GraphPolicy graphPolicy,
com.google.common.collect.SetMultimap<java.lang.String,java.lang.String> unnullable,
org.springframework.context.ApplicationContext applicationContext)
Construct a new
deleterequest; called from GraphRequestFactory.getRequest(Class) . |
Modifier and Type | Method and Description |
---|---|
void |
adjustGraphPolicy(com.google.common.base.Function<GraphPolicy,GraphPolicy> adjuster)
Transform the currently applicable graph policy for this request by the given function.
|
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 |
copyFieldsTo(omero.cmd.Delete2 request)
Copy the fields of this request to that of the given request.
|
void |
finish()
Method within the transaction boundaries after all processing has
occurred.
|
GraphPolicy.Action |
getActionForStarting() |
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.
|
java.util.Map<java.lang.String,java.util.List<java.lang.Long>> |
getStartFrom(omero.cmd.Response response)
From the response of the head-skipping request, determine which model objects are the targets of the operation.
|
int |
getStepProvidingCompleteResponse()
Get the step of this request that suffices for assembling the request's response.
|
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.
|
__readImpl, __writeImpl, ice_factory, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, __dispatch, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
public Delete2I(ACLVoter aclVoter, Roles securityRoles, GraphPathBean graphPathBean, LightAdminPrivileges adminPrivileges, Deletion deletionInstance, java.util.Set<java.lang.Class<? extends IObject>> targetClasses, GraphPolicy graphPolicy, com.google.common.collect.SetMultimap<java.lang.String,java.lang.String> unnullable, org.springframework.context.ApplicationContext applicationContext)
deleterequest; called from
GraphRequestFactory.getRequest(Class)
.aclVoter
- ACL voter for permissions checkingsecurityRoles
- the security rolesgraphPathBean
- the graph path bean to useadminPrivileges
- the light administrator privileges helperdeletionInstance
- a deletion instance for deleting filestargetClasses
- legal target object classes for deletegraphPolicy
- the graph policy to apply for deleteunnullable
- properties that, while nullable, may not be nulled by a graph traversal operationapplicationContext
- the OMERO application context from Springpublic java.util.Map<java.lang.String,java.lang.String> getCallContext()
IRequest
Map
as desired.getCallContext
in interface IRequest
public void init(Helper helper)
IRequest
Status
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
IRequest
IRequest.buildResponse(int, Object)
for conversion and storage.step
in interface IRequest
step
- the step numberHandleI.Cancel
- if this request is cancelledpublic void finish()
IRequest
HandleI.Cancel
will still rollback the current
transaction.public void buildResponse(int step, java.lang.Object object)
IRequest
IRequest.step(int)
to a Response
object.buildResponse
in interface IRequest
step
- the step numberobject
- an object to be used in building the responsepublic omero.cmd.Response getResponse()
IRequest
getResponse
in interface IRequest
public void copyFieldsTo(omero.cmd.Delete2 request)
WrappableRequest
copyFieldsTo
in interface WrappableRequest<omero.cmd.Delete2>
request
- the target of the field copypublic void adjustGraphPolicy(com.google.common.base.Function<GraphPolicy,GraphPolicy> adjuster)
WrappableRequest
IRequest.init(omero.cmd.Helper)
.adjustGraphPolicy
in interface WrappableRequest<omero.cmd.Delete2>
adjuster
- a transformation function for graph policiespublic int getStepProvidingCompleteResponse()
WrappableRequest
getStepProvidingCompleteResponse
in interface WrappableRequest<omero.cmd.Delete2>
public GraphPolicy.Action getActionForStarting()
getActionForStarting
in interface WrappableRequest<omero.cmd.Delete2>
public java.util.Map<java.lang.String,java.util.List<java.lang.Long>> getStartFrom(omero.cmd.Response response)
WrappableRequest
getStartFrom
in interface WrappableRequest<omero.cmd.Delete2>
response
- the head-skipping request's response
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.