Package systems.dmx.facets
Interface FacetsService
-
- All Known Implementing Classes:
FacetsPlugin
public interface FacetsService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFacetTypeToTopic(long topicId, String facetTypeUri)RelatedTopicgetFacet(long topicId, String facetTypeUri)RelatedTopicgetFacet(DMXObject object, String facetTypeUri)Retrieves a facet value.List<RelatedTopic>getFacets(long topicId, String facetTypeUri)List<RelatedTopic>getFacets(DMXObject object, String facetTypeUri)Retrieves the values of a multi-facet.TopicgetFacettedTopic(long topicId, List<String> facetTypeUris)booleanhasFacet(long topicId, String facetTypeUri, long facetTopicId)voidupdateFacet(long topicId, String facetTypeUri, FacetValueModel value)voidupdateFacet(DMXObject object, String facetTypeUri, FacetValueModel value)Updates a facet.
-
-
-
Method Detail
-
getFacet
RelatedTopic getFacet(long topicId, String facetTypeUri)
-
getFacet
RelatedTopic getFacet(DMXObject object, String facetTypeUri)
Retrieves a facet value. ### TODO: rename to getFacetValue?- 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
nullif no such topic extists.
-
getFacets
List<RelatedTopic> getFacets(long topicId, String facetTypeUri)
-
getFacets
List<RelatedTopic> getFacets(DMXObject object, String facetTypeUri)
Retrieves the values of a multi-facet. ### TODO: rename to getFacetValues?- 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.
-
addFacetTypeToTopic
void addFacetTypeToTopic(long topicId, String facetTypeUri)
-
updateFacet
void updateFacet(long topicId, String facetTypeUri, FacetValueModel value)
-
updateFacet
void updateFacet(DMXObject object, String facetTypeUri, FacetValueModel value)
Updates a facet.- Parameters:
object- The facetted object: a topic, association, a type ...facetTypeUri- URI of the facet type.value- The new facet value.
-
hasFacet
boolean hasFacet(long topicId, String facetTypeUri, long facetTopicId)
-
-