Class CategoryIndexManager

    • Method Detail

      • getChildrenSet

        public java.util.Set<Category> getChildrenSet​(Category cat)
        Returns the children set associated to the given Category.
        Parameters:
        cat - the Category
        Returns:
        the children set associated to the given Category.
        Since:
        jcms-6.0.0
      • setChildrenSet

        public void setChildrenSet​(Category cat,
                                   java.util.Set<Category> set)
        Set the children set associated to the given Category.
        Parameters:
        cat - Category for which children set is defined
        set - the set
        Since:
        jcms-6.0.0
      • clearChildrenSet

        public void clearChildrenSet​(Category cat)
        Clears the children set associated to the given Category.
        Parameters:
        cat - the Category
        Since:
        jcms-6.0.0
      • addChild

        public boolean addChild​(Category cat,
                                Category child)
        Adds the given child to the given Category.
        Parameters:
        cat - Category with which this child must be added.
        child - the child category
        Returns:
        true if this set did not already contain the specified element.
        Since:
        jcms-6.0.0
      • removeChild

        public boolean removeChild​(Category cat,
                                   Category child)
        Removes the given child for the given Category.
        Parameters:
        cat - Category with which this content must be removed.
        child - child category to be removed from this set, if present.
        Returns:
        true if the set contained the specified element.
        Since:
        jcms-6.0.0
      • getPublicationSet

        public java.util.Set<Publication> getPublicationSet​(Category cat)
        Returns the publication set associated to the given category.
        Parameters:
        cat - the category
        Returns:
        the publication set associated to the given category.
        Since:
        jcms-6.0.0
      • addPublication

        public boolean addPublication​(Category cat,
                                      Publication pub)
        Adds the given publication to the publication set of the given category.
        Parameters:
        cat - category with which this publication must be added.
        pub - publication to be added to this set.
        Returns:
        true if this set did not already contain the specified element.
        Since:
        jcms-6.0.0
      • removePublication

        public boolean removePublication​(Category cat,
                                         Publication pub)
        Removes the given publication for the given category.
        Parameters:
        cat - category with which this publication must be removed.
        pub - publication to be removed from this set, if present.
        Returns:
        true if the set contained the specified element.
        Since:
        jcms-6.0.0
      • getAllPublicationSet

        public java.util.Set<Publication> getAllPublicationSet​(Category cat)
        Returns the all publication set associated to the given category.
        Parameters:
        cat - the category
        Returns:
        the publication set associated to the given category.
        Since:
        jcms-6.0.0
      • setAllPublicationSet

        public void setAllPublicationSet​(Category cat,
                                         java.util.Set<Publication> set)
        Set the all publication set associated to the given Category.
        Parameters:
        cat - category for which publication set is defined
        set - the set
        Since:
        jcms-6.0.0
      • addAllPublication

        public boolean addAllPublication​(Category cat,
                                         Publication pub)
        Adds the given publication to the all publication set of the given category.
        Parameters:
        cat - category with which this publication must be added.
        pub - publication to be added to this set.
        Returns:
        true if this set did not already contain the specified element.
        Since:
        jcms-6.0.0
      • removeAllPublication

        public boolean removeAllPublication​(Category cat,
                                            Publication pub)
        Removes the given publication for the given category.
        Parameters:
        cat - category with which this publication must be removed.
        pub - publication to be removed from this set, if present.
        Returns:
        true if the set contained the specified element.
        Since:
        jcms-6.0.0
      • getContentSet

        public java.util.Set<Content> getContentSet​(Category cat)
        Returns the content set associated to the given category.
        Parameters:
        cat - the category
        Returns:
        the content set associated to the given category.
        Since:
        jcms-6.0.0
      • addContent

        public boolean addContent​(Category cat,
                                  Content content)
        Adds the given content to the content set of the given category.
        Parameters:
        cat - ember with which this content must be added.
        content - content to be added to this set.
        Returns:
        true if this set did not already contain the specified element.
        Since:
        jcms-6.0.0
      • removeContent

        public boolean removeContent​(Category cat,
                                     Content content)
        Removes the given content for the given category.
        Parameters:
        cat - category with which this content must be removed.
        content - content to be removed from this set, if present.
        Returns:
        true if the set contained the specified element.
        Since:
        jcms-6.0.0
      • getAllContentSet

        public java.util.Set<Content> getAllContentSet​(Category cat)
        Returns the all content set associated to the given category.
        Parameters:
        cat - the category
        Returns:
        the content set associated to the given category.
        Since:
        jcms-6.0.0
      • setAllContentSet

        public void setAllContentSet​(Category cat,
                                     java.util.Set<Content> set)
        Set the all content set associated to the given Category.
        Parameters:
        cat - category for which content set is defined
        set - the set
        Since:
        jcms-6.0.0
      • addAllContent

        public boolean addAllContent​(Category cat,
                                     Content content)
        Adds the given content to the all content set of the given category.
        Parameters:
        cat - category for which this content must be added.
        content - content to be added to this set.
        Returns:
        true if this set did not already contain the specified element.
        Since:
        jcms-6.0.0
      • removeAllContent

        public boolean removeAllContent​(Category cat,
                                        Content content)
        Removes the given content for the given category.
        Parameters:
        cat - category with which this content must be removed.
        content - content to be removed from this set, if present.
        Returns:
        true if the set contained the specified element.
        Since:
        jcms-6.0.0