de.deepamehta.plugins.facets.service
Interface FacetsService

Show UML class diagram
All Superinterfaces:
PluginService
All Known Implementing Classes:
FacetsPlugin

public interface FacetsService
extends PluginService


Method Summary
 void addFacetTypeToTopic(long topicId, String facetTypeUri)
           
 Topic getFacet(DeepaMehtaObject object, String facetTypeUri)
          Retrieves a facet.
 Topic getFacet(long topicId, String facetTypeUri)
           
 List<RelatedTopic> getFacets(DeepaMehtaObject object, String facetTypeUri)
          Retrieves a multi-facet.
 boolean hasFacet(long topicId, String facetTypeUri, long facetTopicId)
           
 void updateFacet(DeepaMehtaObject object, String facetTypeUri, TopicModel facetValue, ClientState clientState, Directives directives)
          Updates a facet.
 void updateFacets(DeepaMehtaObject object, String facetTypeUri, List<? extends TopicModel> facetValues, ClientState clientState, Directives directives)
          Updates a multi-facet.
 

Method Detail

getFacet

Topic getFacet(long topicId,
               String facetTypeUri)

getFacet

Topic getFacet(DeepaMehtaObject object,
               String facetTypeUri)
Retrieves a facet.

Parameters:
object - The facetted object: a topic, association, a type ...
facetTypeUri - URI of the facet type.
Returns:
The retrieved facet.

getFacets

List<RelatedTopic> getFacets(DeepaMehtaObject object,
                             String facetTypeUri)
Retrieves a multi-facet.

Parameters:
object - The facetted object: a topic, association, a type ...
facetTypeUri - URI of the facet type.
Returns:
The retrieved multi-facet.

addFacetTypeToTopic

void addFacetTypeToTopic(long topicId,
                         String facetTypeUri)

updateFacet

void updateFacet(DeepaMehtaObject object,
                 String facetTypeUri,
                 TopicModel facetValue,
                 ClientState clientState,
                 Directives directives)
Updates a facet.

Parameters:
object - The facetted object: a topic, association, a type ...
facetTypeUri - URI of the facet type.
facetValue - The new facet value.
directives - Must be not null at least for aggregated facets ### FIXME: directives are ignored

updateFacets

void updateFacets(DeepaMehtaObject object,
                  String facetTypeUri,
                  List<? extends TopicModel> facetValues,
                  ClientState clientState,
                  Directives directives)
Updates a multi-facet.

Parameters:
object - The facetted object: a topic, association, a type ...
facetTypeUri - URI of the facet type.
facetValues - The new facet values.
directives - Must be not null at least for aggregated facets ### FIXME: directives are ignored

hasFacet

boolean hasFacet(long topicId,
                 String facetTypeUri,
                 long facetTopicId)


Copyright © 2013. All Rights Reserved.