com.ontotext.ordi.wsmo4rdf.remote.server
Class WsmoConnectionServiceImpl

java.lang.Object
  extended by com.ontotext.ordi.wsmo4rdf.remote.server.WsmoConnectionServiceImpl
All Implemented Interfaces:
WsmoConnectionService

public class WsmoConnectionServiceImpl
extends Object
implements WsmoConnectionService


Constructor Summary
WsmoConnectionServiceImpl()
           
 
Method Summary
 void addGoal(int connectionId, String goal)
           
 void addMediator(int connectionId, String mediatorAsString)
           
 void addOntology(int connectionId, String ont)
           
 void addWebService(int connectionId, String webServiceAsString)
           
 void clearWarnings(int connectionId)
           
 void close(int connectionId)
           
 void commit(int connectionId)
           
 void deleteGoal(int connectionId, String iriAsString)
           
 void deleteMediator(int connectionId, String iriAsString)
           
 void deleteOntology(int connectionId, String iriAsString)
           
 void deleteWebService(int connectionId, String iriAsString)
           
 String evaluate(int connectionId, String query)
           
 String getDescription(int connectionId)
           
 String getGoal(int connectionId, String iri)
           
 String getMediator(int connectionId, String iriAsString)
           
 String getOntology(int connectionId, String id)
           
 String getVersion(int connectionId)
           
 String getWebService(int connectionId, String iriAsString)
           
 boolean isAutoCommit(int connectionId)
           
 boolean isOpen(int connectionId)
           
 boolean isReadOnly(int connectionId)
           
 List<String> listGoals(int connectionId)
           
 List<String> listMediators(int connectionId)
           
 List<String> listOntologies(int connectionId)
           
 List<String> listWebServices(int connectionId)
           
 void rollback(int connectionId)
           
 void saveGoal(int connectionId, String goal)
           
 void saveMediator(int connectionId, String mediatorAsString)
           
 void saveOntology(int connectionId, String ontology)
           
 void saveWebService(int connectionId, String webServiceAsString)
           
 void setAutoCommit(int connectionId, boolean mode)
           
 void setDescription(int connectionId, String desc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmoConnectionServiceImpl

public WsmoConnectionServiceImpl()
Method Detail

evaluate

public String evaluate(int connectionId,
                       String query)
                throws MalformedQueryException,
                       NonExistingEntryException,
                       OrdiConfigurationException
Specified by:
evaluate in interface WsmoConnectionService
Throws:
MalformedQueryException
NonExistingEntryException
OrdiConfigurationException

getDescription

public String getDescription(int connectionId)
                      throws NonExistingEntryException
Specified by:
getDescription in interface WsmoConnectionService
Throws:
NonExistingEntryException

setDescription

public void setDescription(int connectionId,
                           String desc)
                    throws NonExistingEntryException
Specified by:
setDescription in interface WsmoConnectionService
Throws:
NonExistingEntryException

getVersion

public String getVersion(int connectionId)
                  throws SynchronisationException,
                         NonExistingEntryException
Specified by:
getVersion in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

addOntology

public void addOntology(int connectionId,
                        String ont)
                 throws SynchronisationException,
                        NonExistingEntryException,
                        UnmarshalException
Specified by:
addOntology in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

saveOntology

public void saveOntology(int connectionId,
                         String ontology)
                  throws SynchronisationException,
                         NonExistingEntryException,
                         UnmarshalException
Specified by:
saveOntology in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

getOntology

public String getOntology(int connectionId,
                          String id)
                   throws SynchronisationException,
                          NonExistingEntryException
Specified by:
getOntology in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

deleteOntology

public void deleteOntology(int connectionId,
                           String iriAsString)
                    throws SynchronisationException,
                           NonExistingEntryException
Specified by:
deleteOntology in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

listOntologies

public List<String> listOntologies(int connectionId)
                            throws SynchronisationException,
                                   NonExistingEntryException
Specified by:
listOntologies in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

addGoal

public void addGoal(int connectionId,
                    String goal)
             throws SynchronisationException,
                    UnmarshalException,
                    NonExistingEntryException
Specified by:
addGoal in interface WsmoConnectionService
Throws:
SynchronisationException
UnmarshalException
NonExistingEntryException

saveGoal

public void saveGoal(int connectionId,
                     String goal)
              throws SynchronisationException,
                     UnmarshalException,
                     NonExistingEntryException
Specified by:
saveGoal in interface WsmoConnectionService
Throws:
SynchronisationException
UnmarshalException
NonExistingEntryException

getGoal

public String getGoal(int connectionId,
                      String iri)
               throws SynchronisationException,
                      NonExistingEntryException
Specified by:
getGoal in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

deleteGoal

public void deleteGoal(int connectionId,
                       String iriAsString)
                throws SynchronisationException,
                       NonExistingEntryException
Specified by:
deleteGoal in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

listGoals

public List<String> listGoals(int connectionId)
                       throws SynchronisationException,
                              NonExistingEntryException
Specified by:
listGoals in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

addWebService

public void addWebService(int connectionId,
                          String webServiceAsString)
                   throws SynchronisationException,
                          NonExistingEntryException,
                          UnmarshalException
Specified by:
addWebService in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

saveWebService

public void saveWebService(int connectionId,
                           String webServiceAsString)
                    throws SynchronisationException,
                           NonExistingEntryException,
                           UnmarshalException
Specified by:
saveWebService in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

getWebService

public String getWebService(int connectionId,
                            String iriAsString)
                     throws SynchronisationException,
                            NonExistingEntryException
Specified by:
getWebService in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

deleteWebService

public void deleteWebService(int connectionId,
                             String iriAsString)
                      throws SynchronisationException,
                             NonExistingEntryException
Specified by:
deleteWebService in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

listWebServices

public List<String> listWebServices(int connectionId)
                             throws SynchronisationException,
                                    NonExistingEntryException
Specified by:
listWebServices in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

addMediator

public void addMediator(int connectionId,
                        String mediatorAsString)
                 throws SynchronisationException,
                        NonExistingEntryException,
                        UnmarshalException
Specified by:
addMediator in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

saveMediator

public void saveMediator(int connectionId,
                         String mediatorAsString)
                  throws SynchronisationException,
                         NonExistingEntryException,
                         UnmarshalException
Specified by:
saveMediator in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException
UnmarshalException

deleteMediator

public void deleteMediator(int connectionId,
                           String iriAsString)
                    throws SynchronisationException,
                           NonExistingEntryException
Specified by:
deleteMediator in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

getMediator

public String getMediator(int connectionId,
                          String iriAsString)
                   throws SynchronisationException,
                          NonExistingEntryException
Specified by:
getMediator in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

listMediators

public List<String> listMediators(int connectionId)
                           throws SynchronisationException,
                                  NonExistingEntryException
Specified by:
listMediators in interface WsmoConnectionService
Throws:
SynchronisationException
NonExistingEntryException

isAutoCommit

public boolean isAutoCommit(int connectionId)
                     throws NonExistingEntryException
Specified by:
isAutoCommit in interface WsmoConnectionService
Throws:
NonExistingEntryException

setAutoCommit

public void setAutoCommit(int connectionId,
                          boolean mode)
                   throws ORDIException,
                          NonExistingEntryException
Specified by:
setAutoCommit in interface WsmoConnectionService
Throws:
ORDIException
NonExistingEntryException

rollback

public void rollback(int connectionId)
              throws ORDIException,
                     NonExistingEntryException
Specified by:
rollback in interface WsmoConnectionService
Throws:
ORDIException
NonExistingEntryException

commit

public void commit(int connectionId)
            throws ORDIException,
                   NonExistingEntryException
Specified by:
commit in interface WsmoConnectionService
Throws:
ORDIException
NonExistingEntryException

isReadOnly

public boolean isReadOnly(int connectionId)
                   throws NonExistingEntryException
Specified by:
isReadOnly in interface WsmoConnectionService
Throws:
NonExistingEntryException

isOpen

public boolean isOpen(int connectionId)
               throws NonExistingEntryException
Specified by:
isOpen in interface WsmoConnectionService
Throws:
NonExistingEntryException

close

public void close(int connectionId)
           throws ORDIException,
                  NonExistingEntryException
Specified by:
close in interface WsmoConnectionService
Throws:
ORDIException
NonExistingEntryException

clearWarnings

public void clearWarnings(int connectionId)
                   throws NonExistingEntryException
Specified by:
clearWarnings in interface WsmoConnectionService
Throws:
NonExistingEntryException


Copyright © 2008. All Rights Reserved.