Class EditCatHandler

All Implemented Interfaces:
JcmsConstants, JaliosConstants

public class EditCatHandler extends EditDataHandler
This form handler processes editCategory.jsp forms.
  • Field Details

    • EXTRADATA_ALREADY_PRINTED_SET_ATTR

      protected static final String EXTRADATA_ALREADY_PRINTED_SET_ATTR
      See Also:
    • EXTRADBDATA_ALREADY_PRINTED_SET_ATTR

      protected static final String EXTRADBDATA_ALREADY_PRINTED_SET_ATTR
      See Also:
    • STEP_PREFIX

      public static final String STEP_PREFIX
      See Also:
    • opDeepCopy

      protected boolean opDeepCopy
    • opReorder

      protected boolean opReorder
    • name

      protected String name
    • nameML

      protected HashMap<String,String> nameML
    • description

      protected String description
    • descriptionML

      protected HashMap<String,String> descriptionML
    • synonyms

      protected String[] synonyms
    • selectable

      protected boolean selectable
    • childrenOrder

      protected int childrenOrder
    • childrenOrderProvided

      protected boolean childrenOrderProvided
    • icon

      protected String icon
    • iconML

      protected HashMap<String,String> iconML
    • image

      protected String image
    • imageML

      protected HashMap<String,String> imageML
    • color

      protected String color
    • newTab

      protected boolean newTab
    • authorizedMemberSetAddCount

      protected int authorizedMemberSetAddCount
    • authorizedGroupsAddCount

      protected int authorizedGroupsAddCount
    • authorizedMemberSet

      protected TreeSet<Member> authorizedMemberSet
    • authorizedGroupSet

      protected TreeSet<Group> authorizedGroupSet
    • useMemberSet

      protected HashSet<Member> useMemberSet
    • useGroupSet

      protected HashSet<Group> useGroupSet
    • managerMemberSet

      protected HashSet<Member> managerMemberSet
    • managerGroupSet

      protected HashSet<Group> managerGroupSet
    • friendlyURLSet

      protected TreeSet<String> friendlyURLSet
    • parent

      protected Category parent
    • newOrder

      protected int newOrder
    • category

      protected Category category
    • workingCat

      protected Category workingCat
    • parentHasChanged

      protected boolean parentHasChanged
    • ctxMenuEdition

      protected boolean ctxMenuEdition
    • fieldStatusMap

      protected Map<String,FieldStatus> fieldStatusMap
  • Constructor Details

    • EditCatHandler

      public EditCatHandler()
  • Method Details

    • init

      protected void init()
      Description copied from class: JcmsFormHandler
      Method to implement if you need to initialize your handler from parameter received, prior to all security validation.

      You must absolutely not perform any action which modify data or site configuration.

      Therefore it is strongly recommend NOT TO implement this method, or use very wisely.

      Overrides:
      init in class JcmsFormHandler
    • 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
    • isExpanded

      public boolean isExpanded(Category cat)
      Parameters:
      cat - the category to check
      Returns:
      true if the given category must be expanded
      Since:
      jcms-3.0
    • getDataClass

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

      protected void sendRedirect() throws IOException
      Overrides:
      sendRedirect in class EditDataHandler
      Throws:
      IOException
    • validateCreate

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

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

      protected boolean validateUpdate() throws IOException
      Throws:
      IOException
    • performUpdate

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

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

      protected boolean performDelete() throws IOException
      Throws:
      IOException
    • validateDeepCopy

      protected boolean validateDeepCopy() throws IOException
      Throws:
      IOException
    • performDeepCopy

      protected boolean performDeepCopy() throws IOException
      Throws:
      IOException
    • validateReorder

      protected boolean validateReorder()
    • performReorder

      protected boolean performReorder() throws IOException
      Throws:
      IOException
    • getFormStepCount

      public int getFormStepCount()
      Description copied from class: JcmsFormHandler
      Retrieve the total number of steps used for edition when invoking this form handler.

      The default implementation of this method is to return 1, corresponding to one step (which means only 1 screen being displayed).

      You can provide a custom FormHandler to override this behavior.

      See jcore/doSteps.jspf for use of this method.

      Overrides:
      getFormStepCount in class JcmsFormHandler
      Returns:
      the total number of steps in this formhandler
    • getFormStepPrefixProp

      public String getFormStepPrefixProp()
      Overrides:
      getFormStepPrefixProp in class JcmsFormHandler
      Returns:
      the prefix prop for the steps
    • getFormStepHiddenFields

      public String getFormStepHiddenFields()
      Overrides:
      getFormStepHiddenFields in class JcmsFormHandler
    • isFormStepClickable

      public boolean isFormStepClickable()
      Description copied from class: JcmsFormHandler
      Returns true if the form step are clickable.
      Overrides:
      isFormStepClickable in class JcmsFormHandler
      Returns:
      true if the form step are clickable.
    • showFinishButton

      public boolean showFinishButton()
      Description copied from class: JcmsFormHandler
      Check if the "Finish" button should be displayed in step modal form.

      The default implementation of this method is to return true if the current step (as returned by JcmsFormHandler.getFormStep() is the last one (as compared with JcmsFormHandler.getFormStepCount().

      You can provide a custom FormHandler to override this behavior.

      See jcore/doStepButtons.jspf for use of this method.

      Overrides:
      showFinishButton in class JcmsFormHandler
      Returns:
      true to display the "Finish" button, false to hide it
    • showNextButton

      public boolean showNextButton()
      Description copied from class: JcmsFormHandler
      Check if the "Next" button should be displayed in step modal form.

      The default implementation of this method is to return true unless the finish button is being displayed by method JcmsFormHandler.showFinishButton().

      You can provide a custom FormHandler to override this behavior.

      See jcore/doStepButtons.jspf for use of this method.

      Overrides:
      showNextButton in class JcmsFormHandler
      Returns:
      true to display the "Next" button, false to hide it
    • validateNext

      protected boolean validateNext() throws IOException
      Overrides:
      validateNext in class JcmsFormHandler
      Throws:
      IOException
    • validateFinish

      protected boolean validateFinish() throws IOException
      Overrides:
      validateFinish in class JcmsFormHandler
      Throws:
      IOException
    • getModalTitle

      public String getModalTitle()
    • isInfoStep

      public boolean isInfoStep()
    • isPresentationStep

      public boolean isPresentationStep()
    • isRightsStep

      public boolean isRightsStep()
    • isFriendlyURLStep

      public boolean isFriendlyURLStep()
    • isAdvancedStep

      public boolean isAdvancedStep()
    • getNameSettings

      public ControlSettings getNameSettings()
    • getDescriptionSettings

      public ControlSettings getDescriptionSettings()
    • getSynonymsSettings

      public ControlSettings getSynonymsSettings()
    • getColorSettings

      public ControlSettings getColorSettings()
    • getIconSettings

      public ControlSettings getIconSettings()
    • getImageSettings

      public ControlSettings getImageSettings()
    • getAuthorizedGroupSetSettings

      public ControlSettings getAuthorizedGroupSetSettings()
    • getAuthorizedMemberSetSettings

      public ControlSettings getAuthorizedMemberSetSettings()
    • getUseGroupSetSettings

      public ControlSettings getUseGroupSetSettings()
    • getUseMemberSetSettings

      public ControlSettings getUseMemberSetSettings()
    • getManagerGroupSetSettings

      public ControlSettings getManagerGroupSetSettings()
    • getManagerMemberSetSettings

      public ControlSettings getManagerMemberSetSettings()
    • getNewTabSettings

      public ControlSettings getNewTabSettings()
    • getSelectableSettings

      public ControlSettings getSelectableSettings()
    • getChildrenOrderSettings

      public ControlSettings getChildrenOrderSettings()
    • getParentSettings

      public ControlSettings getParentSettings()
    • getFieldStatus

      public FieldStatus getFieldStatus(String fieldName)
      Returns the FieldStatus for the given field.
      Parameters:
      fieldName - the name of the field
      Returns:
      the FieldStatus for the given field (never null).
      Since:
      jcms-10.0.5
    • getRootCategories

      public Set<Category> getRootCategories()
    • getCategory

      public Category getCategory()
    • setOpDeepCopy

      public void setOpDeepCopy(String v)
    • setOpReorder

      public void setOpReorder(String v)
    • setId

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

      public void setPid(String pid)
    • getAvailableParent

      public Category getAvailableParent()
    • setNewOrder

      public void setNewOrder(String v)
    • setName

      public void setName(String[] v)
    • getAvailableName

      public String getAvailableName()
    • getAvailableNameML

      public HashMap<String,String> getAvailableNameML()
    • getAllAvailableNameML

      public HashMap getAllAvailableNameML()
    • getAvailableName

      public String getAvailableName(String lang)
    • setDescription

      public void setDescription(String[] v)
    • getAvailableDescription

      public String getAvailableDescription()
    • getAllAvailableDescriptionML

      public HashMap getAllAvailableDescriptionML()
    • getAvailableDescriptionML

      public HashMap<String,String> getAvailableDescriptionML()
    • getAvailableDescription

      public String getAvailableDescription(String lang)
    • setSynonyms

      public void setSynonyms(String v)
    • getAvailableSynonyms

      public String[] getAvailableSynonyms()
    • setSelectable

      public void setSelectable(boolean v)
    • getAvailableSelectable

      public boolean getAvailableSelectable()
    • setChildrenOrder

      public void setChildrenOrder(int v)
    • getAvailableChildrenOrder

      public int getAvailableChildrenOrder()
    • setIcon

      public void setIcon(String[] v)
    • getAvailableIcon

      public String getAvailableIcon()
    • getAvailableIconML

      public HashMap<String,String> getAvailableIconML()
    • getAllAvailableIconML

      public HashMap<String,String> getAllAvailableIconML()
    • setImage

      public void setImage(String[] v)
    • getAvailableImage

      public String getAvailableImage()
    • getAvailableImageML

      public HashMap<String,String> getAvailableImageML()
    • getAllAvailableImageML

      public HashMap<String,String> getAllAvailableImageML()
    • setColor

      public void setColor(String v)
    • getAvailableColor

      public String getAvailableColor()
    • setNewTab

      public void setNewTab(String v)
    • getAvailableNewTab

      public boolean getAvailableNewTab()
    • setAuthorizedMemberSetAddCount

      public void setAuthorizedMemberSetAddCount(int v)
    • getAuthorizedMemberSetCount

      public int getAuthorizedMemberSetCount()
    • getAuthorizedGroupsCount

      public int getAuthorizedGroupsCount()
    • setAuthorizedMemberIds

      public void setAuthorizedMemberIds(String[] v)
    • setAuthorizedGroupIds

      public void setAuthorizedGroupIds(String[] v)
    • getAvailableAuthorizedMemberSet

      public Set<Member> getAvailableAuthorizedMemberSet()
    • getAvailableAuthorizedGroupSet

      public Set<Group> getAvailableAuthorizedGroupSet()
    • getDefaultAuthorizedMemberSet

      public Set<Member> getDefaultAuthorizedMemberSet()
    • getDefaultAuthorizedGroupSet

      public Set<Group> getDefaultAuthorizedGroupSet()
    • setUseMemberIds

      public void setUseMemberIds(String[] v)
    • setUseGroupIds

      public void setUseGroupIds(String[] v)
    • getAvailableUseMemberSet

      public Set<Member> getAvailableUseMemberSet()
    • getAvailableUseGroupSet

      public Set<Group> getAvailableUseGroupSet()
    • setManagerMemberIds

      public void setManagerMemberIds(String[] v)
    • setManagerGroupIds

      public void setManagerGroupIds(String[] v)
    • getAvailableManagerMemberSet

      public Set<Member> getAvailableManagerMemberSet()
    • getAvailableManagerGroupSet

      public Set<Group> getAvailableManagerGroupSet()
    • setFriendlyURL

      public void setFriendlyURL(String[] v)
    • getAvailableFriendlyURLSet

      public TreeSet<String> getAvailableFriendlyURLSet()
      Returns:
      the friendly urls HashMap (including the default language)
    • getWorkingCat

      public Category getWorkingCat()
    • addExtraDataKey

      public void addExtraDataKey(String key)
    • addExtraDataDBKey

      public void addExtraDataDBKey(String key)
    • isCtxMenuEdition

      public boolean isCtxMenuEdition()
    • setCtxMenuEdition

      public void setCtxMenuEdition(boolean ctxMenuEdition)