|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.enterprise.templates.TemplatesFactory
Gets the correct delegate that implements the requested function. Will
pick the delegate based on object type OR solution and object type.
Supported API: true
Extendable: false
Field Summary | |
private ApplicationContext |
applicationContext
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Fields inherited from interface wt.services.applicationcontext.ApplicationContextChild |
APPLICATION_CONTEXT |
Constructor Summary | |
TemplatesFactory()
|
Method Summary | |
static RevisionControlled |
doCreateFromTemplateContextTasks(String selector,
Object branchingObj,
RevisionControlled object,
Templateable template,
HashMap inputHash)
Perform context specific tasks during Create from Template operation. |
static Templateable |
doCreateTemplateContextTasks(String selector,
Object branchingObj,
Templateable object,
HashMap inputHash)
Perform context specific tasks during Create Template operation. |
static RevisionControlled |
doPostCreateFromTemplateContextTasks(String selector,
Object branchingObj,
RevisionControlled object,
Templateable template,
HashMap inputHash)
Perform context specific tasks after persisting the object created from template during a Create from Template operation. |
static Templateable |
doPostCreateTemplateContextTasks(String selector,
Object branchingObj,
Templateable object,
HashMap inputHash)
Perform context specific tasks after persisting the template during a Create Template operation. |
ApplicationContext |
getApplicationContext()
Gets the object for the association that plays role: applicationContext. |
ApplicationContextServices |
getApplicationContextServices()
|
static RevisionControlled |
newObjFromTemplate(Templateable objTemplate,
String context)
Create an object from template and set its context, defaults and mandatory values etc. |
static Templateable |
newTemplate(String objType,
String context)
Create an object that will be used as a template object and set its context, defaults and mandatory values etc. |
static Templateable |
newTemplate(TypeIdentifier objType,
WTContainer context)
Create an object that will be used as a template object and set its context, defaults and mandatory values etc. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(TemplatesFactory thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
setApplicationContext(ApplicationContext a_ApplicationContext)
Sets the object for the association that plays role: applicationContext. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private ApplicationContext applicationContext
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
Constructor Detail |
public TemplatesFactory()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(TemplatesFactory thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static Templateable newTemplate(String objType, String context) throws WTException
objType
- Type to use for the new template.context
- Context used to store this new template
WTException
public static Templateable newTemplate(TypeIdentifier objType, WTContainer context) throws WTException
objType
- Type to use for the new template.context
- Context used to store this new template
WTException
public static Templateable doCreateTemplateContextTasks(String selector, Object branchingObj, Templateable object, HashMap inputHash) throws WTException
selector
- This is the solution name used to branch to a specific delegate.branchingObj
- This is the branching object used to branch to a specific delegate.object
- Template object to perform context based createtemplate tasks on.inputHash
- A hashmap of custom values that need to be passed into the method.
WTException
public static RevisionControlled newObjFromTemplate(Templateable objTemplate, String context) throws WTException
objTemplate
- Template to use for the new object.context
- Context used to store this new object created from template
WTException
public static RevisionControlled doCreateFromTemplateContextTasks(String selector, Object branchingObj, RevisionControlled object, Templateable template, HashMap inputHash) throws WTException
selector
- This is the solution name used to branch to a specific delegate.branchingObj
- This is the branching object used to branch to a specific delegate.object
- Object created from template to perform context based createfromtemplate tasks on.template
- template that the object was create from during createfromtemplateinputHash
- A hashmap of custom values that need to be passed into the method.
WTException
public static Templateable doPostCreateTemplateContextTasks(String selector, Object branchingObj, Templateable object, HashMap inputHash) throws WTException
selector
- This is the solution name used to branch to a specific delegate.branchingObj
- This is the branching object used to branch to a specific delegate.object
- Template object to perform context based post createtemplate tasks on.inputHash
- A hashmap of custom values that need to be passed into the method.
WTException
public static RevisionControlled doPostCreateFromTemplateContextTasks(String selector, Object branchingObj, RevisionControlled object, Templateable template, HashMap inputHash) throws WTException
selector
- This is the solution name used to branch to a specific delegate.branchingObj
- This is the branching object used to branch to a specific delegate.object
- Object created from template to perform context post based createfromtemplate tasks on.template
- template that the object was create from during createfromtemplateinputHash
- A hashmap of custom values that need to be passed into the method.
WTException
public ApplicationContext getApplicationContext()
getApplicationContext
in interface ApplicationContextChild
public void setApplicationContext(ApplicationContext a_ApplicationContext) throws WTPropertyVetoException
setApplicationContext
in interface ApplicationContextChild
a_ApplicationContext
-
WTPropertyVetoException
public ApplicationContextServices getApplicationContextServices()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |