Class EditWorkspaceRoleHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class EditWorkspaceRoleHandler extends AbstractEditWorkspaceHandler
This form handler process Group forms.
Author:
Jean-Philippe Encausse
See Also:
  • Field Details

    • STEP_PREFIX

      public static final String STEP_PREFIX
      See Also:
    • roleGroups

      protected Group[] roleGroups
    • roleGroupsAddCount

      protected int roleGroupsAddCount
    • roleWeight

      protected int[] roleWeight
    • roleWeightType

      protected boolean[] roleWeightType
    • openRole

      protected String openRole
  • Constructor Details

    • EditWorkspaceRoleHandler

      public EditWorkspaceRoleHandler()
  • Method Details

    • getFormStepCount

      public int getFormStepCount()
      Description copied from class: JcmsFormHandler
      Retrieve the total number of steps used for edition when invoking this form handler.

      The default implementation of this method is to return 1, corresponding to one step (which means only 1 screen being displayed).

      You can provide a custom FormHandler to override this behavior.

      See jcore/doSteps.jspf for use of this method.

      Overrides:
      getFormStepCount in class JcmsFormHandler
      Returns:
      the total number of steps in this formhandler
    • getFormStepPrefixProp

      public String getFormStepPrefixProp()
      Overrides:
      getFormStepPrefixProp in class JcmsFormHandler
      Returns:
      the prefix prop for the steps
    • isFormStepClickable

      public boolean isFormStepClickable()
      Description copied from class: JcmsFormHandler
      Returns true if the form step are clickable.
      Overrides:
      isFormStepClickable in class JcmsFormHandler
      Returns:
      true if the form step are clickable.
    • getFormStepHiddenFields

      public String getFormStepHiddenFields()
      Overrides:
      getFormStepHiddenFields in class JcmsFormHandler
    • showFinishButton

      public boolean showFinishButton()
      Description copied from class: JcmsFormHandler
      Check if the "Finish" button should be displayed in step modal form.

      The default implementation of this method is to return true if the current step (as returned by JcmsFormHandler.getFormStep() is the last one (as compared with JcmsFormHandler.getFormStepCount().

      You can provide a custom FormHandler to override this behavior.

      See jcore/doStepButtons.jspf for use of this method.

      Overrides:
      showFinishButton in class JcmsFormHandler
      Returns:
      true to display the "Finish" button, false to hide it
    • showNextButton

      public boolean showNextButton()
      Description copied from class: JcmsFormHandler
      Check if the "Next" button should be displayed in step modal form.

      The default implementation of this method is to return true unless the finish button is being displayed by method JcmsFormHandler.showFinishButton().

      You can provide a custom FormHandler to override this behavior.

      See jcore/doStepButtons.jspf for use of this method.

      Overrides:
      showNextButton in class JcmsFormHandler
      Returns:
      true to display the "Next" button, false to hide it
    • isGroupStep

      public boolean isGroupStep()
    • isMemberStep

      public boolean isMemberStep()
    • processAction

      public boolean processAction() throws 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 AbstractEditWorkspaceHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • setRoleId

      public void setRoleId(String v)
    • getAvailableRoleId

      public String getAvailableRoleId()
    • setWfId

      public void setWfId(String v)
    • getAvailableWfId

      public String getAvailableWfId()
    • setRoleMembers

      public void setRoleMembers(String[] v)
    • getAvailableRoleMembers

      public Member[] getAvailableRoleMembers()
    • setRoleMembersAddCount

      public void setRoleMembersAddCount(int v)
    • getRoleMembersAddCount

      public int getRoleMembersAddCount()
    • getRoleMembersCount

      public int getRoleMembersCount()
    • getAvailableInvolvedAuthor

      public boolean getAvailableInvolvedAuthor()
    • setInvolvedAuthor

      public void setInvolvedAuthor(String involvedAuthor)
    • getAvailableInvolvedManager

      public boolean getAvailableInvolvedManager()
    • setInvolvedManager

      public void setInvolvedManager(String involvedManager)
    • setRoleGroups

      public void setRoleGroups(String[] v)
    • getAvailableRoleGroups

      public Group[] getAvailableRoleGroups()
    • setRoleGroupsAddCount

      public void setRoleGroupsAddCount(int v)
    • getRoleGroupsAddCount

      public int getRoleGroupsAddCount()
    • getRoleGroupsCount

      public int getRoleGroupsCount()
    • setRoleWeight

      public void setRoleWeight(String[] v)
    • getAvailableRoleWeight

      public int[] getAvailableRoleWeight()
    • setRoleWeightType

      public void setRoleWeightType(boolean[] v)
    • getAvailableRoleWeightType

      public boolean[] getAvailableRoleWeightType()
    • getWeightForGroup

      public int getWeightForGroup(int pos)
    • isPercentageForGroup

      public boolean isPercentageForGroup(int pos)
    • getAvailableOpenRole

      public String getAvailableOpenRole()
    • setOpenRole

      public void setOpenRole(String openRole)
    • getAvailableGroupMode

      public int getAvailableGroupMode()
    • setGroupMode

      public void setGroupMode(int groupMode)
    • getAvailableMemberMode

      public int getAvailableMemberMode()
    • setMemberMode

      public void setMemberMode(int memberMode)
    • validateNext

      protected boolean validateNext() throws IOException
      Overrides:
      validateNext in class JcmsFormHandler
      Throws:
      IOException
    • validateFinish

      protected boolean validateFinish() throws IOException
      Overrides:
      validateFinish in class JcmsFormHandler
      Throws:
      IOException
    • performFinish

      protected boolean performFinish() throws IOException
      Overrides:
      performFinish in class JcmsFormHandler
      Throws:
      IOException