public class GetDependentsSearchTask extends SessionedTask<java.util.Set<Ref>>
Only dependents 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 |
---|
GetDependentsSearchTask(Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds)
constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<Ref> |
_execute()
Subclasses implement this method
|
static java.util.Set<Ref> |
getDependents(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> |
getDependents(ConfigService configService, java.lang.String session, Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds)
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 GetDependentsSearchTask(Ref ref, java.util.Set<java.lang.String> typeIds, java.util.Set<java.lang.String> frontierTypeIds)
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.public static java.util.Set<Ref> getDependents(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> getDependents(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
protected java.util.Set<Ref> _execute() throws NotFoundException
SessionedTask
_execute
in class SessionedTask<java.util.Set<Ref>>
NotFoundException