Class EditWorkspaceCommonHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

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

    • administrators

      protected Member[] administrators
    • administratorsAddCount

      protected int administratorsAddCount
    • catSet

      protected HashSet catSet
    • tagRoot

      protected Category tagRoot
    • order

      protected int order
    • model

      protected boolean model
    • closed

      protected boolean closed
    • title

      protected String title
    • titleML

      protected HashMap titleML
    • parent

      protected Workspace parent
    • defaultGroup

      protected Group defaultGroup
    • mainPortal

      protected PortalInterface mainPortal
    • incomingMailEnabled

      protected boolean incomingMailEnabled
    • incomingMailLocalPart

      protected String incomingMailLocalPart
    • classificationLevel

      protected int classificationLevel
    • minClassificationLevel

      protected int minClassificationLevel
  • Constructor Details

    • EditWorkspaceCommonHandler

      public EditWorkspaceCommonHandler()
  • Method Details

    • 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
    • setFields

      public void setFields(Workspace ws)
      Overrides:
      setFields in class AbstractEditWorkspaceHandler
    • setAdministrators

      public void setAdministrators(String[] v)
    • getAvailableAdministrators

      public Member[] getAvailableAdministrators()
    • setAdministratorsAddCount

      public void setAdministratorsAddCount(int v)
    • getAdministratorsCount

      public int getAdministratorsCount()
    • getAvailableCatSet

      public Set getAvailableCatSet()
    • setCatSet

      public void setCatSet(String[] v)
    • getAvailableTagRoot

      public Category getAvailableTagRoot()
    • setTagRoot

      public void setTagRoot(String v)
    • getAvailableOrder

      public int getAvailableOrder()
      Get the value of order.
      Returns:
      Value of order.
    • setOrder

      public void setOrder(int v)
      Set the value of order.
      Parameters:
      v - Value to assign to order.
    • getAvailableModel

      public boolean getAvailableModel()
      Get the value of model.
      Returns:
      Value of model.
    • setModel

      public void setModel(boolean v)
      Set the value of model.
      Parameters:
      v - Value to assign to model.
    • getAvailableClosed

      public boolean getAvailableClosed()
      Get the value of closed.
      Returns:
      Value of closed.
    • setClosed

      public void setClosed(boolean v)
      Set the value of closed.
      Parameters:
      v - Value to assign to closed.
    • getAvailableTitle

      public String getAvailableTitle()
    • getAvailableTitle

      public String getAvailableTitle(String lang)
    • setTitle

      public void setTitle(String[] v)
    • getAvailableTitleML

      public HashMap<String,String> getAvailableTitleML()
    • setLanguage

      public void setLanguage(String[] v)
    • getAvailableLanguage

      public String getAvailableLanguage()
    • getAvailableDefaultLanguage

      public String getAvailableDefaultLanguage()
    • isCurrentAndParentAdministrator

      public boolean isCurrentAndParentAdministrator()
    • getAvailableParent

      public Workspace getAvailableParent()
    • setParent

      public void setParent(String parentid)
    • getAvailableDefaultGroup

      public Group getAvailableDefaultGroup()
    • setDefaultGroup

      public void setDefaultGroup(String v)
    • getAvailableMainPortal

      public PortalInterface getAvailableMainPortal()
    • setMainPortal

      public void setMainPortal(String v)
    • setIncomingMailEnabled

      public void setIncomingMailEnabled(boolean enable)
      Set the value of incoming mail.
      Parameters:
      enable - Value to assign to incoming mail.
      Since:
      jcms-9.0.0
    • getAvailableIncomingMailEnabled

      public boolean getAvailableIncomingMailEnabled()
      Get the value of incoming mail.
      Returns:
      Value of incoming mail.
      Since:
      jcms-9.0.0
    • setIncomingMailLocalPart

      public void setIncomingMailLocalPart(String v)
    • getAvailableIncomingMailLocalPart

      public String getAvailableIncomingMailLocalPart()
    • getAvailableClassificationLevel

      public int getAvailableClassificationLevel()
      Retrieve the classification level current available for the edition in progress
      Returns:
      a classification level
      Since:
      10.0.8 / JCMS-10746
    • setClassificationLevel

      public void setClassificationLevel(int level)
      Set the classification level to assign to the edited workspace
      Parameters:
      level - a value from 0 for unclassified workspace to ClassificationManager.getMaximumLevel() (included) for highly classified workspace. 0 if used if null is specified.
      Since:
      10.0.8 / JCMS-10746
    • getClassificationLevelSettings

      public EnumerateSettings getClassificationLevelSettings()
      Retrieve a settings suitable to edit a classification level in the current context.
      Returns:
      a new EnumerateSettings instance
      Since:
      10.0.8 / JCMS-10746
    • showClassification

      public boolean showClassification()
      Check if the classification level field should be displayed
      Returns:
      true to display field, false otherwise
      Since:
      10.0.8 / JCMS-10746
    • getAvailableMinClassificationLevel

      public int getAvailableMinClassificationLevel()
      Retrieve the minimum classification level current available for the edition in progress
      Returns:
      a classification level
      Since:
      10.0.8 / JCMS-10746
    • setMinClassificationLevel

      public void setMinClassificationLevel(int level)
      Set the minimum classification level to assign to the edited workspace
      Parameters:
      level - a value from 0 to ClassificationManager.getMaximumLevel()
      Since:
      10.0.8 / JCMS-10746