Interface SolrFacetService

  • All Known Implementing Classes:
    SolrFacetServiceImpl

    public interface SolrFacetService
    Solr Facet service configuration API.
    Since:
    5.0
    Author:
    Jamal Kaabi-Mofrad, Neil Mc Erlean
    • Method Detail

      • getFacets

        List<SolrFacetProperties> getFacets()
        Gets all the available facets.
        Returns:
        List of SolrFacetProperties or an empty list if none exists
      • getFacet

        SolrFacetProperties getFacet​(String filterID)
        Gets the facet by filter Id.
        Parameters:
        filterID - the filter Id
        Returns:
        SolrFacetProperties object or null if there is no facet with the specified Id
      • getFacetNodeRef

        NodeRef getFacetNodeRef​(String filterID)
        Gets the facet's NodeRef by filter Id.
        Parameters:
        filterID - the filter Id
        Returns:
        facet's NodeRef or null if there is no facet with the specified Id
      • isSearchAdmin

        boolean isSearchAdmin​(String userName)
        Indicates whether the specified user is a search-administrator or not.

        Note: The super/repo admin is considered to be a search-administrator too.

        Parameters:
        userName - The user name
        Returns:
        true if the specified user is a search-administrator, false otherwise
      • createFacetNode

        NodeRef createFacetNode​(SolrFacetProperties facetProperties)
        Creates a new facet.
        Parameters:
        facetProperties - the facet's properties
        Returns:
        the created facet's NodeRef
      • updateFacet

        void updateFacet​(SolrFacetProperties facetProperties)
        Updates the existing facet.
        Parameters:
        facetProperties - the facet's properties
      • deleteFacet

        void deleteFacet​(String filterID)
        Deletes the specified facet permanently
        Parameters:
        filterID - the filter Id
      • getFacetableProperties

        List<PropertyDefinition> getFacetableProperties()
        This method offers a convenient access point for getting all Facetable content properties defined in the repository.
        Returns:
        a collection of facetable PropertyDefinitions.
        See Also:
        Facetable
      • getFacetableProperties

        List<PropertyDefinition> getFacetableProperties​(QName contentClass)
        This method offers a convenient access point for getting all Facetable content properties defined on the specified content class (type or aspect) or any of its inherited properties.
        Parameters:
        contentClass - the QName of an aspect or type, whose facetable properties are sought.
        Returns:
        a collection of facetable PropertyDefinitions.
        See Also:
        Facetable
      • getFacetableSyntheticProperties

        List<SolrFacetService.SyntheticPropertyDefinition> getFacetableSyntheticProperties​(QName contentClass)
        This method gets all synthetic, facetable properties defined on the specified content class (type or aspect) or any of its inherited properties.
        Parameters:
        contentClass - the QName of an aspect or type, whose synthetic, facetable properties are sought.