public final class AssetRelationTreeUtils extends Object
Constructor and Description |
---|
AssetRelationTreeUtils() |
Modifier and Type | Method and Description |
---|---|
static List<com.fatwire.assetapi.data.AssetId> |
getAssetRelationTreeParents(COM.FutureTense.Interfaces.ICS ics,
org.slf4j.Logger log,
com.fatwire.assetapi.data.AssetId child,
String expectedParentType,
String associationName)
Get all of the parent assets in the AssetRelationTree for the specified
asset.
|
static Collection<com.fatwire.assetapi.data.AssetId> |
getParents(COM.FutureTense.Interfaces.ICS ics,
com.fatwire.assetapi.data.AssetId child,
String... associationName)
Look up parents in Asset Relation Tree for the specified child.
|
public static List<com.fatwire.assetapi.data.AssetId> getAssetRelationTreeParents(COM.FutureTense.Interfaces.ICS ics, org.slf4j.Logger log, com.fatwire.assetapi.data.AssetId child, String expectedParentType, String associationName)
Does not record any asset dependencies
ics
- ICS contextlog
- logger. May be null.child
- child asset idexpectedParentType
- asset type of the parent to be returned. If
null, type of parent is irrelevant.associationName
- name of association to use while looking for
parents. may not be nullgetParents(ICS, AssetId, String[])
public static Collection<com.fatwire.assetapi.data.AssetId> getParents(COM.FutureTense.Interfaces.ICS ics, com.fatwire.assetapi.data.AssetId child, String... associationName)
ics
- contextchild
- asset id that will have its parents retrievedassociationName
- name of association to use for lookup. May not ever be null.Copyright © 2016–2017. All rights reserved.