Class WFEditorHandler

  • All Implemented Interfaces:
    JcmsConstants, JaliosConstants

    public class WFEditorHandler
    extends JcmsFormHandler
    This form handler processes wfEditor.jsp form.
    Since:
    jcms-3.0
    Author:
    Olivier Dedieu, modified by Deboschère Tony for parallel and express WF
    • Field Detail

      • openTab

        protected int openTab
      • op

        protected boolean op
      • opAddWorkflow

        protected boolean opAddWorkflow
      • opDeleteWorkflow

        protected boolean opDeleteWorkflow
      • opAddState

        protected boolean opAddState
      • opUpdateState

        protected boolean opUpdateState
      • opDeleteState

        protected boolean opDeleteState
      • opCancel

        protected boolean opCancel
      • opUpdateMatrix

        protected boolean opUpdateMatrix
      • opSave

        protected boolean opSave
      • opRevert

        protected boolean opRevert
      • opAddItem

        protected boolean opAddItem
      • opAddRole

        protected boolean opAddRole
      • opUpdateMatrix2

        protected boolean opUpdateMatrix2
      • opDeleteRole

        protected boolean opDeleteRole
      • opEditRole

        protected boolean opEditRole
      • opUpdateRole

        protected boolean opUpdateRole
      • opUpdateWorkflow

        protected boolean opUpdateWorkflow
      • wfLabelMap

        protected java.util.Map<java.lang.String,​java.lang.String> wfLabelMap
      • wfId

        protected java.lang.String wfId
      • newId

        protected java.lang.String newId
      • wfFromId

        protected java.lang.String wfFromId
      • wfType

        protected java.lang.String wfType
      • roleId

        protected java.lang.String roleId
      • roleNameMap

        protected java.util.Map roleNameMap
      • roleDescriptionMap

        protected java.util.Map roleDescriptionMap
      • stateLabelMap

        protected java.util.Map stateLabelMap
      • stateDescriptionMap

        protected java.util.Map stateDescriptionMap
      • color

        protected java.lang.String color
      • initState

        protected boolean initState
      • pstatus

        protected int pstatus
      • newPstatus

        protected int newPstatus
      • inAuthor

        protected boolean inAuthor
      • inWorkers

        protected boolean inWorkers
      • inAdmins

        protected boolean inAdmins
      • inManager

        protected boolean inManager
      • repeatTime

        protected long repeatTime
      • outAuthor

        protected boolean outAuthor
      • outWorkers

        protected boolean outWorkers
      • outAdmins

        protected boolean outAdmins
      • outManager

        protected boolean outManager
      • duration

        protected int duration
      • targetPstatus

        protected java.lang.String targetPstatus
      • targetPstatusInt

        protected int targetPstatusInt
      • isTargetPstatusValidated

        protected boolean isTargetPstatusValidated
      • reminder

        protected int reminder
      • transitRole

        protected WFRole transitRole
    • Constructor Detail

      • WFEditorHandler

        public WFEditorHandler()
    • Method Detail

      • processAction

        public boolean processAction()
                              throws java.io.IOException
        Description copied from class: JcmsFormHandler
        Method to be implemented to check/validate action to be performed and process them.

        Default implementation is to return false. No need to call super method.

        This method may NOT be invoked at all if security validation are not met.

        You must ensure your handler and JSP can work properly without any code invoked in this method.

        Overrides:
        processAction in class JcmsFormHandler
        Returns:
        false if no redirection is needed, true otherwise
        Throws:
        java.io.IOException - IO Exception
      • validateCommonAddUpdateState

        public boolean validateCommonAddUpdateState()
      • validateCommonAddUpdateWorkflow

        public boolean validateCommonAddUpdateWorkflow()
      • validateAddWorkflow

        public boolean validateAddWorkflow()
      • performAddWorkflow

        public boolean performAddWorkflow()
      • validateUpdateWorkflow

        public boolean validateUpdateWorkflow()
      • performUpdateWorkflow

        public boolean performUpdateWorkflow()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • validateDeleteWorkflow

        public boolean validateDeleteWorkflow()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • performDeleteWorkflow

        public boolean performDeleteWorkflow()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • cleanRole

        public void cleanRole()
      • validateCommonAddUpdateRole

        public boolean validateCommonAddUpdateRole()
      • validateAddRole

        public boolean validateAddRole()
      • performAddRole

        public boolean performAddRole()
      • validateUpdateRole

        public boolean validateUpdateRole()
      • performUpdateRole

        public boolean performUpdateRole()
      • validateEditRole

        public boolean validateEditRole()
      • performEditRole

        public boolean performEditRole()
      • validateDeleteRole

        public boolean validateDeleteRole()
      • performDeleteRole

        public boolean performDeleteRole()
      • validateAddState

        public boolean validateAddState()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • performAddState

        public boolean performAddState()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • validateUpdateState

        public boolean validateUpdateState()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • performUpdateState

        public boolean performUpdateState()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • validateDeleteState

        public boolean validateDeleteState()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • performDeleteState

        public boolean performDeleteState()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • validateCancel

        public boolean validateCancel()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performCancel

        public boolean performCancel()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • validateUpdateMatrix

        public boolean validateUpdateMatrix()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • performUpdateMatrix

        public boolean performUpdateMatrix()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getInvolvedRoles

        public java.util.Set getInvolvedRoles()
      • validateRevert

        public boolean validateRevert()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performRevert

        public boolean performRevert()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • validateSave

        public boolean validateSave()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • performSave

        public boolean performSave()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • setOpCancel

        public void setOpCancel​(java.lang.String v)
      • setOpSave

        public void setOpSave​(java.lang.String v)
      • setOpRevert

        public void setOpRevert​(java.lang.String v)
      • isTabForced

        public boolean isTabForced()
      • getOpenTab

        public int getOpenTab()
      • setOpenTab

        public void setOpenTab​(int v)
      • setInAuthor

        public void setInAuthor​(boolean v)
      • setInWorkers

        public void setInWorkers​(boolean v)
      • setInAdmins

        public void setInAdmins​(boolean v)
      • setInManager

        public void setInManager​(boolean v)
      • setRepeatTime

        public void setRepeatTime​(long v)
      • setOutAuthor

        public void setOutAuthor​(boolean v)
      • setOutWorkers

        public void setOutWorkers​(boolean v)
      • setOutAdmins

        public void setOutAdmins​(boolean v)
      • setOutManager

        public void setOutManager​(boolean v)
      • getAvailableInAuthor

        public boolean getAvailableInAuthor()
      • getAvailableInWorkers

        public boolean getAvailableInWorkers()
      • getAvailableInAdmins

        public boolean getAvailableInAdmins()
      • getAvailableInManager

        public boolean getAvailableInManager()
      • getAvailableRepeatTime

        public long getAvailableRepeatTime()
      • getAvailableOutAuthor

        public boolean getAvailableOutAuthor()
      • getAvailableOutWorkers

        public boolean getAvailableOutWorkers()
      • getAvailableOutAdmins

        public boolean getAvailableOutAdmins()
      • getAvailableOutManager

        public boolean getAvailableOutManager()
      • showOutgoingActions

        public boolean showOutgoingActions()
      • showInitState

        public boolean showInitState()
      • showWorkflowExpress

        public boolean showWorkflowExpress()
      • showReminder

        public boolean showReminder()
      • getWorkflowSet

        public java.util.Set<Workflow> getWorkflowSet()
      • getAvailableNewId

        public java.lang.String getAvailableNewId()
      • setNewId

        public void setNewId​(java.lang.String newId)
      • getAvailableId

        public java.lang.String getAvailableId()
      • setId

        public void setId​(java.lang.String wfId)
      • getWorkflowTitle

        public java.lang.String getWorkflowTitle()
      • getWorkflow

        public Workflow getWorkflow()
      • getAvailableLabel

        public java.lang.String getAvailableLabel​(java.lang.String lang)
      • getAvailableLabelMap

        public java.util.Map getAvailableLabelMap()
      • setLabel

        public void setLabel​(java.lang.String[] v)
      • getAvailableType

        public java.lang.String getAvailableType()
      • setType

        public void setType​(java.lang.String type)
      • setWfFrom

        public void setWfFrom​(java.lang.String v)
      • setOpDeleteWorkflow

        public void setOpDeleteWorkflow​(java.lang.String v)
      • setOpAddWorkflow

        public void setOpAddWorkflow​(java.lang.String v)
      • setOpUpdateWorkflow

        public void setOpUpdateWorkflow​(java.lang.String v)
      • getAvailableMdate

        public java.util.Date getAvailableMdate()
        Returns:
        workflow mdate if any
        Since:
        jcms-10.0.7 JCMS-8941
      • clear

        protected void clear()
      • setOpAddState

        public void setOpAddState​(java.lang.String v)
      • setOpUpdateState

        public void setOpUpdateState​(java.lang.String v)
      • setOpDeleteState

        public void setOpDeleteState​(java.lang.String v)
      • setPstatus

        public void setPstatus​(java.lang.String v)
      • setNewPstatus

        public void setNewPstatus​(java.lang.String v)
      • setInitState

        public void setInitState​(boolean v)
      • setStateLabel

        public void setStateLabel​(java.lang.String[] v)
      • setStateDescription

        public void setStateDescription​(java.lang.String[] v)
      • setStateColor

        public void setStateColor​(java.lang.String v)
      • getAvailableStateLabel

        public java.lang.String getAvailableStateLabel​(java.lang.String lang)
      • getAvailableStateLabelMap

        public java.util.Map getAvailableStateLabelMap()
      • getAvailablePstatus

        public java.lang.String getAvailablePstatus()
      • getAvailableDescription

        public java.lang.String getAvailableDescription​(java.lang.String lang)
      • getAvailableDescriptionMap

        public java.util.Map getAvailableDescriptionMap()
      • setColor

        public void setColor​(java.lang.String color)
      • getAvailableColor

        public java.lang.String getAvailableColor()
      • getAvailableInitState

        public boolean getAvailableInitState()
      • getAvailableState

        public WFState getAvailableState()
      • setState

        public void setState​(WFState v)
      • getAvailableDuration

        public int getAvailableDuration()
      • setDuration

        public void setDuration​(int v)
      • setTargetPstatus

        public void setTargetPstatus​(java.lang.String v)
      • getAvailaibleTargetPstatus

        public java.lang.String getAvailaibleTargetPstatus()
      • setReminder

        public void setReminder​(int v)
      • getAvailableReminder

        public int getAvailableReminder()
      • setOpAddRole

        public void setOpAddRole​(java.lang.String v)
      • setOpUpdateRole

        public void setOpUpdateRole​(java.lang.String v)
      • setOpDeleteRole

        public void setOpDeleteRole​(java.lang.String v)
      • setOpEditRole

        public void setOpEditRole​(java.lang.String v)
      • setEditRole

        public void setEditRole​(java.lang.String v)
      • getAvailableRole

        public WFRole getAvailableRole()
      • setRoleName

        public void setRoleName​(java.lang.String[] v)
      • getAvailableRoleName

        public java.lang.String getAvailableRoleName​(java.lang.String lang)
      • getAvailableRoleNameMap

        public java.util.Map getAvailableRoleNameMap()
      • setRoleDescription

        public void setRoleDescription​(java.lang.String[] v)
      • getAvailableRoleDescription

        public java.lang.String getAvailableRoleDescription​(java.lang.String lang)
      • getAvailableRoleDescriptionMap

        public java.util.Map getAvailableRoleDescriptionMap()
      • setOpUpdateMatrix

        public void setOpUpdateMatrix​(java.lang.String v)
      • setTransitRole

        public void setTransitRole​(java.lang.String v)
      • getAvailableTransitRole

        public WFRole getAvailableTransitRole()