Class EditCatHandler

    • Field Detail

      • opDeepCopy

        protected boolean opDeepCopy
      • opCatUp

        protected boolean opCatUp
      • opCatDown

        protected boolean opCatDown
      • opAddItemReadRights

        protected boolean opAddItemReadRights
      • name

        protected java.lang.String name
      • nameML

        protected java.util.HashMap<java.lang.String,​java.lang.String> nameML
      • description

        protected java.lang.String description
      • descriptionML

        protected java.util.HashMap<java.lang.String,​java.lang.String> descriptionML
      • synonyms

        protected java.lang.String[] synonyms
      • selectable

        protected boolean selectable
      • childrenOrder

        protected int childrenOrder
      • childrenOrderProvided

        protected boolean childrenOrderProvided
      • icon

        protected java.lang.String icon
      • iconML

        protected java.util.HashMap<java.lang.String,​java.lang.String> iconML
      • image

        protected java.lang.String image
      • imageML

        protected java.util.HashMap<java.lang.String,​java.lang.String> imageML
      • color

        protected java.lang.String color
      • newTab

        protected boolean newTab
      • authorizedMemberSetAddCount

        protected int authorizedMemberSetAddCount
      • authorizedGroupsAddCount

        protected int authorizedGroupsAddCount
      • authorizedMemberSet

        protected java.util.TreeSet<Member> authorizedMemberSet
      • authorizedGroupSet

        protected java.util.TreeSet<Group> authorizedGroupSet
      • useMemberSet

        protected java.util.HashSet<Member> useMemberSet
      • useGroupSet

        protected java.util.HashSet<Group> useGroupSet
      • managerMemberSet

        protected java.util.HashSet<Member> managerMemberSet
      • managerGroupSet

        protected java.util.HashSet<Group> managerGroupSet
      • friendlyURLSet

        protected java.util.TreeSet<java.lang.String> friendlyURLSet
      • workspaceFilter

        protected boolean workspaceFilter
      • allWorkspaceFilter

        protected boolean allWorkspaceFilter
      • openTab

        protected int openTab
      • workingCat

        protected Category workingCat
      • parentHasChanged

        protected boolean parentHasChanged
      • fieldStatusMap

        protected java.util.Map<java.lang.String,​FieldStatus> fieldStatusMap
    • Constructor Detail

      • EditCatHandler

        public EditCatHandler()
    • Method Detail

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

        protected boolean processStatus​(ControllerStatus status)
                                 throws java.io.IOException
        Description copied from class: JcmsFormHandler
        Process the ControllerStatus: do nothing if OK, or send on forbidden, or put a warning message in the request.
        Overrides:
        processStatus in class JcmsFormHandler
        Parameters:
        status - the ControllerStatus to be processed
        Returns:
        true when status is OK, false if status was a failure (forbidden or anything else)
        Throws:
        java.io.IOException - if an error occurs
      • sendRedirect

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

        protected boolean validateCreate()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • performCreate

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

        protected boolean validateUpdate()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • performUpdate

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

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

        protected boolean performDelete()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • validateDeepCopy

        protected boolean validateDeepCopy()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • performDeepCopy

        protected boolean performDeepCopy()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • performCancel

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

        protected boolean validateCatUp()
      • performCatUp

        protected boolean performCatUp()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • validateCatDown

        protected boolean validateCatDown()
      • performCatDown

        protected boolean performCatDown()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • validateAddItemReadRights

        public boolean validateAddItemReadRights()
      • performAddItemReadRights

        public boolean performAddItemReadRights()
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getAvailableName

        public java.lang.String getAvailableName()
      • getAvailableNameML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAvailableNameML()
      • getAllAvailableNameML

        public java.util.HashMap getAllAvailableNameML()
      • getAvailableName

        public java.lang.String getAvailableName​(java.lang.String lang)
      • getAvailableDescription

        public java.lang.String getAvailableDescription()
      • getAllAvailableDescriptionML

        public java.util.HashMap getAllAvailableDescriptionML()
      • getAvailableDescriptionML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAvailableDescriptionML()
      • getAvailableDescription

        public java.lang.String getAvailableDescription​(java.lang.String lang)
      • getAvailableSynonyms

        public java.lang.String[] getAvailableSynonyms()
      • getAvailableSelectable

        public boolean getAvailableSelectable()
      • getAvailableChildrenOrder

        public int getAvailableChildrenOrder()
      • getAvailableIcon

        public java.lang.String getAvailableIcon()
      • getAvailableIconML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAvailableIconML()
      • getAllAvailableIconML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAllAvailableIconML()
      • getAvailableImage

        public java.lang.String getAvailableImage()
      • getAvailableImageML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAvailableImageML()
      • getAllAvailableImageML

        public java.util.HashMap<java.lang.String,​java.lang.String> getAllAvailableImageML()
      • getAvailableColor

        public java.lang.String getAvailableColor()
      • getAvailableNewTab

        public boolean getAvailableNewTab()
      • getAvailableParent

        public Category getAvailableParent()
      • setOpenTab

        public void setOpenTab​(int openTab)
        Parameters:
        openTab - the tab index to open in the GUI
        Since:
        jcms-4.1
      • getOpenTab

        public int getOpenTab()
        Returns:
        the tab index to open in the GUI
        Since:
        jcms-4.1
      • isTabForced

        public boolean isTabForced()
        Returns:
        true if the tab to be opened has been set using setOpenTab
        Since:
        jcms-4.1
      • getRootCategories

        public java.util.Set<Category> getRootCategories()
      • getCategory

        public Category getCategory()
      • setOpCatUp

        public void setOpCatUp​(java.lang.String v)
      • setOpCatDown

        public void setOpCatDown​(java.lang.String v)
      • setOpDeepCopy

        public void setOpDeepCopy​(java.lang.String v)
      • setOpAddItemReadRights

        public void setOpAddItemReadRights​(java.lang.String v)
      • setPid

        public void setPid​(java.lang.String pid)
      • setName

        public void setName​(java.lang.String[] v)
      • setDescription

        public void setDescription​(java.lang.String[] v)
      • setSynonymList

        public void setSynonymList​(java.lang.String v)
      • setSelectable

        public void setSelectable​(boolean v)
      • setChildrenOrder

        public void setChildrenOrder​(int v)
      • setIcon

        public void setIcon​(java.lang.String[] v)
      • setImage

        public void setImage​(java.lang.String[] v)
      • setColor

        public void setColor​(java.lang.String v)
      • setNewTab

        public void setNewTab​(java.lang.String v)
      • isWorkspaceFilter

        public boolean isWorkspaceFilter()
      • setWorkspaceFilter

        public void setWorkspaceFilter​(boolean workspaceFilter)
      • isAllWorkspaceFilter

        public boolean isAllWorkspaceFilter()
      • setAllWorkspaceFilter

        public void setAllWorkspaceFilter​(boolean allWorkspaceFilter)
      • setAuthorizedMemberSetAddCount

        public void setAuthorizedMemberSetAddCount​(int v)
        The Member Set AddCount
        Parameters:
        v - the add count
        Since:
        jcms-4.1
      • getAuthorizedMemberSetCount

        public int getAuthorizedMemberSetCount()
        Returns:
        The Member Set AddCount
        Since:
        jcms-4.1
      • getAuthorizedGroupsCount

        public int getAuthorizedGroupsCount()
        Returns:
        The Group Set AddCount
        Since:
        jcms-4.1
      • setAuthorizedMemberIds

        public void setAuthorizedMemberIds​(java.lang.String[] v)
        Set the Authorized Members Ids
        Parameters:
        v - the authorized member ids
        Since:
        jcms-4.1
      • setAuthorizedGroupIds

        public void setAuthorizedGroupIds​(java.lang.String[] v)
        Set the Authorized Groups Ids
        Parameters:
        v - the authorized group ids
        Since:
        jcms-4.1
      • getAvailableAuthorizedMemberSet

        public java.util.Set<Member> getAvailableAuthorizedMemberSet()
        Returns:
        the Authorized Member Set
        Since:
        jcms-4.1
      • getAvailableAuthorizedGroupSet

        public java.util.Set<Group> getAvailableAuthorizedGroupSet()
        Returns:
        the Authorized Group Set
        Since:
        jcms-4.1
      • getDefaultAuthorizedMemberSet

        public java.util.Set<Member> getDefaultAuthorizedMemberSet()
        This method should be overriden by sub-classes
        Returns:
        a set of Member or null
        Since:
        jcms-4.1
      • getDefaultAuthorizedGroupSet

        public java.util.Set<Group> getDefaultAuthorizedGroupSet()
        This method should be overriden by sub-classes
        Returns:
        a set of Group or null
        Since:
        jcms-4.1
      • setUseMemberIds

        public void setUseMemberIds​(java.lang.String[] v)
        Set the Members' ids authorized to use this category
        Parameters:
        v - some members ids
        Since:
        jcms-10.0.6 / JCMS-8769
      • setUseGroupIds

        public void setUseGroupIds​(java.lang.String[] v)
        Set the ids of Groups's authorized to use this category
        Parameters:
        v - some groups ids
        Since:
        jcms-10.0.6 / JCMS-8769
      • getAvailableUseMemberSet

        public java.util.Set<Member> getAvailableUseMemberSet()
        Returns:
        the Set of Member authorized to use this category
        Since:
        jcms-10.0.6
      • getAvailableUseGroupSet

        public java.util.Set<Group> getAvailableUseGroupSet()
        Returns:
        the Set of Group authorized to use this category
        Since:
        jcms-10.0.6
      • setManagerMemberIds

        public void setManagerMemberIds​(java.lang.String[] v)
        Set the Manager Members Ids
        Parameters:
        v - the authorized member ids
        Since:
        jcms-10.0.5
      • setManagerGroupIds

        public void setManagerGroupIds​(java.lang.String[] v)
        Set the Authorized Groups Ids
        Parameters:
        v - the authorized group ids
        Since:
        jcms-10.0.5
      • getAvailableManagerMemberSet

        public java.util.Set<Member> getAvailableManagerMemberSet()
        Returns:
        the Authorized Member Set
        Since:
        jcms-10.0.5
      • getAvailableManagerGroupSet

        public java.util.Set<Group> getAvailableManagerGroupSet()
        Returns:
        the Authorized Group Set
        Since:
        jcms-10.0.5
      • setFriendlyURL

        public void setFriendlyURL​(java.lang.String[] v)
        Set the friendly urls.
        Parameters:
        v - the friendly url values to use
        Since:
        jcms-5.5.0
      • getAvailableFriendlyURLSet

        public java.util.TreeSet<java.lang.String> getAvailableFriendlyURLSet()
        Returns:
        the friendly urls HashMap (including the default language)
      • getFieldStatus

        public FieldStatus getFieldStatus​(java.lang.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
      • getWorkingCat

        public Category getWorkingCat()