com.fatwire.gst.foundation.facade.runtag.asset
Class AssetRelationTreeUtils

java.lang.Object
  extended by com.fatwire.gst.foundation.facade.runtag.asset.AssetRelationTreeUtils

public final class AssetRelationTreeUtils
extends Object

Utilities for working efficiently with the AssetRelationTree.

Since:
Jun 7, 2009
Author:
Tony Field

Constructor Summary
AssetRelationTreeUtils()
           
 
Method Summary
static List<com.fatwire.assetapi.data.AssetId> getAssetRelationTreeParents(COM.FutureTense.Interfaces.ICS ics, org.apache.commons.logging.Log 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetRelationTreeUtils

public AssetRelationTreeUtils()
Method Detail

getAssetRelationTreeParents

public static List<com.fatwire.assetapi.data.AssetId> getAssetRelationTreeParents(COM.FutureTense.Interfaces.ICS ics,
                                                                                  org.apache.commons.logging.Log log,
                                                                                  com.fatwire.assetapi.data.AssetId child,
                                                                                  String expectedParentType,
                                                                                  String associationName)
Get all of the parent assets in the AssetRelationTree for the specified asset. Association name is required, but expectedParentType is an optional filter argument.

Does not record any asset dependencies

Parameters:
ics - ICS context
log - logger. May be null.
child - child asset id
expectedParentType - 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 null
Returns:
list of parents, never null.
See Also:
getParents(ICS, AssetId, String[])

getParents

public 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. Records asset dependencies as required (either a qualified or an unqualified unknowndeps).

Parameters:
ics - context
child - asset id that will have its parents retrieved
associationName - name of association to use for lookup. May not ever be null.
Returns:
list of parents, never null.


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.