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

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

public class WsmoSourceServiceImpl
extends Object
implements WsmoSourceService


Constructor Summary
WsmoSourceServiceImpl()
           
 
Method Summary
 void clearWarnings(int wsmoSourceId)
           
 int getConnection(int wsmoSourceId)
          Creates locally a new WsmoConnection for a given WsmoSource and returns a unique integer identifier for later reference to this connection.
 int getConnectionAuth(int wsmoSourceId, String user, String pass)
          Same as WsmoSourceService.getConnection(int) but requires authentication
 void shutdown(int wsmoSourceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsmoSourceServiceImpl

public WsmoSourceServiceImpl()
Method Detail

getConnection

public int getConnection(int wsmoSourceId)
                  throws NonExistingEntryException,
                         ServiceLimitExceededException
Description copied from interface: WsmoSourceService
Creates locally a new WsmoConnection for a given WsmoSource and returns a unique integer identifier for later reference to this connection.

Specified by:
getConnection in interface WsmoSourceService
Parameters:
wsmoSourceId - integer identifier of existing WsmoSource instance
Returns:
integer identifier of the created WsmoConnection
Throws:
NonExistingEntryException - if WsmoSource instance with the given identifier does not exist
ServiceLimitExceededException - if no more WsmoConnections could be handled

getConnectionAuth

public int getConnectionAuth(int wsmoSourceId,
                             String user,
                             String pass)
                      throws NonExistingEntryException,
                             ServiceLimitExceededException,
                             AuthenticationFailedException
Description copied from interface: WsmoSourceService
Same as WsmoSourceService.getConnection(int) but requires authentication

Specified by:
getConnectionAuth in interface WsmoSourceService
Parameters:
wsmoSourceId - integer identifier of existing WsmoSource instance
user - String of the username part of the credentials
pass - String of the password part of the credentials
Returns:
integer identifier of the created WsmoConnection
Throws:
NonExistingEntryException - if WsmoSource instance with the given identifier does not exist
ServiceLimitExceededException - if no more WsmoConnections could be handled
AuthenticationFailedException - if user was not authenticated with these credentials

clearWarnings

public void clearWarnings(int wsmoSourceId)
                   throws NonExistingEntryException
Specified by:
clearWarnings in interface WsmoSourceService
Throws:
NonExistingEntryException

shutdown

public void shutdown(int wsmoSourceId)
              throws NonExistingEntryException
Specified by:
shutdown in interface WsmoSourceService
Throws:
NonExistingEntryException


Copyright © 2008. All Rights Reserved.