Package omero.cmd.graphs
Interface WrappableRequest<X>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
adjustGraphPolicy(java.util.function.Function<ome.services.graphs.GraphPolicy,ome.services.graphs.GraphPolicy> adjuster)
Transform the currently applicable graph policy for this request by the given function.void
copyFieldsTo(X request)
Copy the fields of this request to that of the given request.ome.services.graphs.GraphPolicy.Action
getActionForStarting()
java.util.Map<java.lang.String,java.util.List<java.lang.Long>>
getStartFrom(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.-
Methods inherited from interface omero.cmd.IRequest
buildResponse, finish, getCallContext, getResponse, init, step
-
-
-
-
Method Detail
-
copyFieldsTo
void copyFieldsTo(X request)
Copy the fields of this request to that of the given request.- Parameters:
request
- the target of the field copy
-
adjustGraphPolicy
void adjustGraphPolicy(java.util.function.Function<ome.services.graphs.GraphPolicy,ome.services.graphs.GraphPolicy> adjuster)
Transform the currently applicable graph policy for this request by the given function. Must be called beforeIRequest.init(omero.cmd.Helper)
.- Parameters:
adjuster
- a transformation function for graph policies
-
getStepProvidingCompleteResponse
int getStepProvidingCompleteResponse()
Get the step of this request that suffices for assembling the request's response. It is presumed that checking the permissibility of the planned operation occurs afterward.- Returns:
- a step number
-
getActionForStarting
ome.services.graphs.GraphPolicy.Action getActionForStarting()
- Returns:
- the action associated with nodes qualifying as start objects
-
getStartFrom
java.util.Map<java.lang.String,java.util.List<java.lang.Long>> getStartFrom(Response response)
From the response of the head-skipping request, determine which model objects are the targets of the operation.- Parameters:
response
- the head-skipping request's response- Returns:
- the model objects to target
-
-