Class Found
java.lang.Object
com.atlassian.plugin.webresource.impl.discovery.Found
Represents the result of walking the dependency graph via
BundleWalker, where every
item is in is in topological sort order.
The items captured will vary based on how the graph walk was configured in
BundleFinder or BundleWalker.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTuple of aRequestablekey and its contributionFound.Stateto the response for a client request. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Found
-
-
Method Details
-
getFound
- Returns:
- a list of
Requestablekeys whose content should be served to the client.
-
getSkipped
- Returns:
- a list of
Requestablekeys that failed a deep filter test while traversing the graph (such as aUrlReadingConditionreturning false) and should not be served to the client. Note that these are the exact items that failed a predicate test. Any child items would be ignored by the graph walk. If you need a complete list that includes subtrees of skipped items, configureBundleFinder.onDeepFilterFail(PredicateFailStrategy)to continue when a deep filter fails.
-
getAll
- Returns:
- all
Requestablekeys discovered while performing this graph traversal. The list will include all skipped items, and may include ignored subtrees depending on howBundleFinder.onDeepFilterFail(PredicateFailStrategy)was configured.
-
getReducedInclusions
- Returns:
- the minimal set of graph entry points required to discover all the
getFound()items after omitting subtrees discoverable viagetReducedExclusions(). Can be used to minimise encoding cost when expressing the graph query and avoid redundant graph walks.
-
getReducedExclusions
- Returns:
- the minimal set of graph entry points required to avoid serving content the client should not be given. Can be used to minimise encoding cost when expressing the graph query and avoid redundant graph walks.
-