Class FacetsPlugin

    • Constructor Detail

      • FacetsPlugin

        public FacetsPlugin()
    • Method Detail

      • getFacet

        public RelatedTopic getFacet​(DMXObject object,
                                     String facetTypeUri)
        Description copied from interface: FacetsService
        Retrieves a facet value. ### TODO: rename to getFacetValue?
        Specified by:
        getFacet in interface FacetsService
        Parameters:
        object - The facetted object: a topic, association, a type ...
        facetTypeUri - URI of the facet type.
        Returns:
        The retrieved facet value (including its child topics) or null if no such topic extists.
      • getFacets

        public List<RelatedTopic> getFacets​(DMXObject object,
                                            String facetTypeUri)
        Description copied from interface: FacetsService
        Retrieves the values of a multi-facet. ### TODO: rename to getFacetValues?
        Specified by:
        getFacets in interface FacetsService
        Parameters:
        object - The facetted object: a topic, association, a type ...
        facetTypeUri - URI of the facet type.
        Returns:
        The retrieved facet values (including their child topics). The list may be empty.
      • updateFacet

        public void updateFacet​(DMXObject object,
                                String facetTypeUri,
                                FacetValueModel value)
        Description copied from interface: FacetsService
        Updates a facet.
        Specified by:
        updateFacet in interface FacetsService
        Parameters:
        object - The facetted object: a topic, association, a type ...
        facetTypeUri - URI of the facet type.
        value - The new facet value.
      • hasFacet

        public boolean hasFacet​(long topicId,
                                String facetTypeUri,
                                long facetTopicId)
        Specified by:
        hasFacet in interface FacetsService