Interface IProcessActionHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getId()
      Returns the identifier for the process action handler.
      java.lang.Object getParameter​(java.lang.String name)
      Returns the parameter value.
      <T> T getParameter​(java.lang.String name, java.lang.Class<T> expectedClass)
      Returns the parameter value converted to the expected class.
      void init​(org.w3c.dom.Node processActionNode, ProcessActionContainer processActionContainer)
      Called by the process action container to initialize the process action.
      void processAction()
      Executes the process action.
      void setParameter​(java.lang.String name, java.lang.Object value)
      All controls pass their values to a process action object via this method.
    • Method Detail

      • init

        void init​(org.w3c.dom.Node processActionNode,
                  ProcessActionContainer processActionContainer)
           throws PortalException
        Called by the process action container to initialize the process action.

        The process action node is a copy of the node specified in the doui definition.

        Parameters:
        processActionNode -
        processActionContainer -
        Throws:
        PortalException
        Since:
        4.0.0
      • getId

        java.lang.String getId()
                        throws PortalException
        Returns the identifier for the process action handler.
        Returns:
        the process action identifier.
        Throws:
        PortalException
        Since:
        5.0.0
      • processAction

        void processAction()
                    throws PortalException
        Executes the process action.

        This method may execute the process action based on the parameters and node specifications passed to it earlier.

        Throws:
        PortalException
        Since:
        4.0.0
      • setParameter

        void setParameter​(java.lang.String name,
                          java.lang.Object value)
        All controls pass their values to a process action object via this method.

        The controls call this method before the processAction() method is called.

        Parameters:
        name -
        value -
        Since:
        4.0.0
      • getParameter

        java.lang.Object getParameter​(java.lang.String name)
        Returns the parameter value.
        Specified by:
        getParameter in interface IParameters
        Parameters:
        name -
        Returns:
        Since:
        4.0.0
      • getParameter

        <T> T getParameter​(java.lang.String name,
                           java.lang.Class<T> expectedClass)
        Returns the parameter value converted to the expected class.
        Type Parameters:
        T - the expected class.
        Parameters:
        name - the parameter name.
        expectedClass - the expected class.
        Returns:
        the parameter value, converted to the expected class, or null if there is no such parameter value set.
        Since:
        4.0.4