Class WorkspaceWizardHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class WorkspaceWizardHandler extends JcmsFormHandler
This form handler process Workspace duplication through a wizard.
Author:
Jean-Philippe Encausse
See Also:
  • Field Details

    • op

      protected boolean op
    • opCreate

      protected boolean opCreate
    • opCancel

      protected boolean opCancel
    • opRefresh

      protected boolean opRefresh
    • typeSet

      public Set<Class<?>> typeSet
    • groupList

      protected List<Group> groupList
    • portalList

      protected List<Publication> portalList
    • catList

      protected List<Category> catList
    • title

      protected String title
    • titleML

      protected HashMap<String,String> titleML
    • administrator

      protected Member administrator
    • prefix

      protected String prefix
    • id

      protected String id
  • Constructor Details

    • WorkspaceWizardHandler

      public WorkspaceWizardHandler()
  • 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 JcmsFormHandler
      Returns:
      false if no redirection is needed, true otherwise
      Throws:
      IOException - IO Exception
    • validateMember

      protected boolean validateMember()
      Returns:
      true if loggedMember has Workspace creation rights given the context.
      Since:
      jcms-9.0
    • validateCreate

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

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

      public boolean validateCancel()
    • performCancel

      public boolean performCancel() throws IOException
      Throws:
      IOException
    • validateRefresh

      public boolean validateRefresh()
    • performRefresh

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

      public void setTypes(String[] clazz) throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • getAvailableTypes

      public Collection<Class<?>> getAvailableTypes()
    • setGroups

      public void setGroups(String[] groups)
    • getAvailableGroups

      public Collection<Group> getAvailableGroups()
    • setPortals

      public void setPortals(String[] portals)
    • getAvailablePortals

      public Collection<Publication> getAvailablePortals() throws ClassNotFoundException
      Throws:
      ClassNotFoundException
    • setCidsNames

      public void setCidsNames(String[] cids)
    • getAvailableCidsNames

      public Collection<Category> getAvailableCidsNames()
    • setTitle

      public void setTitle(String[] v)
    • getAvailableTitle

      public String getAvailableTitle()
    • getAvailableTitle

      public String getAvailableTitle(String lang)
    • getAvailableTitleML

      public Map<String,String> getAvailableTitleML()
    • getAllAvailableTitleML

      public Map<String,String> getAllAvailableTitleML()
    • setAdministrator

      public void setAdministrator(String v)
    • getAvailableAdministrator

      public Member getAvailableAdministrator()
    • setPrefix

      public void setPrefix(String prefix)
    • getAvailablePrefix

      public String getAvailablePrefix()
    • getAvailableId

      public String getAvailableId()
    • setId

      public void setId(String v)
    • getWorkspaceWizardContext

      public WorkspaceWizardContext getWorkspaceWizardContext()
      Returns:
      the workspaceWizardContext result of the Workspace duplication.

      May be null if duplication failed.

      Since:
      jcms-9.0
    • getRedirect

      public String getRedirect()
      Redirects to the Workspace List.
      Overrides:
      getRedirect in class JcmsFormHandler
      Returns:
      Value of redirect.
      Since:
      jcms-9.0
      See Also:
    • setOpCreate

      public void setOpCreate(String v)
    • setOpCancel

      public void setOpCancel(String v)
    • setOpRefresh

      public void setOpRefresh(String v)