@Deprecated
public class Preprocessor
extends java.lang.Object
Request instances which are passed to a
DoAll. If this strategy is continued, this
should be refactored behind a discoverable interface.| Modifier and Type | Class and Description |
|---|---|
static class |
Preprocessor.GraphModifyTarget
Deprecated.
A tuple of target type and target ID.
|
static class |
Preprocessor.TargetType
Deprecated.
The types of target for which we care about adjusting graph operation requests.
|
| Modifier and Type | Field and Description |
|---|---|
protected ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> |
hierarchyNavigator
Deprecated.
|
protected java.util.List<omero.cmd.Request> |
requests
Deprecated.
|
protected static com.google.common.collect.ImmutableList<java.util.Map.Entry<Preprocessor.TargetType,Preprocessor.TargetType>> |
targetTypeHierarchy
Deprecated.
the target type hierarchy, an ordered list descending from higher to lower
|
| Constructor and Description |
|---|
Preprocessor(java.util.List<omero.cmd.Request> requests,
Helper helper)
Deprecated.
|
Preprocessor(java.util.List<omero.cmd.Request> requests,
ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<omero.cmd.Request> |
getRequests()
Deprecated.
Returns a copy of the requests field or an empty list if null.
|
protected void |
process()
Deprecated.
Preprocess the list of requests.
|
protected java.lang.String |
requestToString(omero.cmd.Request request)
Deprecated.
Convert a single request to a pretty string.
|
protected void |
transform(com.google.common.base.Predicate<omero.cmd.Request> isRelevant,
Preprocessor.GraphModifyTarget newRequestTarget,
java.util.Set<Preprocessor.GraphModifyTarget> prohibitedPrefixes,
java.util.Set<Preprocessor.GraphModifyTarget> prohibitedSuffixes)
Deprecated.
Transform the list of requests.
|
protected static final com.google.common.collect.ImmutableList<java.util.Map.Entry<Preprocessor.TargetType,Preprocessor.TargetType>> targetTypeHierarchy
protected final java.util.List<omero.cmd.Request> requests
protected final ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator
public Preprocessor(java.util.List<omero.cmd.Request> requests,
Helper helper)
public Preprocessor(java.util.List<omero.cmd.Request> requests,
ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator)
protected final void transform(com.google.common.base.Predicate<omero.cmd.Request> isRelevant,
Preprocessor.GraphModifyTarget newRequestTarget,
java.util.Set<Preprocessor.GraphModifyTarget> prohibitedPrefixes,
java.util.Set<Preprocessor.GraphModifyTarget> prohibitedSuffixes)
isRelevant - which type of graph operation's requests to transformnewRequestTarget - the target of the new request to create to replace the removed onesprohibitedPrefixes - the requests that may not precede the new requestprohibitedSuffixes - the requests that may be omitted after the new requestpublic java.util.List<omero.cmd.Request> getRequests()
protected void process()
protected java.lang.String requestToString(omero.cmd.Request request)