|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.enterprise.doc.server.WTDocumentTemplateDelegate
Document template processing specific to Windchill PDM or common to all.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CHECKIN_TEMPLATE
Deprecated. |
private static String |
CLASSNAME
Deprecated. |
private static String |
CREATE_FROM_TEMPLATE
Deprecated. |
private static String |
CREATE_TEMPLATE
Deprecated. |
private static String |
DISPLAY_TEMPLATE
Deprecated. |
private static String |
DOC_TYPES
Deprecated. |
private static String |
RESOURCE
Deprecated. |
private static boolean |
SHOWORG
Deprecated. |
private static String |
UPDATE_TEMPLATE
Deprecated. |
private static boolean |
VERBOSE
Deprecated. |
Constructor Summary | |
WTDocumentTemplateDelegate()
Deprecated. |
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 static final String CREATE_FROM_TEMPLATE
private static final String CREATE_TEMPLATE
private static final String UPDATE_TEMPLATE
private static final String DISPLAY_TEMPLATE
private static final String CHECKIN_TEMPLATE
private static boolean VERBOSE
private static final boolean SHOWORG
private static final String DOC_TYPES
Constructor Detail |
public WTDocumentTemplateDelegate()
Method Detail |
public Templateable createFromTemplate(Templateable objTemplate, HashMap nameValueData, Locale locale, String applicationName) throws WTException
createFromTemplate
in interface TemplateObjectDelegate
objTemplate
- The template to create the object from.nameValueData
- Name value pairs from the UI.locale
- The locale of the client, used to return some of the strings in the locale of the client.applicationName
- Name of application to branch on to the different delegates for the checkout of the document. This is not used to branch on for any of the template objects.
WTException
public Templateable createTemplate(TypeIdentifier objType, HashMap nameValueData, Locale locale) throws WTException
createTemplate
in interface TemplateObjectDelegate
objType
- Soft type to use for the new template.nameValueData
- Name value pairs of data from the UI.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public Persistable[] getTemplates(Class objClass, String context, Locale locale) throws WTException
getTemplates
in interface TemplateObjectDelegate
objClass
- The class of the object that the template list is requested for.context
- The product or repository that this is requested from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public TypeIdentifier[] getTemplateTypes(Class objClass, String context, Locale locale) throws WTException
getTemplateTypes
in interface TemplateObjectDelegate
objClass
- The class of the object that the template list is requested for.context
- The product or repository that this is requested from.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCreateTemplateAttributes(WTContainer context, TypeIdentifier objType, HashMap hashMap, Locale locale) throws WTException
getCreateTemplateAttributes
in interface TemplateObjectDelegate
context
- Container to create the document in.objType
- Soft type to use for the new document.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCreateFromTemplateAttributes(WTContainer context, Templateable objTemplate, HashMap hashMap, Locale locale) throws WTException
getCreateFromTemplateAttributes
in interface TemplateObjectDelegate
context
- Container to create the document in.objTemplate
- The template to create the object from.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getUpdateTemplateAttributes(Templateable object, HashMap hashMap, Locale locale) throws WTException
getUpdateTemplateAttributes
in interface TemplateObjectDelegate
object
- The template to be updated.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getDetailsTemplateAttributes(Templateable object, HashMap hashMap, ClientConfiguration clientInfo, Locale locale) throws WTException
getDetailsTemplateAttributes
in interface TemplateObjectDelegate
object
- The template to be displayed.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.clientInfo
- Information from the client application.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
public HashMap getCheckinTemplateAttributes(Templateable object, HashMap hashMap, Locale locale) throws WTException
getCheckinTemplateAttributes
in interface TemplateObjectDelegate
object
- The template to be checked in.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected WTDocument getUnpersistedDocumentFromTemplate(WTDocument template, HashMap nameValueData, String solution, Locale locale) throws WTException
template
- The template to create the new document from.nameValueData
- The input from the UI.solution
- The solution key for the template processing.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected WTDocument persistDocumentFromTemplate(WTDocument template, WTDocument document, HashMap nameValueData, HashMap postCreateInfo, String solution, Locale locale) throws WTException
template
- The template to create the new document from.document
- The new unpersisted document.nameValueData
- The input from the UI.postCreateInfo
- The input from the UI.solution
- The solution key for the template processing.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected WTDocument getUnpersistedTemplate(HashMap nameValueData, TypeIdentifier objType, String solution, Locale locale) throws WTException
nameValueData
- The input from the UI.solution
- The solution key for the template processing.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected WTDocument persistDocumentTemplate(WTDocument document, HashMap postCreateInfo, String solution, Locale locale) throws WTException
document
- The new unpersisted document.postCreateInfo
- The input from the UI.solution
- The solution key for the template processing.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected HashMap getCreateTemplateAttributes(String[] solutionList, WTContainer context, TypeIdentifier objType, HashMap hashMap, boolean autoNumber, Locale locale) throws WTException
solutionList
- List of attributes for the solution.context
- Container to create the document in.objType
- Soft type to use for the new document.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.autoNumber
- Should the document be autonumbered or manually numbered.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected HashMap getCreateFromTemplateAttributes(String[] solutionList, WTContainer context, Templateable template, HashMap hashMap, boolean autoNumber, Locale locale) throws WTException
context
- Container to create the document in.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected HashMap getUpdateDocumentAttributes(String[] solutionList, Persistable object, HashMap hashMap, Locale locale) throws WTException
object
- The class of the object that the context list is requested for.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected HashMap getCheckinDocumentAttributes(String[] solutionList, Persistable object, HashMap hashMap, Locale locale) throws WTException
object
- The class of the object that the context list is requested for.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
protected HashMap getDetailsDocumentAttributes(String[] solutionList, Persistable object, HashMap hashMap, ClientConfiguration clientInfo, Locale locale) throws WTException
object
- The class of the object that the context list is requested for.hashMap
- Either a started hash map for the data or null if one is to be created inside of this method.clientInfo
- Information from the client application.locale
- The locale of the client, used to return some of the strings in the locale of the client.
WTException
private TypeInstanceIdentifier getTypeInstanceIdentifier(HashMap hashMap) throws IllegalFormatException, UnableToCreateServiceException
IllegalFormatException
UnableToCreateServiceException
private String[] getPDMSpecificAttributes(String operation)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |