Class CategoryTreeSettings

    • Constructor Detail

      • CategoryTreeSettings

        public CategoryTreeSettings()
    • Method Detail

      • opened

        public CategoryTreeSettings opened​(java.lang.String[] categoryIds)
        Specify the categories that are displayed open in the tree.
        Parameters:
        categoryIds - Array of Category IDs
        Returns:
        a reference to this object - used to chain calls
      • opened

        public CategoryTreeSettings opened​(Category[] categories)
        Specify the categories that are displayed open in the tree.
        Parameters:
        categories - array of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        opened(String[])
      • opened

        public CategoryTreeSettings opened​(java.util.Collection<Category> categories)
        Specify the categories that are displayed open in the tree.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        opened(Category[])
      • opened

        public CategoryTreeSettings opened​(Category category,
                                           Category... otherCategories)
        Specify the categories that are displayed open in the tree.
        Parameters:
        category - The first category open
        otherCategories - The other categories open
        Returns:
        a reference to this object - used to chain calls
        See Also:
        opened(String[])
      • opened

        public CategoryTreeSettings opened​(java.lang.String categoryId,
                                           java.lang.String... otherCategoryIds)
        Specify the categories that are displayed open in the tree.
        Parameters:
        categoryId - The first ID of the category open
        otherCategoryIds - The other IDs of the categories open
        Returns:
        a reference to this object - used to chain calls
        See Also:
        opened(String[])
      • checked

        public CategoryTreeSettings checked​(java.lang.String[] categoryIds)
        Specify the categories that are checked in the tree.
        Parameters:
        categoryIds - Array of Category IDs
        Returns:
        a reference to this object - used to chain calls
      • checked

        public CategoryTreeSettings checked​(java.util.Collection<Category> categories)
        Specify the categories that are checked in the tree.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        checked(Category[])
      • checked

        public CategoryTreeSettings checked​(Category category,
                                            Category... otherCategories)
        Specify the categories that are checked in the tree.
        Parameters:
        category - The first category checked
        otherCategories - The other categories checked
        Returns:
        a reference to this object - used to chain calls
        See Also:
        checked(String[])
      • checked

        public CategoryTreeSettings checked​(java.lang.String categoryId,
                                            java.lang.String... otherCategoryIds)
        Specify the categories that are checked in the tree.
        Parameters:
        categoryId - The first ID of category checked
        otherCategoryIds - The other IDs of categories checked
        Returns:
        a reference to this object - used to chain calls
        See Also:
        checked(String[])
      • highlighted

        public CategoryTreeSettings highlighted​(java.lang.String[] categoryIds)
        Specify the categories that are highlighted in the tree.
        Parameters:
        categoryIds - Array of Category IDs
        Returns:
        a reference to this object - used to chain calls
      • highlighted

        public CategoryTreeSettings highlighted​(java.util.Collection<Category> categories)
        Specify the categories that are highlighted in the tree.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        highlighted(Category[])
      • highlighted

        public CategoryTreeSettings highlighted​(Category category,
                                                Category... otherCategories)
        Specify the categories that are highlighted in the tree.
        Parameters:
        category - The first category highlighted
        otherCategories - The other categories highlighted
        Returns:
        a reference to this object - used to chain calls
        See Also:
        highlighted(String[])
      • highlighted

        public CategoryTreeSettings highlighted​(java.lang.String categoryId,
                                                java.lang.String... otherCategoryIds)
        Specify the categories that are highlighted in the tree.
        Parameters:
        categoryId - The first ID of category highlighted
        otherCategoryIds - The other IDs of categories highlighted
        Returns:
        a reference to this object - used to chain calls
        See Also:
        highlighted(String[])
      • removed

        public CategoryTreeSettings removed​(java.lang.String[] categoryIds)
        Specify the categories that are removed from the tree.
        Parameters:
        categoryIds - Array of Category IDs
        Returns:
        a reference to this object - used to chain calls
      • removed

        public CategoryTreeSettings removed​(Category[] categories)
        Specify the categories that are removed from the tree.
        Parameters:
        categories - Array of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        removed(String[])
      • removed

        public CategoryTreeSettings removed​(java.util.Collection<Category> categories)
        Specify the categories that are removed from the tree.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        removed(Category[])
      • removed

        public CategoryTreeSettings removed​(Category category,
                                            Category... otherCategories)
        Specify the categories that are removed from the tree.
        Parameters:
        category - The first category removed
        otherCategories - The other categories removed
        Returns:
        a reference to this object - used to chain calls
        See Also:
        removed(String[])
      • removed

        public CategoryTreeSettings removed​(java.lang.String categoryId,
                                            java.lang.String... otherCategoryIds)
        Specify the categories that are removed from the tree.
        Parameters:
        categoryId - The first ID of category removed
        otherCategoryIds - The other IDs of categories removed
        Returns:
        a reference to this object - used to chain calls
        See Also:
        removed(String[])
      • retained

        public CategoryTreeSettings retained​(java.lang.String[] categoryIds)
        Specify the categories that are retained in the tree.
        Parameters:
        categoryIds - Array of Category IDs
        Returns:
        a reference to this object - used to chain calls
      • retained

        public CategoryTreeSettings retained​(java.util.Collection<Category> categories)
        Specify the categories that are retained in the tree.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
        See Also:
        retained(Category[])
      • retained

        public CategoryTreeSettings retained​(Category category,
                                             Category... otherCategories)
        Specify the categories that are retained in the tree.
        Parameters:
        category - The first category retained
        otherCategories - The other categories retained
        Returns:
        a reference to this object - used to chain calls
        See Also:
        retained(String[])
      • retained

        public CategoryTreeSettings retained​(java.lang.String categoryId,
                                             java.lang.String... otherCategoryIds)
        Specify the categories that are retained in the tree.
        Parameters:
        categoryId - The first ID of category retained
        otherCategoryIds - The other IDs of categories retained
        Returns:
        a reference to this object - used to chain calls
        See Also:
        retained(String[])
      • level

        public CategoryTreeSettings level​(int level)
        Specify the depth level up to which the tree is open.
        Parameters:
        level - The depth level
        Returns:
        a reference to this object - used to chain calls
      • disableDragdrop

        public CategoryTreeSettings disableDragdrop()
        Disable the drag'n'drop categories from the tree.
        Returns:
        a reference to this object - used to chain calls
      • hideCtxMenu

        public CategoryTreeSettings hideCtxMenu()
        Disable the category context menu.
        Returns:
        a reference to this object - used to chain calls
      • disableSearch

        public CategoryTreeSettings disableSearch()
        Disable the category tree search field.
        Returns:
        a reference to this object - used to chain calls
      • showRightsIcon

        public CategoryTreeSettings showRightsIcon()
        Show icons representing the rights on the categories.
        Returns:
        a reference to this object - used to chain calls
      • showWorkspaceIcon

        public CategoryTreeSettings showWorkspaceIcon()
        Show the "Workspace" icon on the categories associated with a Workspace.
        Returns:
        a reference to this object - used to chain calls
      • showPortalIcon

        public CategoryTreeSettings showPortalIcon()
        Display the "Portal" icon on the categories associated with a Portal.
        Returns:
        a reference to this object - used to chain calls
      • exactRootCategories

        public CategoryTreeSettings exactRootCategories()
        Do not resolve Parent categories when there are multiple defined root categories that can potentially be in different branches.
        Returns:
        a reference to this object - used to chain calls
      • useTree

        public static boolean useTree​(AbstractCategorySettings settings,
                                      java.lang.String[] fieldValuesArray)
        Returns true if keyword should be used instead of tree display, to avoid performance issues when a big tree with a lot of categories is displayed within the browser.
        Parameters:
        settings - the AbstractCategorySettings
        Returns:
        true if keyword should be used instead of tree display
      • getOtherCategorySet

        public static java.util.Set<Category> getOtherCategorySet​(java.util.Set publicationCategories,
                                                                  java.util.Set<Category> wsRootSet)