|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.deepamehta.core.osgi.PluginActivator de.deepamehta.plugins.facets.FacetsPlugin
public class FacetsPlugin
Field Summary | |
---|---|
private Logger |
logger
|
Fields inherited from class de.deepamehta.core.osgi.PluginActivator |
---|
bundle, dms |
Constructor Summary | |
---|---|
FacetsPlugin()
|
Method Summary | |
---|---|
void |
addFacetTypeToTopic(long topicId,
String facetTypeUri)
|
private RelatedTopic |
fetchChildTopic(DeepaMehtaObject object,
AssociationDefinition assocDef)
Fetches and returns a child topic or null if no such topic extists. |
private ResultList<RelatedTopic> |
fetchChildTopics(DeepaMehtaObject object,
AssociationDefinition assocDef)
Fetches and returns child topics. |
private AssociationDefinition |
getAssocDef(String facetTypeUri)
|
private String |
getChildTypeUri(String facetTypeUri)
|
Topic |
getFacet(DeepaMehtaObject object,
String facetTypeUri)
Retrieves a facet value. |
Topic |
getFacet(long topicId,
String facetTypeUri)
|
ResultList<RelatedTopic> |
getFacets(DeepaMehtaObject object,
String facetTypeUri)
Retrieves the values of a multi-facet. |
ResultList<RelatedTopic> |
getFacets(long topicId,
String facetTypeUri)
|
Topic |
getFacettedTopic(long topicId,
List<String> facetTypeUris)
|
boolean |
hasFacet(long topicId,
String facetTypeUri,
long facetTopicId)
|
private boolean |
isMultiFacet(String facetTypeUri)
|
void |
updateFacet(DeepaMehtaObject object,
String facetTypeUri,
FacetValue value)
Updates a facet. |
void |
updateFacet(long topicId,
String facetTypeUri,
FacetValue value)
|
Methods inherited from class de.deepamehta.core.osgi.PluginActivator |
---|
getBundleContext, getPluginName, getStaticResource, getUri, init, publishDirectory, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Logger logger
Constructor Detail |
---|
public FacetsPlugin()
Method Detail |
---|
public Topic getFacet(long topicId, String facetTypeUri)
getFacet
in interface FacetsService
public Topic getFacet(DeepaMehtaObject object, String facetTypeUri)
FacetsService
getFacet
in interface FacetsService
object
- The facetted object: a topic, association, a type ...facetTypeUri
- URI of the facet type.
null
if no such topic extists.public ResultList<RelatedTopic> getFacets(long topicId, String facetTypeUri)
getFacets
in interface FacetsService
public ResultList<RelatedTopic> getFacets(DeepaMehtaObject object, String facetTypeUri)
FacetsService
getFacets
in interface FacetsService
object
- The facetted object: a topic, association, a type ...facetTypeUri
- URI of the facet type.
public Topic getFacettedTopic(long topicId, List<String> facetTypeUris)
getFacettedTopic
in interface FacetsService
public void addFacetTypeToTopic(long topicId, String facetTypeUri)
addFacetTypeToTopic
in interface FacetsService
public void updateFacet(long topicId, String facetTypeUri, FacetValue value)
updateFacet
in interface FacetsService
public void updateFacet(DeepaMehtaObject object, String facetTypeUri, FacetValue value)
FacetsService
updateFacet
in interface FacetsService
object
- The facetted object: a topic, association, a type ...facetTypeUri
- URI of the facet type.public boolean hasFacet(long topicId, String facetTypeUri, long facetTopicId)
hasFacet
in interface FacetsService
private RelatedTopic fetchChildTopic(DeepaMehtaObject object, AssociationDefinition assocDef)
null
if no such topic extists.
Note: There is a principal copy in AttachedDeepaMehtaObject but here the precondition is different: The given association definition must not necessarily originate from the given object's type definition. ### TODO: meanwhile we have the ValueStorage. Can we use its method instead?
private ResultList<RelatedTopic> fetchChildTopics(DeepaMehtaObject object, AssociationDefinition assocDef)
Note: There is a principal copy in AttachedDeepaMehtaObject but here the precondition is different: The given association definition must not necessarily originate from the given object's type definition. ### TODO: meanwhile we have the ValueStorage. Can we use its method instead?
private boolean isMultiFacet(String facetTypeUri)
private String getChildTypeUri(String facetTypeUri)
private AssociationDefinition getAssocDef(String facetTypeUri)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |