public class GetDependenciesSearchTask extends SessionedTask<java.util.Set<Ref>>
Only dependencies matching the given set of ids are returned. Optionnally, one can define a set of type ids for which the search should stop. Refs are returned in the deletion order.
Constructor and Description |
---|
GetDependenciesSearchTask(Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<Ref> |
_execute()
Subclasses implement this method
|
static java.util.Set<Ref> |
getDependencies(ConfigService configService, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds)
convenience method (does not include missing refs by default)
|
static java.util.Set<Ref> |
getDependencies(ConfigService configService, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs)
convenience method
|
static java.util.Set<Ref> |
getDependencies(ConfigService configService, java.lang.String session, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds)
convenience method (does not include missing refs by default)
|
static java.util.Set<Ref> |
getDependencies(ConfigService configService, java.lang.String session, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs)
convenience method
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransaction
public GetDependenciesSearchTask(Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs)
ref
- the ref to start from . This reference must existtypeIds
- types of referenes to consider. If null, consider all types of referencesfrontierTypeIds
- indicates when to stop recursing (searching) along an edge. If non-null, and if recursing along an edge from Node A to Node B, the search stops along that edge stops after processing B. In other words there will be no recursing from Node B to its ascendands/descendants. If the value is null, the search does not stop based on the node type.includeMissingRefs
- whether to include a reference in the result set even if it does not exist. This argument is ignored when isAncestor
is true. When collecting ancestors all the ancestors that are found are guaranteed to exist because we are recursing from children up to the parents.public static java.util.Set<Ref> getDependencies(ConfigService configService, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds) throws NotFoundException
NotFoundException
public static java.util.Set<Ref> getDependencies(ConfigService configService, java.lang.String session, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds) throws NotFoundException
NotFoundException
public static java.util.Set<Ref> getDependencies(ConfigService configService, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs) throws NotFoundException
NotFoundException
public static java.util.Set<Ref> getDependencies(ConfigService configService, java.lang.String session, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds, boolean includeMissingRefs) throws NotFoundException
NotFoundException
protected java.util.Set<Ref> _execute() throws NotFoundException
SessionedTask
_execute
in class SessionedTask<java.util.Set<Ref>>
NotFoundException