wt.part
Class WTProductConfigurationConfigurationDelegate

java.lang.Object
  extended bywt.part.WTProductConfigurationConfigurationDelegate
All Implemented Interfaces:
ConfigurationDelegate

public class WTProductConfigurationConfigurationDelegate
extends Object
implements ConfigurationDelegate



Supported API: false

Extendable: false


Field Summary
private static String BASELINECONFIGURATIONOVERRIDE
           
private static String BASELINEMEMBER
           
private static String BASELINEREMOVEMEMBER
           
private static String CLASSNAME
           
private static String CLASSNAMEKEYROLEBOBJECTREF
           
private static String IDA2A2
           
private static String IDA3A5
           
private static String IDA3A5_P
           
private static String IDA3B5
           
private static String IDA3C2ITERATIONINFO
           
private static String IDA3CONTEXTREFERENCE
           
private static StatementParameter linkTablesParameter
           
private static StatementParameter partTablesParameter
           
private static String RESOURCE
           
private static StatementParameter serialNumberedClassesParameter
           
private static StatementParameterFactory statementFactory
           
private static String[] WTPARTUSAGELINKS
           
 
Constructor Summary
WTProductConfigurationConfigurationDelegate()
           
 
Method Summary
 double getLinkQuantity(OccurrenceableLink link)
          Return the quantity of the link.
 QueryResult getLinksConfiguringVersions(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions)
          Return the links calling out the versions passed.
 QueryResult getLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec)
          Return the links calling out serial numbered objects in this configuration.
 Navigator getNavigator(BaselineConfigurationVersion configuration, ConfigSpec configSpec)
          Returns the navigator used to populate a configuration.
 QueryResult getUnconfiguredElements(BaselineConfigurationConfigSpec configurationConfigSpec)
          Returns the unconfigured elements of the configuration.
 QueryResult getUnconfiguredVersionsOf(BaselineConfigurationConfigSpec configurationConfigSpec, QueryResult versions)
          For the versions passed, return those no longer called out by anything in the configuration.
 QueryResult intGetLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec, Class serialNumberedObjectClass)
           
 void validateAddToConfiguration(BaselineConfigurationVersion configuration, WTCollection configurationManageables)
          Validates whether or not the object can be added to the configuration, that is, whether or not it is called out by something else in the configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

statementFactory

private static final StatementParameterFactory statementFactory

linkTablesParameter

private static final StatementParameter linkTablesParameter

partTablesParameter

private static final StatementParameter partTablesParameter

serialNumberedClassesParameter

private static final StatementParameter serialNumberedClassesParameter

BASELINECONFIGURATIONOVERRIDE

private static final String BASELINECONFIGURATIONOVERRIDE

BASELINEMEMBER

private static final String BASELINEMEMBER

BASELINEREMOVEMEMBER

private static final String BASELINEREMOVEMEMBER

CLASSNAMEKEYROLEBOBJECTREF

private static final String CLASSNAMEKEYROLEBOBJECTREF

IDA2A2

private static final String IDA2A2

IDA3A5

private static final String IDA3A5

IDA3A5_P

private static final String IDA3A5_P

IDA3B5

private static final String IDA3B5

IDA3C2ITERATIONINFO

private static final String IDA3C2ITERATIONINFO

IDA3CONTEXTREFERENCE

private static final String IDA3CONTEXTREFERENCE

WTPARTUSAGELINKS

private static final String[] WTPARTUSAGELINKS
Constructor Detail

WTProductConfigurationConfigurationDelegate

public WTProductConfigurationConfigurationDelegate()
Method Detail

getNavigator

public Navigator getNavigator(BaselineConfigurationVersion configuration,
                              ConfigSpec configSpec)
                       throws WTException
Description copied from interface: ConfigurationDelegate
Returns the navigator used to populate a configuration.

Supported API: true

Specified by:
getNavigator in interface ConfigurationDelegate
Parameters:
configuration -
configSpec -
Returns:
Navigator
Throws:
WTException

validateAddToConfiguration

public void validateAddToConfiguration(BaselineConfigurationVersion configuration,
                                       WTCollection configurationManageables)
                                throws WTException
Description copied from interface: ConfigurationDelegate
Validates whether or not the object can be added to the configuration, that is, whether or not it is called out by something else in the configuration. For example, if part 200.A is passed, and it is not used by anything in this configuration, it is not in the product's structure and is invalid. Remember to check both normal and override versions!

Supported API: true

Specified by:
validateAddToConfiguration in interface ConfigurationDelegate
Parameters:
configuration -
configurationManageables -
Throws:
WTException

getUnconfiguredElements

public QueryResult getUnconfiguredElements(BaselineConfigurationConfigSpec configurationConfigSpec)
                                    throws WTException
Description copied from interface: ConfigurationDelegate
Returns the unconfigured elements of the configuration. These are elements called out by configured versions for which there is no version in the configuration. For example, if part 100.A is in the configuration and uses part 200, but no version of 200 is in the configuration, 200 would be returned. Remember to include both normal and override versions!

Supported API: true

Specified by:
getUnconfiguredElements in interface ConfigurationDelegate
Parameters:
configurationConfigSpec -
Returns:
QueryResult
Throws:
WTException

getUnconfiguredVersionsOf

public QueryResult getUnconfiguredVersionsOf(BaselineConfigurationConfigSpec configurationConfigSpec,
                                             QueryResult versions)
                                      throws WTException
Description copied from interface: ConfigurationDelegate
For the versions passed, return those no longer called out by anything in the configuration. Remember to include overrides in the check!

Supported API: true

Specified by:
getUnconfiguredVersionsOf in interface ConfigurationDelegate
Parameters:
configurationConfigSpec -
versions -
Returns:
QueryResult
Throws:
WTException

getLinksConfiguringVersions

public QueryResult getLinksConfiguringVersions(BaselineConfigurationConfigSpec configurationConfigSpec,
                                               QueryResult versions)
                                        throws WTException
Description copied from interface: ConfigurationDelegate
Return the links calling out the versions passed.

Supported API: true

Specified by:
getLinksConfiguringVersions in interface ConfigurationDelegate
Parameters:
configurationConfigSpec -
versions -
Returns:
QueryResult
Throws:
WTException

intGetLinksToSerialNumberedObjects

public QueryResult intGetLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec,
                                                      Class serialNumberedObjectClass)
                                               throws WTException
Throws:
WTException

getLinksToSerialNumberedObjects

public QueryResult getLinksToSerialNumberedObjects(BaselineConfigurationConfigSpec configurationConfigSpec)
                                            throws WTException
Description copied from interface: ConfigurationDelegate
Return the links calling out serial numbered objects in this configuration.

Supported API: true

Specified by:
getLinksToSerialNumberedObjects in interface ConfigurationDelegate
Parameters:
configurationConfigSpec -
Returns:
QueryResult
Throws:
WTException

getLinkQuantity

public double getLinkQuantity(OccurrenceableLink link)
                       throws WTException
Description copied from interface: ConfigurationDelegate
Return the quantity of the link.

Supported API: true

Specified by:
getLinkQuantity in interface ConfigurationDelegate
Parameters:
link -
Returns:
double
Throws:
WTException