de.deepamehta.plugins.webservice
Class WebservicePlugin

Show UML class diagram
java.lang.Object
  extended by de.deepamehta.core.osgi.PluginActivator
      extended by de.deepamehta.plugins.webservice.WebservicePlugin
All Implemented Interfaces:
PluginContext, BundleActivator

public class WebservicePlugin
extends PluginActivator


Field Summary
private  Logger logger
           
 
Fields inherited from class de.deepamehta.core.osgi.PluginActivator
bundle, dms
 
Constructor Summary
WebservicePlugin()
           
 
Method Summary
 Association createAssociation(AssociationModel model, ClientState clientState)
           
 AssociationType createAssociationType(AssociationTypeModel assocTypeModel, ClientState clientState)
           
 Topic createTopic(TopicModel model, ClientState clientState)
           
 TopicType createTopicType(TopicTypeModel topicTypeModel, ClientState clientState)
           
 Directives deleteAssociation(long assocId)
           
 Directives deleteAssociationType(String uri)
           
 Directives deleteTopic(long topicId)
           
 Directives deleteTopicType(String uri)
           
 List<TopicType> getAllTopicTypes()
           
 Association getAssociation(long assocId, boolean fetchComposite)
           
 Association getAssociation(String assocTypeUri, long topic1Id, long topic2Id, String roleTypeUri1, String roleTypeUri2, boolean fetchComposite)
           
 List<AssociationType> getAssociationAllTypes()
           
 ResultList<RelatedTopic> getAssociationRelatedTopics(long assocId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
           
 List<Association> getAssociations(long topic1Id, long topic2Id)
           
 List<Association> getAssociations(long topic1Id, long topic2Id, String assocTypeUri)
           
 AssociationType getAssociationType(String uri)
           
 List<String> getAssociationTypeUris()
           
 List<PluginInfo> getPluginInfo()
           
private  ResultList<RelatedTopic> getRelatedTopics(DeepaMehtaObject object, String objectInfo, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
           
 Topic getTopic(long topicId, boolean fetchComposite)
           
 Topic getTopic(String key, SimpleValue value, boolean fetchComposite)
           
 ResultList<RelatedTopic> getTopicRelatedTopics(long topicId, String assocTypeUri, String myRoleTypeUri, String othersRoleTypeUri, String othersTopicTypeUri, int maxResultSize)
           
 ResultList<RelatedTopic> getTopics(String typeUri, boolean fetchComposite, int maxResultSize)
           
 TopicType getTopicType(String uri)
           
 List<String> getTopicTypeUris()
           
 List<Topic> searchTopics(String searchTerm, String fieldUri)
           
 Directives updateAssociation(long assocId, AssociationModel model, ClientState clientState)
           
 Directives updateAssociationType(AssociationTypeModel model, ClientState clientState)
           
 Directives updateTopic(long topicId, TopicModel model, ClientState clientState)
           
 Directives updateTopicType(TopicTypeModel model, ClientState clientState)
           
 
Methods inherited from class de.deepamehta.core.osgi.PluginActivator
getBundleContext, getUri, init, postInstall, 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

logger

private Logger logger
Constructor Detail

WebservicePlugin

public WebservicePlugin()
Method Detail

getTopic

public Topic getTopic(long topicId,
                      boolean fetchComposite)

getTopic

public Topic getTopic(String key,
                      SimpleValue value,
                      boolean fetchComposite)

getTopics

public ResultList<RelatedTopic> getTopics(String typeUri,
                                          boolean fetchComposite,
                                          int maxResultSize)

searchTopics

public List<Topic> searchTopics(String searchTerm,
                                String fieldUri)

createTopic

public Topic createTopic(TopicModel model,
                         @HeaderParam(value="Cookie")
                         ClientState clientState)

updateTopic

public Directives updateTopic(long topicId,
                              TopicModel model,
                              @HeaderParam(value="Cookie")
                              ClientState clientState)

deleteTopic

public Directives deleteTopic(long topicId)

getAssociation

public Association getAssociation(long assocId,
                                  boolean fetchComposite)

getAssociation

public Association getAssociation(String assocTypeUri,
                                  long topic1Id,
                                  long topic2Id,
                                  String roleTypeUri1,
                                  String roleTypeUri2,
                                  boolean fetchComposite)

getAssociations

public List<Association> getAssociations(long topic1Id,
                                         long topic2Id)

getAssociations

public List<Association> getAssociations(long topic1Id,
                                         long topic2Id,
                                         String assocTypeUri)

createAssociation

public Association createAssociation(AssociationModel model,
                                     @HeaderParam(value="Cookie")
                                     ClientState clientState)

updateAssociation

public Directives updateAssociation(long assocId,
                                    AssociationModel model,
                                    @HeaderParam(value="Cookie")
                                    ClientState clientState)

deleteAssociation

public Directives deleteAssociation(long assocId)

getTopicTypeUris

public List<String> getTopicTypeUris()

getTopicType

public TopicType getTopicType(String uri)

getAllTopicTypes

public List<TopicType> getAllTopicTypes()

createTopicType

public TopicType createTopicType(TopicTypeModel topicTypeModel,
                                 @HeaderParam(value="Cookie")
                                 ClientState clientState)

updateTopicType

public Directives updateTopicType(TopicTypeModel model,
                                  @HeaderParam(value="Cookie")
                                  ClientState clientState)

deleteTopicType

public Directives deleteTopicType(String uri)

getAssociationTypeUris

public List<String> getAssociationTypeUris()

getAssociationType

public AssociationType getAssociationType(String uri)

getAssociationAllTypes

public List<AssociationType> getAssociationAllTypes()

createAssociationType

public AssociationType createAssociationType(AssociationTypeModel assocTypeModel,
                                             @HeaderParam(value="Cookie")
                                             ClientState clientState)

updateAssociationType

public Directives updateAssociationType(AssociationTypeModel model,
                                        @HeaderParam(value="Cookie")
                                        ClientState clientState)

deleteAssociationType

public Directives deleteAssociationType(String uri)

getPluginInfo

public List<PluginInfo> getPluginInfo()

getTopicRelatedTopics

public ResultList<RelatedTopic> getTopicRelatedTopics(long topicId,
                                                      String assocTypeUri,
                                                      String myRoleTypeUri,
                                                      String othersRoleTypeUri,
                                                      String othersTopicTypeUri,
                                                      int maxResultSize)

getAssociationRelatedTopics

public ResultList<RelatedTopic> getAssociationRelatedTopics(long assocId,
                                                            String assocTypeUri,
                                                            String myRoleTypeUri,
                                                            String othersRoleTypeUri,
                                                            String othersTopicTypeUri,
                                                            int maxResultSize)

getRelatedTopics

private ResultList<RelatedTopic> getRelatedTopics(DeepaMehtaObject object,
                                                  String objectInfo,
                                                  String assocTypeUri,
                                                  String myRoleTypeUri,
                                                  String othersRoleTypeUri,
                                                  String othersTopicTypeUri,
                                                  int maxResultSize)


Copyright © 2014. All Rights Reserved.