|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.prodmgmt.ConfigurationHelper
ConfigurationHelper
is a facade class that contains static methods
for manipulating Product Configurations. It encapsulates some of the persistence
and navigation operations for Product Configurations.
Supported API: false
Extendable: false
wt.part.WTProductConfiguration
Field Summary | |
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
Constructor Summary | |
ConfigurationHelper()
|
Method Summary | |
static WTProductConfiguration |
deleteConfiguration(WTProductConfiguration configuration)
Deletes a Part. |
static WTProductConfiguration |
getConfigurationForOID(String theConfigurationID)
Get the configuration with the specified object id |
static String |
getLifeCycle(WTProductConfiguration configuration)
Get the name of the lifecycle the configuration is assigned to |
static String |
getLifeCycleState(WTProductConfiguration configuration)
Get the lifecycle state of the specified configuration |
static int |
getMaxLength(Class a_class,
String attribute_constant)
Get the maximum length for the specified attribute in the specified class. |
protected ResourceBundle |
getResource()
|
static String |
getTeamTemplate(WTProductConfiguration configuration)
Get the name of the teamTemplate the configuration is assigned to |
static Explorable[] |
getUses(WTProductConfiguration configuration,
WTPartConfigSpec configSpec)
Gets the uses WTPartUsageLinks for a Product Configuration. |
protected void |
initResources()
|
static Object |
refresh(Persistable obj)
Refresh the specified object. |
static WTProductConfiguration |
refresh(WTProductConfiguration configuration)
Refresh the specified configuration. |
static WTProductConfiguration |
reviseConfiguration(WTProductConfiguration configuration)
Revises a Configuration. |
static WTProductConfiguration |
saveConfiguration(WTProductConfiguration configuration,
WTProduct product)
Saves a Product Configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static ResourceBundle resource
private static String RESOURCE
Constructor Detail |
public ConfigurationHelper()
Method Detail |
protected void initResources()
protected ResourceBundle getResource()
public static WTProductConfiguration getConfigurationForOID(String theConfigurationID)
theConfigurationID
- the id of the configuration requested
public static Object refresh(Persistable obj) throws WTException
obj
- the object to refresh
WTException
public static WTProductConfiguration refresh(WTProductConfiguration configuration) throws WTException
configuration
- the configuration to refresh
WTException
public static Explorable[] getUses(WTProductConfiguration configuration, WTPartConfigSpec configSpec) throws WTException
WTException
Part
,
WTPartUsageLink
public static WTProductConfiguration saveConfiguration(WTProductConfiguration configuration, WTProduct product) throws WTException
configuration
- the configuration to saveproduct
- the product version to save
WTException
WTProductConfiguration
,
WTProduct
public static WTProductConfiguration deleteConfiguration(WTProductConfiguration configuration) throws WTException
configuration
- the configuration to delete
WTException
Part
public static WTProductConfiguration reviseConfiguration(WTProductConfiguration configuration) throws WTException, WTPropertyVetoException
configuration
- the configuration to revise
WTException
WTPropertyVetoException
WTProductConfiguration
public static String getLifeCycle(WTProductConfiguration configuration) throws WTException
configuration
- the configuration to find the lifecycle name for
WTException
public static String getTeamTemplate(WTProductConfiguration configuration) throws WTException
configuration
- the configuration to find the lifecycle name for
WTException
public static String getLifeCycleState(WTProductConfiguration configuration) throws WTException
configuration
- the configuration whose name is requested
WTException
public static int getMaxLength(Class a_class, String attribute_constant) throws WTIntrospectionException
a_class
- the classattribute_constant
- the string constant for the attribute
WTIntrospectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |