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.修飾子とタイプ | クラスと説明 |
---|---|
static class |
Preprocessor.GraphModifyTarget
A tuple of target type and target ID.
|
static class |
Preprocessor.TargetType
The types of target for which we care about adjusting graph operation requests.
|
修飾子とタイプ | フィールドと説明 |
---|---|
protected ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> |
hierarchyNavigator |
protected java.util.List<omero.cmd.Request> |
requests |
protected static com.google.common.collect.ImmutableList<java.util.Map.Entry<Preprocessor.TargetType,Preprocessor.TargetType>> |
targetTypeHierarchy
the target type hierarchy, an ordered list descending from higher to lower
|
コンストラクタと説明 |
---|
Preprocessor(java.util.List<omero.cmd.Request> requests,
Helper helper) |
Preprocessor(java.util.List<omero.cmd.Request> requests,
ome.services.query.HierarchyNavigatorWrap<Preprocessor.TargetType,Preprocessor.GraphModifyTarget> hierarchyNavigator) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.util.List<omero.cmd.Request> |
getRequests()
Returns a copy of the requests field or an empty list if null.
|
protected void |
process()
Preprocess the list of requests.
|
protected java.lang.String |
requestToString(omero.cmd.Request request)
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)
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)