com.ptc.windchill.cadx.associate
Class AssociateFormTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bycom.ptc.windchill.cadx.associate.AssociateFormTaskDelegate
All Implemented Interfaces:
ContextHolder

public class AssociateFormTaskDelegate
extends FormTaskDelegate



Supported API: true

Extendable: false


Field Summary
private static String CLASSNAME
           
(package private)  boolean error
           
(package private)  Locale locale
           
private static String RESOURCE
           
 
Fields inherited from class wt.templateutil.processor.FormTaskDelegate
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
AssociateFormTaskDelegate()
           
 
Method Summary
private  void associate()
           
private  void cancel()
           
private  Vector eliminateGhostsFromSelected(Vector selectedDocs)
           
private  String getKey(Object obj)
          return ID of the object
private  Vector getModifiedObjects()
           
private  Object getObject(String id)
          get Object from Id..
private  String getSelIdProperty()
           
private  void goToAssociatePage(Object obj)
          Go to proper associate page depending on the context object
private  void goToRefererPage()
          Return to the page from where 'Associate' action is invoked.
private  String logErrorMessage(String messageId, String category, Object[] param)
           
private  String logMessage(String messageId, String category, Object[] param)
           
private  String logStatusMessage(String messageId, String category, Object[] param)
           
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
private  void processAssociateFromWs()
          set proper context object and action if associate action is invoked from workspace.
 
Methods inherited from class wt.templateutil.processor.FormTaskDelegate
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

locale

Locale locale

error

boolean error
Constructor Detail

AssociateFormTaskDelegate

public AssociateFormTaskDelegate()
Method Detail

associate

private void associate()
                throws WTException,
                       WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

cancel

private void cancel()

getObject

private Object getObject(String id)
get Object from Id..

Parameters:
id -
Returns:
Object

getModifiedObjects

private Vector getModifiedObjects()
Returns:
Vector

logMessage

private String logMessage(String messageId,
                          String category,
                          Object[] param)
Parameters:
messageId -
category -
param -
Returns:
String

logErrorMessage

private String logErrorMessage(String messageId,
                               String category,
                               Object[] param)
Parameters:
messageId -
category -
param -
Returns:
String

processAssociateFromWs

private void processAssociateFromWs()
set proper context object and action if associate action is invoked from workspace.


goToAssociatePage

private void goToAssociatePage(Object obj)
Go to proper associate page depending on the context object

Parameters:
obj -

goToRefererPage

private void goToRefererPage()
Return to the page from where 'Associate' action is invoked.


getKey

private String getKey(Object obj)
return ID of the object

Parameters:
obj -
Returns:
String

processAction

public void processAction(ContentHTTPStream contentStream)
                   throws Exception
Deprecated.  

Processed the desired action and then updates the state so that the desired response page can be generated.

Use the addToResponse methods to pass back messages on the status/results of the action.

Supported API: true

Specified by:
processAction in class FormTaskDelegate
Parameters:
contentStream -
Throws:
Exception

logStatusMessage

private String logStatusMessage(String messageId,
                                String category,
                                Object[] param)

getSelIdProperty

private String getSelIdProperty()

eliminateGhostsFromSelected

private Vector eliminateGhostsFromSelected(Vector selectedDocs)