Package systems.dmx.webservice
Class WebservicePlugin
- java.lang.Object
-
- systems.dmx.core.osgi.PluginActivator
-
- systems.dmx.webservice.WebservicePlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
,PluginContext
public class WebservicePlugin extends PluginActivator
REST API forCoreService
.
-
-
Field Summary
-
Fields inherited from class systems.dmx.core.osgi.PluginActivator
bundle, dmx, mf
-
-
Constructor Summary
Constructors Constructor Description WebservicePlugin()
-
Method Summary
-
Methods inherited from class systems.dmx.core.osgi.PluginActivator
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
-
-
-
-
Method Detail
-
getTopic
public Topic getTopic(long topicId)
-
getTopicByValue
public Topic getTopicByValue(String typeUri, SimpleValue value)
-
getTopicsByValue
public List<Topic> getTopicsByValue(String typeUri, SimpleValue value)
-
queryTopicsFulltext
public TopicResult queryTopicsFulltext(String query, String topicTypeUri, boolean searchChildTopics)
-
createTopic
public DirectivesResponse createTopic(TopicModel model)
-
updateTopic
public DirectivesResponse updateTopic(long topicId, TopicModel model)
-
deleteTopic
public DirectivesResponse deleteTopic(long topicId)
-
getAssoc
public Assoc getAssoc(long assocId)
-
getAssocByValue
public Assoc getAssocByValue(String typeUri, SimpleValue value)
-
getAssocBetweenTopicAndTopic
public Assoc getAssocBetweenTopicAndTopic(String assocTypeUri, long topic1Id, long topic2Id, String roleTypeUri1, String roleTypeUri2)
-
createAssoc
public DirectivesResponse createAssoc(AssocModel model)
-
updateAssoc
public DirectivesResponse updateAssoc(long assocId, AssocModel model)
-
deleteAssoc
public DirectivesResponse deleteAssoc(long assocId)
-
getTopicTypeImplicitly
public TopicType getTopicTypeImplicitly(long topicId)
-
createTopicType
public TopicType createTopicType(TopicTypeModel model)
-
updateTopicType
public DirectivesResponse updateTopicType(TopicTypeModel model)
-
deleteTopicType
public DirectivesResponse deleteTopicType(String uri)
-
getAssocTypeImplicitly
public AssocType getAssocTypeImplicitly(long assocId)
-
createAssocType
public AssocType createAssocType(AssocTypeModel model)
-
updateAssocType
public DirectivesResponse updateAssocType(AssocTypeModel model)
-
deleteAssocType
public DirectivesResponse deleteAssocType(String uri)
-
createRoleType
public RoleType createRoleType(RoleTypeModel model)
-
getPluginInfo
public List<PluginInfo> getPluginInfo()
-
getTopicRelatedTopics
public List<RelatedTopic> getTopicRelatedTopics(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
-
getTopicRelatedAssocs
public List<RelatedAssoc> getTopicRelatedAssocs(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
-
getAssocRelatedTopics
public List<RelatedTopic> getAssocRelatedTopics(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri)
-
getAssocRelatedAssocs
public List<RelatedAssoc> getAssocRelatedAssocs(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersAssocTypeUri)
-
query
public QueryResult query(String topicQuery, String topicTypeUri, boolean searchTopicChildren, String assocQuery, String assocTypeUri, boolean searchAssocChildren)
-
getRelatedTopicsWithoutChilds
public List<RelatedTopic> getRelatedTopicsWithoutChilds(long objectId)
-
deleteTopics
public DirectivesResponse deleteTopics(IdList topicIds)
-
deleteAssocs
public DirectivesResponse deleteAssocs(IdList assocIds)
-
deleteMulti
public DirectivesResponse deleteMulti(IdList topicIds, IdList assocIds)
-
getWebSocketsConfig
public JSONEnabled getWebSocketsConfig()
-
-