com.ontotext.ordi.wsmo4rdf.remote.server
Interface WsmoSourceService

All Known Implementing Classes:
WsmoSourceServiceImpl

public interface WsmoSourceService

Provides functionality of a WsmoSource remotely. An integer identifier specifies which WsmoSource instance is used.

Author:
mihail.konstantinov@ontotext.com
See Also:
WsmoSource

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 getConnection(int) but requires authentication
 void shutdown(int wsmoSourceId)
           
 

Method Detail

getConnection

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

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

getConnectionAuth

int getConnectionAuth(int wsmoSourceId,
                      String user,
                      String pass)
                      throws ServiceLimitExceededException,
                             NonExistingEntryException,
                             AuthenticationFailedException
Same as getConnection(int) but requires authentication

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:
ServiceLimitExceededException - if no more WsmoConnections could be handled
NonExistingEntryException - if WsmoSource instance with the given identifier does not exist
AuthenticationFailedException - if user was not authenticated with these credentials

clearWarnings

void clearWarnings(int wsmoSourceId)
                   throws NonExistingEntryException
Throws:
NonExistingEntryException

shutdown

void shutdown(int wsmoSourceId)
              throws NonExistingEntryException
Throws:
NonExistingEntryException


Copyright © 2008. All Rights Reserved.