|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.prodmgmt.InstanceHelper
PartHelper
is a facade class that contains static methods
for manipulating Parts. It encapsulates some of the persistence and navigation
operations for Parts.
Supported API: false
Extendable: false
wt.part.WTProductInstance2
Field Summary | |
private static ResourceBundle |
resource
|
private static String |
RESOURCE
|
Constructor Summary | |
InstanceHelper()
|
Method Summary | |
static WTProductInstance2 |
deleteInstance(WTProductInstance2 instance)
Deletes a instance. |
static WTPartConfigSpec |
getConfigSpec()
Gets the current ConfigSpec for the current user. |
static WTProductInstance2 |
getInstanceForOID(String theInstanceID)
Get the instance with the specified object id |
static String |
getLifeCycle(WTProductInstance2 instance)
Get the name of the lifecycle the part is assigned to |
static String |
getLifeCycleState(WTProductInstance2 instance)
Get the lifecycle state of the specified part |
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(WTProductInstance2 instance)
Get the name of the teamTemplate the part is assigned to |
protected void |
initResources()
|
static Object |
refresh(Persistable obj)
Refresh the specified object. |
static WTProductInstance2 |
refresh(WTProductInstance2 instance)
Refresh the specified instance. |
static WTProductInstance2 |
revisePart(WTProductInstance2 instance)
Revises a Part. |
static WTProductInstance2 |
saveInstance(WTProductInstance2 instance)
Saves a Instance. |
static WTPartConfigSpec |
setConfigSpec(WTPartConfigSpec spec)
Sets the ConfigSpec for the current principal. |
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 InstanceHelper()
Method Detail |
protected void initResources()
protected ResourceBundle getResource()
public static WTProductInstance2 getInstanceForOID(String theInstanceID)
public static Object refresh(Persistable obj) throws WTException
obj
- the object to refresh
WTException
public static WTProductInstance2 refresh(WTProductInstance2 instance) throws WTException
instance
- the instance to refresh
WTException
public static WTPartConfigSpec getConfigSpec() throws WTException
WTException
ConfigSpec
public static WTPartConfigSpec setConfigSpec(WTPartConfigSpec spec) throws WTException
spec
- the wt.vc.config.ConfigSpec.
WTException
ConfigSpec
public static WTProductInstance2 saveInstance(WTProductInstance2 instance) throws WTException
instance
- the part to save
WTException
Part
public static WTProductInstance2 deleteInstance(WTProductInstance2 instance) throws WTException
instance
- the instance to delete
WTException
WTProductInstance2
public static WTProductInstance2 revisePart(WTProductInstance2 instance) throws WTException, WTPropertyVetoException
instance
- the instance to revise
WTException
WTPropertyVetoException
WTProductInstance2
public static String getLifeCycle(WTProductInstance2 instance) throws WTException
WTException
public static String getTeamTemplate(WTProductInstance2 instance) throws WTException
WTException
public static String getLifeCycleState(WTProductInstance2 instance) throws WTException
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 |