Class CreatePartFromWorkspaceFormProcessor

All Implemented Interfaces:
ObjectFormProcessor

public class CreatePartFromWorkspaceFormProcessor extends CreateObjectFormProcessor
CreatePartFormProcessor is invoked by JCA infrastructure when user clicks the OK button in the Create Part Wizard when the Create Part wizard is invoked from a Workspace. If its not invoked from Workspace, this processor is not invoked.

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

  • Method Details

    • preProcess

      public FormResult preProcess(NmCommandBean cb, List<ObjectBean> objlist) throws WTException
      This method implementation overrides the preProcess method in CreateObjectFormProcessor.

      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:
      preProcess in interface ObjectFormProcessor
      Overrides:
      preProcess in class CreateObjectFormProcessor
      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

      public FormResult postProcess(NmCommandBean cb, List<ObjectBean> objlist) throws WTException


      Supported API: true
      Specified by:
      postProcess in interface ObjectFormProcessor
      Overrides:
      postProcess in class DefaultObjectFormProcessor
      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:
      setResultNextAction in interface ObjectFormProcessor
      Overrides:
      setResultNextAction in class DefaultObjectFormProcessor
      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 setResultNextAction to get the next action.
      Throws:
      WTException - Handle exception while handling reu