Interface QualifierProvider

    • Method Detail

      • getSupportedTypes

        java.util.Set<java.lang.Class<?>> getSupportedTypes()
        Returns all the supported types by this provider.
        Returns:
        the supported types
      • getAvailableQualifiers

        java.util.Collection<Qualifier> getAvailableQualifiers​(FacetSearchConfig facetSearchConfig,
                                                               IndexedType indexedType)
        Returns all the possible qualifiers for a given index configuration and indexed type.
        Parameters:
        facetSearchConfig - - the facet search configuration
        indexedType - - the indexed type
        Returns:
        the available qualifiers
      • canApply

        boolean canApply​(IndexedProperty indexedProperty)
        Checks if qualifiers can be applied/used with the indexed property passed as parameter.
        Parameters:
        indexedProperty - - the indexed property
        Returns:
        true if qualifiers can be used, false otherwise
      • applyQualifier

        void applyQualifier​(Qualifier qualifier)
        Applies the qualifier passed as parameter. This normally consists in setting some attributes on the session, e.g. by calling a service to set the current session language, currency, etc.
        Parameters:
        qualifier - - the Qualifier to be applied
      • getCurrentQualifier

        Qualifier getCurrentQualifier()
        Returns the current qualifier. This normally consists in getting some attributes from the session and creating the corresponding qualifier.
        Returns:
        the current qualifier