Class AbstractEditWorkspaceHandler

    • Field Detail

      • openTab

        protected int openTab
      • quotaValue

        protected java.lang.String quotaValue
      • quotaUnit

        protected java.lang.String quotaUnit
      • isAlertThresholdValidated

        protected boolean isAlertThresholdValidated
      • alertThreshold

        protected int alertThreshold
      • useDefaultQuota

        protected boolean useDefaultQuota
    • Constructor Detail

      • AbstractEditWorkspaceHandler

        public AbstractEditWorkspaceHandler()
    • Method Detail

      • setFields

        public void setFields​(Workspace ws)
      • sendRedirect

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

        protected java.util.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 java.io.IOException
        Throws:
        java.io.IOException
      • performCreate

        public boolean performCreate()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • validateUpdate

        public boolean validateUpdate()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • validatePercentValues

        public boolean validatePercentValues​(int value,
                                             java.lang.String name)
      • performUpdate

        public boolean performUpdate()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • validateDelete

        public boolean validateDelete()
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • performDelete

        public boolean performDelete()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • performRefresh

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

        public void setOpenTab​(int openTab)
      • getOpenTab

        public int getOpenTab()
      • isTabForced

        public boolean isTabForced()
      • getAvailableId

        public java.lang.String getAvailableId()
      • getAvailableQuotaValue

        public java.lang.String getAvailableQuotaValue()
      • setQuotaValue

        public void setQuotaValue​(java.lang.String quotaValue)
      • getAvailableQuotaUnit

        public java.lang.String getAvailableQuotaUnit()
      • setQuotaUnit

        public void setQuotaUnit​(java.lang.String quotaUnit)
      • getAvailableAlertThreshold

        public int getAvailableAlertThreshold()
      • setAlertThreshold

        public void setAlertThreshold​(java.lang.String alertThreshold)
      • getAvailableUseDefaultQuota

        public boolean getAvailableUseDefaultQuota()
      • setUseDefaultQuota

        public void setUseDefaultQuota​(boolean useDefaultQuota)