Class WorkspaceCaddyHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class WorkspaceCaddyHandler extends AbstractCaddyHandler<WorkspaceCaddyContext>
  • Field Details

  • Constructor Details

    • WorkspaceCaddyHandler

      public WorkspaceCaddyHandler()
  • 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 AbstractCaddyHandler<WorkspaceCaddyContext>
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • getDataClass

      public Class<? extends Data> getDataClass()
      Description copied from class: AbstractCaddyHandler
      Retrieve the type of data being handled by this handler
      Specified by:
      getDataClass in class AbstractCaddyHandler<WorkspaceCaddyContext>
      Returns:
      a Data class
    • getNewCaddyContext

      protected WorkspaceCaddyContext getNewCaddyContext(Caddy caddy, Member member)
      Description copied from class: AbstractCaddyHandler
      Retrieve a new instance of CaddyContext.
      Specified by:
      getNewCaddyContext in class AbstractCaddyHandler<WorkspaceCaddyContext>
      Parameters:
      caddy - the current Caddy
      member - the logged Member
      Returns:
      a AbstractCaddyContext instance
    • getNewCaddyProcess

      protected WorkspaceCaddyProcess getNewCaddyProcess()
      Description copied from class: AbstractCaddyHandler
      Retrieve a new instance of CaddyProcess to start action when required.
      Specified by:
      getNewCaddyProcess in class AbstractCaddyHandler<WorkspaceCaddyContext>
      Returns:
      a AbstractCaddyProcess instance
    • getJsp

      protected String getJsp()
      Description copied from class: AbstractCaddyHandler
      Retrieve the path of the JSP.
      Specified by:
      getJsp in class AbstractCaddyHandler<WorkspaceCaddyContext>
      Returns:
      a path relative to the webapp root.
    • setOrder

      public void setOrder(String order)
    • setAdministratorsIds

      public void setAdministratorsIds(String[] mbrIds)
    • getAvailableAdministratorsSet

      public Set<Member> getAvailableAdministratorsSet()
    • setAdministratorsSetAddCount

      public void setAdministratorsSetAddCount(int v)
    • getAdministratorsSetCount

      public int getAdministratorsSetCount()
    • setNoCommonCategory

      public void setNoCommonCategory(boolean v)
    • getCategorySet

      public TreeSet<Category> getCategorySet()
      Returns:
      categories
    • setCids

      public void setCids(String[] cids)
      Set Category Set from cids
      Parameters:
      cids - ids of selected categories
    • setTypeMap

      public void setTypeMap(String[] g)
    • getAvailableTypeMap

      public HashMap<Class<?>,String> getAvailableTypeMap()
    • setMinClassificationLevel

      public void setMinClassificationLevel(int level)
      Set the new minimum classification level to use for the Workspace.
      Parameters:
      level - a value from 0 to ClassificationManager.getMaximumLevel() (included)
      Since:
      10.0.8 / JCMS-10746
      See Also:
    • getMinClassificationLevelSettings

      public EnumerateSettings getMinClassificationLevelSettings()
      Retrieve an EnumerateSettings suitable to edit the minimum classification level of workspaces in the caddy.
      Returns:
      an EnumerateSettings, never return null
      Since:
      10.0.8 / JCMS-10746