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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis class represents a special case of a property, examples being file size and MIME type, which are not modelled as Alfresco content model properties, but are instead stored as components within properties of typecm:content. -
Method Summary
Modifier and TypeMethodDescriptioncreateFacetNode(SolrFacetProperties facetProperties) Creates a new facet.voiddeleteFacet(String filterID) Deletes the specified facet permanentlyGets the facet by filter Id.This method offers a convenient access point for getting all Facetable content properties defined in the repository.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.This method gets all synthetic, facetable properties across all content models in the repository.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.getFacetNodeRef(String filterID) Gets the facet'sNodeRefby filter Id.Gets all the available facets.booleanisSearchAdmin(String userName) Indicates whether the specified user is a search-administrator or not.voidreorderFacets(List<String> filterIds) Reorders existing facets to the provided order.voidupdateFacet(SolrFacetProperties facetProperties) Updates the existing facet.
-
Method Details
-
getFacets
List<SolrFacetProperties> getFacets()Gets all the available facets.- Returns:
- List of
SolrFacetPropertiesor an empty list if none exists
-
getFacet
Gets the facet by filter Id.- Parameters:
filterID- the filter Id- Returns:
SolrFacetPropertiesobject or null if there is no facet with the specified Id
-
getFacetNodeRef
Gets the facet'sNodeRefby filter Id.- Parameters:
filterID- the filter Id- Returns:
- facet's
NodeRefor null if there is no facet with the specified Id
-
isSearchAdmin
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
Creates a new facet.- Parameters:
facetProperties- the facet's properties- Returns:
- the created facet's
NodeRef
-
updateFacet
Updates the existing facet.- Parameters:
facetProperties- the facet's properties
-
deleteFacet
Deletes the specified facet permanently- Parameters:
filterID- the filter Id
-
reorderFacets
Reorders existing facets to the provided order.- Parameters:
filterIds- an ordered sequence of filter IDs.- Throws:
NullPointerException- if filterIds isnull.Exceptions.MissingFacetId- if the list is empty.Exceptions.DuplicateFacetId- if there is a duplicate filter ID in the list.
-
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:
-
getFacetableProperties
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:
-
getFacetableSyntheticProperties
List<SolrFacetService.SyntheticPropertyDefinition> getFacetableSyntheticProperties()This method gets all synthetic, facetable properties across all content models in the repository. -
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.
-