wt.epm.attributes
Class EPMAttributeHelper

java.lang.Object
  extended bywt.epm.attributes.EPMAttributeHelper

public class EPMAttributeHelper
extends Object

EPMAttributeHelper is a server-side only helper class for working with user-defined attributes and related classes.

Supported API: false

Extendable: false


Constructor Summary
EPMAttributeHelper()
           
 
Method Summary
static AbstractValueView createValue(AttributeDefDefaultView attrDef, Object value)
          Constructs IBA litevalue for the passed IBA definition and the value object.
static EPMAttributeDelegate getAttributeDelegate(IBAHolder object, EPMAuthoringAppType authApp)
          Returns the EPMAttributeDelegate implementation configured in service.properties based upon IBAHolder and AuthoringAppType.
static Class getAttrValueClass(AttributeDefDefaultView attrDef)
          Given the attribute definition (IBA), returns the IBA litevalue class for the IBA.
static Class getAttrValueClassFromParamType(int type)
          Given the Parameter type (defined in wt.epm.ndi.EPMNDConst), returns the IBA litevalue class for the parameter type.
static AttributeDefinitionDataType getDefDataType(String valueClassName)
          Given the IBA litevalue class name, returns data type of value the IBA can have.
static WTSet getParameterMapEntries(WTCollection ibaHolders)
          Retrieves the parameter map entries for each object in the given collection.
private static WTCollection hasIBAValues(WTCollection ibaHolders)
           
private static WTCollection refreshAttributeContainerWithoutConstraints(WTCollection ibaHolders)
           
static void refreshIBAsWithoutConstraints(WTCollection ibaHolders)
          Retrieves the IBA values for each object in the given collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPMAttributeHelper

public EPMAttributeHelper()
Method Detail

refreshIBAsWithoutConstraints

public static void refreshIBAsWithoutConstraints(WTCollection ibaHolders)
                                          throws WTException
Retrieves the IBA values for each object in the given collection. Since only a very small percentage of EPMDependency links will ever have IBA values, an EPMDependency link has a flag that signifies whether or not it has IBA values. Since querying for IBA values is expensive, this method checks the flag and only passes those EPMDependency links that have IBA values to the IBA Service.

Supported API: false

Throws:
WTException

getParameterMapEntries

public static WTSet getParameterMapEntries(WTCollection ibaHolders)
                                    throws WTException
Retrieves the parameter map entries for each object in the given collection. Since only a very small percentage of EPMDependency links will ever have IBA values, an EPMDependency link has a flag that signifies whether or not it has IBA values. This method checks the flag and does not query for parameter maps on those EPMDependency links that do not have IBA values.

Supported API: false

Throws:
WTException

getAttrValueClassFromParamType

public static Class getAttrValueClassFromParamType(int type)
Given the Parameter type (defined in wt.epm.ndi.EPMNDConst), returns the IBA litevalue class for the parameter type. If invalid parameter type is passed, method returns null.

Supported API: false


getAttrValueClass

public static Class getAttrValueClass(AttributeDefDefaultView attrDef)
Given the attribute definition (IBA), returns the IBA litevalue class for the IBA.

Supported API: false


getDefDataType

public static AttributeDefinitionDataType getDefDataType(String valueClassName)
Given the IBA litevalue class name, returns data type of value the IBA can have.

Supported API: false


createValue

public static AbstractValueView createValue(AttributeDefDefaultView attrDef,
                                            Object value)
                                     throws WTException
Constructs IBA litevalue for the passed IBA definition and the value object. This method handles only construction of IBA litevalue for String, Date & Time, Floating Point, Integer and Boolean types of IBAs.

Supported API: false

Throws:
WTException

getAttributeDelegate

public static EPMAttributeDelegate getAttributeDelegate(IBAHolder object,
                                                        EPMAuthoringAppType authApp)
Returns the EPMAttributeDelegate implementation configured in service.properties based upon IBAHolder and AuthoringAppType.


hasIBAValues

private static WTCollection hasIBAValues(WTCollection ibaHolders)
                                  throws WTException
Throws:
WTException

refreshAttributeContainerWithoutConstraints

private static WTCollection refreshAttributeContainerWithoutConstraints(WTCollection ibaHolders)
                                                                 throws WTException
Throws:
WTException