Class CategoryRight

    • Constructor Detail

      • CategoryRight

        public CategoryRight()
      • CategoryRight

        public CategoryRight​(java.util.HashSet<Category> roots,
                             int mode,
                             boolean publish,
                             boolean updateOther,
                             boolean deleteOther,
                             Member author,
                             DataExtension extension)
    • Method Detail

      • addRoots

        public void addRoots​(java.util.HashSet<Category> set)
        Add a set of root categories
        Parameters:
        set - a set of Category
        Since:
        jcms-3.0
      • isMemberOnly

        public boolean isMemberOnly()
        Returns:
        true if mode == MEMBER_ONLY
        Since:
        jcms-4.0
      • isGroupOnly

        public boolean isGroupOnly()
        Returns:
        true if mode == GROUP_ONLY
        Since:
        jcms-4.0
      • isGroupAndMember

        public boolean isGroupAndMember()
        Returns:
        true if mode == GROUP_MEMBER;
        Since:
        jcms-4.0
      • getRoots

        public java.util.HashSet<Category> getRoots()
        Retrieves the roots category referenced by this CategoryRight
        Returns:
        an HashSet of Category
      • setRoots

        public void setRoots​(java.util.HashSet<Category> rootCatSet)
        Sets the roots category of this CategoryRight
        Parameters:
        rootCatSet - an HashSet of Category
      • getMode

        public int getMode()
        Retrieve the right mode of this CategoryRight.
        Returns:
        an integer value from one of the third possible value, GROUP_AND_MEMBER, MEMBER_ONLY or GROUP_ONLY;
      • setMode

        public void setMode​(int mode)
        Set the right mode of this CategoryRight.
        Parameters:
        mode - an integer value from one of the third possible value, GROUP_AND_MEMBER, MEMBER_ONLY or GROUP_ONLY;
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DataRight
        Since:
        jcms-7.0.3