Class WebservicePlugin

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator, systems.dmx.core.osgi.PluginContext

    public class WebservicePlugin
    extends systems.dmx.core.osgi.PluginActivator
    REST API for CoreService.
    • Constructor Detail

      • WebservicePlugin

        public WebservicePlugin()
    • Method Detail

      • getTopic

        public systems.dmx.core.Topic getTopic​(long topicId)
      • getTopicByUri

        public systems.dmx.core.Topic getTopicByUri​(String uri)
      • getTopicsByType

        public List<systems.dmx.core.Topic> getTopicsByType​(String topicTypeUri)
      • getTopicByValue

        public systems.dmx.core.Topic getTopicByValue​(String typeUri,
                                                      systems.dmx.core.model.SimpleValue value)
      • getTopicsByValue

        public List<systems.dmx.core.Topic> getTopicsByValue​(String typeUri,
                                                             systems.dmx.core.model.SimpleValue value)
      • queryTopics

        public List<systems.dmx.core.Topic> queryTopics​(String typeUri,
                                                        String query)
      • queryTopicsFulltext

        public systems.dmx.core.service.TopicResult queryTopicsFulltext​(String query,
                                                                        String topicTypeUri,
                                                                        boolean searchChildTopics)
      • createTopic

        public systems.dmx.core.service.DirectivesResponse createTopic​(systems.dmx.core.model.TopicModel model)
      • updateTopic

        public systems.dmx.core.service.DirectivesResponse updateTopic​(long topicId,
                                                                       systems.dmx.core.model.TopicModel model)
      • deleteTopic

        public systems.dmx.core.service.DirectivesResponse deleteTopic​(long topicId)
      • getAssoc

        public systems.dmx.core.Assoc getAssoc​(long assocId)
      • getAssocByValue

        public systems.dmx.core.Assoc getAssocByValue​(String typeUri,
                                                      systems.dmx.core.model.SimpleValue value)
      • queryAssocs

        public List<systems.dmx.core.Assoc> queryAssocs​(String typeUri,
                                                        String query)
      • getAssocBetweenTopicAndTopic

        public systems.dmx.core.Assoc getAssocBetweenTopicAndTopic​(String assocTypeUri,
                                                                   long topic1Id,
                                                                   long topic2Id,
                                                                   String roleTypeUri1,
                                                                   String roleTypeUri2)
      • getAssocs

        public List<systems.dmx.core.Assoc> getAssocs​(long topic1Id,
                                                      long topic2Id)
      • getAssocs

        public List<systems.dmx.core.Assoc> getAssocs​(long topic1Id,
                                                      long topic2Id,
                                                      String assocTypeUri)
      • createAssoc

        public systems.dmx.core.service.DirectivesResponse createAssoc​(systems.dmx.core.model.AssocModel model)
      • updateAssoc

        public systems.dmx.core.service.DirectivesResponse updateAssoc​(long assocId,
                                                                       systems.dmx.core.model.AssocModel model)
      • deleteAssoc

        public systems.dmx.core.service.DirectivesResponse deleteAssoc​(long assocId)
      • getTopicType

        public systems.dmx.core.TopicType getTopicType​(String uri)
      • getTopicTypeImplicitly

        public systems.dmx.core.TopicType getTopicTypeImplicitly​(long topicId)
      • getAllTopicTypes

        public List<systems.dmx.core.TopicType> getAllTopicTypes()
      • createTopicType

        public systems.dmx.core.TopicType createTopicType​(systems.dmx.core.model.TopicTypeModel model)
      • updateTopicType

        public systems.dmx.core.service.DirectivesResponse updateTopicType​(systems.dmx.core.model.TopicTypeModel model)
      • deleteTopicType

        public systems.dmx.core.service.DirectivesResponse deleteTopicType​(String uri)
      • getAssocType

        public systems.dmx.core.AssocType getAssocType​(String uri)
      • getAssocTypeImplicitly

        public systems.dmx.core.AssocType getAssocTypeImplicitly​(long assocId)
      • getAllAssocTypes

        public List<systems.dmx.core.AssocType> getAllAssocTypes()
      • createAssocType

        public systems.dmx.core.AssocType createAssocType​(systems.dmx.core.model.AssocTypeModel model)
      • updateAssocType

        public systems.dmx.core.service.DirectivesResponse updateAssocType​(systems.dmx.core.model.AssocTypeModel model)
      • deleteAssocType

        public systems.dmx.core.service.DirectivesResponse deleteAssocType​(String uri)
      • getRoleTypeImplicitly

        public systems.dmx.core.RoleType getRoleTypeImplicitly​(long assocId,
                                                               String roleTypeUri)
      • getAllRoleTypes

        public List<systems.dmx.core.RoleType> getAllRoleTypes()
      • createRoleType

        public systems.dmx.core.RoleType createRoleType​(systems.dmx.core.model.RoleTypeModel model)
      • getPluginInfo

        public List<systems.dmx.core.service.PluginInfo> getPluginInfo()
      • getTopicRelatedTopics

        public List<systems.dmx.core.RelatedTopic> getTopicRelatedTopics​(long topicId,
                                                                         String assocTypeUri,
                                                                         String myRoleTypeUri,
                                                                         String othersRoleTypeUri,
                                                                         String othersTopicTypeUri)
      • getTopicRelatedAssocs

        public List<systems.dmx.core.RelatedAssoc> getTopicRelatedAssocs​(long topicId,
                                                                         String assocTypeUri,
                                                                         String myRoleTypeUri,
                                                                         String othersRoleTypeUri,
                                                                         String othersAssocTypeUri)
      • getAssocRelatedTopics

        public List<systems.dmx.core.RelatedTopic> getAssocRelatedTopics​(long assocId,
                                                                         String assocTypeUri,
                                                                         String myRoleTypeUri,
                                                                         String othersRoleTypeUri,
                                                                         String othersTopicTypeUri)
      • getAssocRelatedAssocs

        public List<systems.dmx.core.RelatedAssoc> getAssocRelatedAssocs​(long assocId,
                                                                         String assocTypeUri,
                                                                         String myRoleTypeUri,
                                                                         String othersRoleTypeUri,
                                                                         String othersAssocTypeUri)
      • query

        public systems.dmx.core.service.QueryResult query​(String topicQuery,
                                                          String topicTypeUri,
                                                          boolean searchTopicChildren,
                                                          String assocQuery,
                                                          String assocTypeUri,
                                                          boolean searchAssocChildren)
      • getRelatedTopicsWithoutChilds

        public List<systems.dmx.core.RelatedTopic> getRelatedTopicsWithoutChilds​(long objectId)
      • deleteTopics

        public systems.dmx.core.service.DirectivesResponse deleteTopics​(systems.dmx.core.util.IdList topicIds)
      • deleteAssocs

        public systems.dmx.core.service.DirectivesResponse deleteAssocs​(systems.dmx.core.util.IdList assocIds)
      • deleteMulti

        public systems.dmx.core.service.DirectivesResponse deleteMulti​(systems.dmx.core.util.IdList topicIds,
                                                                       systems.dmx.core.util.IdList assocIds)
      • getWebSocketsConfig

        public systems.dmx.core.JSONEnabled getWebSocketsConfig()