|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.enterprise.doc.server.WTDocumentDelegate
Default implementation of the delegate. Used for Windchill PDM implementation.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CHECKIN
|
private static String |
CLASSNAME
|
private static String |
CREATE
|
private static String |
DISPLAY
|
private static String |
DOC_TYPES
|
private static String |
RESOURCE
|
private static boolean |
SHOWORG
|
private static String |
UPDATE
|
private static boolean |
VERBOSE
|
Constructor Summary | |
WTDocumentDelegate()
|
Method Summary | |
WTDocument |
createDocument(TypeIdentifier objType,
HashMap nameValueData,
Locale locale)
Create a document from the input provided. |
HashMap |
getCheckinDocumentAttributes(Persistable object,
HashMap hashMap,
Locale locale)
Return a list of the modeled attributes that can be updated along with their present values. |
protected HashMap |
getCheckinDocumentAttributes(String[] solutionList,
Persistable object,
HashMap hashMap,
Locale locale)
Deprecated. |
protected HashMap |
getCreateDocumentAttributes(String[] solutionList,
WTContainer context,
TypeIdentifier objType,
HashMap hashMap,
boolean autoNumber,
Locale locale)
Deprecated. |
HashMap |
getCreateDocumentAttributes(WTContainer context,
TypeIdentifier objType,
HashMap hashMap,
Locale locale)
Return a list of the modeled attributes that need to be populated for a create. |
HashMap |
getDetailsDocumentAttributes(Persistable object,
HashMap hashMap,
ClientConfiguration clientInfo,
Locale locale)
Return a list of the modeled/made up attributes that should be displayed on the details page. |
protected HashMap |
getDetailsDocumentAttributes(String[] solutionList,
Persistable object,
HashMap hashMap,
ClientConfiguration clientInfo,
Locale locale)
Deprecated. |
TypeIdentifier[] |
getDocumentType(Class objClass,
String context)
Return a vector of the types that are available for this context. |
protected WTDocument |
getNewWTDocument(TypeIdentifier objType)
|
private String[] |
getPDMSpecificAttributes(String operation)
|
private TypeInstanceIdentifier |
getTypeInstanceIdentifier(HashMap hashMap)
|
HashMap |
getUpdateDocumentAttributes(Persistable object,
HashMap hashMap,
Locale locale)
Return a list of the modeled attributes that can be updated along with their present values. |
protected HashMap |
getUpdateDocumentAttributes(String[] solutionList,
Persistable object,
HashMap hashMap,
Locale locale)
Deprecated. |
protected WTDocument |
setStandardCreateAttributes(WTDocument document,
HashMap nameValueData,
Locale locale)
|
protected WTDocument |
setStandardUpdateAttributes(WTDocument document,
HashMap nameValueData,
Locale locale)
|
WTDocument |
updateDocument(WTDocument document,
HashMap nameValueData,
Locale locale)
Update a document from the input provided. |
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
private static final String UPDATE
private static final String DISPLAY
private static final String CHECKIN
private static boolean VERBOSE
private static final boolean SHOWORG
private static final String DOC_TYPES
Constructor Detail |
public WTDocumentDelegate()
Method Detail |
public WTDocument createDocument(TypeIdentifier objType, HashMap nameValueData, Locale locale) throws WTException
createDocument
in interface DocumentDelegate
objType
- Soft type to use for the new document.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 WTDocument updateDocument(WTDocument document, HashMap nameValueData, Locale locale) throws WTException
updateDocument
in interface DocumentDelegate
document
- The document to be updated.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 TypeIdentifier[] getDocumentType(Class objClass, String context) throws WTException
getDocumentType
in interface DocumentDelegate
objClass
- The class of the object that the type list is requested for.context
- The product or repository that this is requested from.
WTException
public HashMap getCreateDocumentAttributes(WTContainer context, TypeIdentifier objType, HashMap hashMap, Locale locale) throws WTException
getCreateDocumentAttributes
in interface DocumentDelegate
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 getUpdateDocumentAttributes(Persistable object, HashMap hashMap, Locale locale) throws WTException
getUpdateDocumentAttributes
in interface DocumentDelegate
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
public HashMap getDetailsDocumentAttributes(Persistable object, HashMap hashMap, ClientConfiguration clientInfo, Locale locale) throws WTException
getDetailsDocumentAttributes
in interface DocumentDelegate
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
public HashMap getCheckinDocumentAttributes(Persistable object, HashMap hashMap, Locale locale) throws WTException
getCheckinDocumentAttributes
in interface DocumentDelegate
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 getCreateDocumentAttributes(String[] solutionList, WTContainer context, TypeIdentifier objType, HashMap hashMap, boolean autoNumber, Locale locale) throws WTException
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
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
protected WTDocument getNewWTDocument(TypeIdentifier objType) throws WTException
WTException
protected WTDocument setStandardCreateAttributes(WTDocument document, HashMap nameValueData, Locale locale) throws WTException
WTException
protected WTDocument setStandardUpdateAttributes(WTDocument document, HashMap nameValueData, Locale locale) throws WTException
WTException
private String[] getPDMSpecificAttributes(String operation)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |