@Deprecated public class Preprocessor extends 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 HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> |
hierarchyNavigator
Deprecated.
|
protected List<omero.cmd.Request> |
requests
Deprecated.
|
protected static com.google.common.collect.ImmutableList<Map.Entry<Preprocessor.TargetType,Preprocessor.TargetType>> |
targetTypeHierarchy
Deprecated.
the target type hierarchy, an ordered list descending from higher to lower
|
Constructor and Description |
---|
Preprocessor(List<omero.cmd.Request> requests,
Helper helper)
Deprecated.
|
Preprocessor(List<omero.cmd.Request> requests,
HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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 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,
Set<Preprocessor.GraphModifyTarget> prohibitedPrefixes,
Set<Preprocessor.GraphModifyTarget> prohibitedSuffixes)
Deprecated.
Transform the list of requests.
|
protected static final com.google.common.collect.ImmutableList<Map.Entry<Preprocessor.TargetType,Preprocessor.TargetType>> targetTypeHierarchy
protected final List<omero.cmd.Request> requests
protected final HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator
public Preprocessor(List<omero.cmd.Request> requests, HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator)
protected final void transform(com.google.common.base.Predicate<omero.cmd.Request> isRelevant, Preprocessor.GraphModifyTarget newRequestTarget, Set<Preprocessor.GraphModifyTarget> prohibitedPrefixes, 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 List<omero.cmd.Request> getRequests()
protected void process()
protected String requestToString(omero.cmd.Request request)
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.