|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeepaMehtaService
Specification of the DeepaMehta core service -- the heart of DeepaMehta.
The responsibility of the DeepaMehta core service is to orchestrate the control flow and allow plugins to hook in. The main duties of the DeepaMehta core service are to provide access to the storage layer and to deliver events to the installed plugins. ### FIXDOC
The DeepaMehta core service is a realization of the Inversion of Control pattern.
The DeepaMehta core service provides methods to deal with topics, associations, types, and plugins.
Plugin developer notes: Inside the PluginActivator
and Migration
classes an instance of the
DeepaMehta core service is available through the dms
object.
Method Detail |
---|
Topic getTopic(long topicId)
Topic getTopic(String key, SimpleValue value)
null
is returned.
If more than one topic is found a runtime exception is thrown.
Note: wildcards like "*" in String values are treated literally. They are not interpreted.
Compare to #getTopics(String,SimpleValue,boolean)
IMPORTANT: Looking up a topic this way requires the corresponding type to be indexed with indexing mode
dm4.core.key
.
List<Topic> getTopics(String key, SimpleValue value)
Wildcards like "*" in String values are interpreted.
IMPORTANT: Looking up topics this way requires the corresponding type to be indexed with indexing mode
dm4.core.key
.
ResultList<RelatedTopic> getTopics(String topicTypeUri, int maxResultSize)
List<Topic> searchTopics(String searchTerm, String fieldUri)
IMPORTANT: Searching topics this way requires the corresponding type to be indexed with indexing mode
dm4.core.fulltext
or dm4.core.fulltext_key
. ### FIXDOC
fieldUri
- The URI of the data field to search. If null is provided all fields are searched. ### FIXDOC
### TODO: rename parameter to "key"?Iterable<Topic> getAllTopics()
Topic createTopic(TopicModel model)
void updateTopic(TopicModel model)
void deleteTopic(long topicId)
Association getAssociation(long assocId)
Association getAssociation(String assocTypeUri, long topic1Id, long topic2Id, String roleTypeUri1, String roleTypeUri2)
null
is returned.
If more than one association exist, a runtime exception is thrown.
assocTypeUri
- Association type filter. Pass null
to switch filter off.Association getAssociationBetweenTopicAndAssociation(String assocTypeUri, long topicId, long assocId, String topicRoleTypeUri, String assocRoleTypeUri)
ResultList<RelatedAssociation> getAssociations(String assocTypeUri)
List<Association> getAssociations(long topic1Id, long topic2Id)
List<Association> getAssociations(long topic1Id, long topic2Id, String assocTypeUri)
assocTypeUri
- Association type filter. Pass null
to switch filter off.Iterable<Association> getAllAssociations()
Association createAssociation(AssociationModel model)
void updateAssociation(AssociationModel model)
void deleteAssociation(long assocId)
List<String> getTopicTypeUris()
TopicType getTopicType(String topicTypeUri)
List<TopicType> getAllTopicTypes()
TopicType createTopicType(TopicTypeModel model)
void updateTopicType(TopicTypeModel model)
void deleteTopicType(String topicTypeUri)
List<String> getAssociationTypeUris()
AssociationType getAssociationType(String assocTypeUri)
List<AssociationType> getAllAssociationTypes()
AssociationType createAssociationType(AssociationTypeModel model)
void updateAssociationType(AssociationTypeModel model)
void deleteAssociationType(String assocTypeUri)
Topic createRoleType(TopicModel model)
Plugin getPlugin(String pluginUri)
List<PluginInfo> getPluginInfo()
void fireEvent(DeepaMehtaEvent event, Object... params)
void deliverEvent(String pluginUri, DeepaMehtaEvent event, Object... params)
List<Topic> getTopicsByProperty(String propUri, Object propValue)
List<Topic> getTopicsByPropertyRange(String propUri, Number from, Number to)
List<Association> getAssociationsByProperty(String propUri, Object propValue)
List<Association> getAssociationsByPropertyRange(String propUri, Number from, Number to)
DeepaMehtaTransaction beginTx()
TypeStorage getTypeStorage()
Object getDatabaseVendorObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |