Class CreatePartFromWorkspaceFormProcessor
- All Implemented Interfaces:
ObjectFormProcessor
This class implements its own refresh logic to handle the refresh of the workspace page. This is different from the logic implemented by CreatePartFormProcessor (that is used from other launch points of Create Part Wizard).
Implementation of CreatePartFormProcessor extends the
CreateObjectFormProcessor class and override the super class
methods setResultNextActionand doOperation
methods to explicitly set the next action and do operation.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
delegates, DO_OPERATION, overallResult, POST_PROCESS, POST_TRANSACTION_PROCESS, PRE_PROCESS -
Method Summary
Modifier and TypeMethodDescriptionpostProcess(NmCommandBean cb, List<ObjectBean> objlist)
Supported API: truepreProcess(NmCommandBean cb, List<ObjectBean> objlist) This method implementation overrides thepreProcessmethod inCreateObjectFormProcessor.setResultNextAction(FormResult result, NmCommandBean clientData, List<ObjectBean> objectBeans) This method implements the refresh logic to handle the refresh of the workspace page.Methods inherited from class com.ptc.core.components.forms.CreateObjectFormProcessor
createAndValidateTypeInstance, createItemInstance, createPersistable, doOperation, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, setRefreshInfo, translateTIToPersistableMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, execute, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, isUseObjectReference, mergeIntermediateResult, postTransactionProcess, processDelegates, removeTempFiles, setDelegates, setUseObjectReference
-
Method Details
-
preProcess
This method implementation overrides thepreProcessmethod inCreateObjectFormProcessor.This method gets the target location (folder) specified by the user and saves it so that it can be later used when the part is checked in. It also sets the location (folder) of the part being created to be the workspace folder.
Supported API: true- Specified by:
preProcessin interfaceObjectFormProcessor- Overrides:
preProcessin classCreateObjectFormProcessor- Parameters:
cb- Contains all the form data and other wizard context information.objlist- Contain the object(s) that were created (if successful) and it will create One bean per object.- Returns:
- result Returns the results using the super class
preProcess. - Throws:
WTException- Handle exceptions while access super class method and putting object to the has map.
-
postProcess
Supported API: true- Specified by:
postProcessin interfaceObjectFormProcessor- Overrides:
postProcessin classDefaultObjectFormProcessor- Parameters:
cb- Contains all the form data and other wizard context information.objlist- Contain the object(s) that were created (if successful) and it will create One bean per object.- Returns:
- Returns the results using the super class
postProcess. - Throws:
WTException
-
setResultNextAction
public FormResult setResultNextAction(FormResult result, NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException This method implements the refresh logic to handle the refresh of the workspace page.This is different from the logic implemented by CreatePartFormProcessor (that is used from other launch points of Create Part Wizard).
Supported API: true- Specified by:
setResultNextActionin interfaceObjectFormProcessor- Overrides:
setResultNextActionin classDefaultObjectFormProcessor- Parameters:
result- The FormResult to which the action info should be added.clientData- Contains all the form data and other wizard context information.objectBeans- Contain the object(s) that were created (if successful) and it will create One bean per object.- Returns:
- result Returns form results or calls super class
setResultNextActionto get the next action. - Throws:
WTException- Handle exception while handling reu
-