Class AbstractEditWorkspaceHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants
Direct Known Subclasses:
EditWorkspaceCommonHandler, EditWorkspaceHandler, EditWorkspaceRoleHandler, EditWorkspaceTypeHandler

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

    • PREVIOUS_TAB

      public static final int PREVIOUS_TAB
      See Also:
    • GENERAL_TAB

      public static final int GENERAL_TAB
      See Also:
    • openTab

      protected int openTab
    • workingWS

      protected Workspace workingWS
    • quotaValue

      protected String quotaValue
    • quotaUnit

      protected String quotaUnit
    • isAlertThresholdValidated

      protected boolean isAlertThresholdValidated
    • alertThreshold

      protected int alertThreshold
    • useDefaultQuota

      protected boolean useDefaultQuota
  • Constructor Details

    • AbstractEditWorkspaceHandler

      public AbstractEditWorkspaceHandler()
  • Method Details

    • getDataClass

      public Class getDataClass()
      Specified by:
      getDataClass in class EditDataHandler
    • setFields

      public void setFields(Workspace ws)
    • sendRedirect

      protected void sendRedirect() throws IOException
      Overrides:
      sendRedirect in class EditDataHandler
      Throws:
      IOException
    • 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 EditDataHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getControllerContext

      protected HashMap getControllerContext()
      Description copied from class: JcmsFormHandler
      Build a controller context. I.E. add request, response and loggedMember.
      Overrides:
      getControllerContext in class EditDataHandler
      Returns:
      the HashMap which contains the context
    • getWorkspace

      public Workspace getWorkspace()
      Override super implementation to allow workspace to be null.
      Overrides:
      getWorkspace in class JcmsFormHandler
      Returns:
      workspace the editable workspace
    • validateCreate

      public boolean validateCreate() throws IOException
      Throws:
      IOException
    • performCreate

      public boolean performCreate() throws IOException
      Throws:
      IOException
    • validateUpdate

      public boolean validateUpdate() throws IOException
      Throws:
      IOException
    • validatePercentValues

      public boolean validatePercentValues(int value, String name)
    • performUpdate

      public boolean performUpdate() throws IOException
      Throws:
      IOException
    • validateDelete

      public boolean validateDelete() throws IOException
      Throws:
      IOException
    • performDelete

      public boolean performDelete() throws IOException
      Throws:
      IOException
    • performRefresh

      public boolean performRefresh() throws IOException
      Overrides:
      performRefresh in class EditDataHandler
      Throws:
      IOException
    • setOpenTab

      public void setOpenTab(int openTab)
    • getOpenTab

      public int getOpenTab()
    • isTabForced

      public boolean isTabForced()
    • getAvailableId

      public String getAvailableId()
    • setId

      public void setId(String id)
      Overrides:
      setId in class EditDataHandler
    • getAvailableQuotaValue

      public String getAvailableQuotaValue()
    • setQuotaValue

      public void setQuotaValue(String quotaValue)
    • getAvailableQuotaUnit

      public String getAvailableQuotaUnit()
    • setQuotaUnit

      public void setQuotaUnit(String quotaUnit)
    • getAvailableAlertThreshold

      public int getAvailableAlertThreshold()
    • setAlertThreshold

      public void setAlertThreshold(String alertThreshold)
    • getAvailableUseDefaultQuota

      public boolean getAvailableUseDefaultQuota()
    • setUseDefaultQuota

      public void setUseDefaultQuota(boolean useDefaultQuota)