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

All Known Implementing Classes:
RemoteFactoryImpl

public interface RemoteFactory

Provides for creation and destruction of local WsmoSource instances and their management by integer identifier.

Author:
mihail.konstantinov@ontotex.com

Method Summary
 boolean destroyWsmoSource(int wsmoSourceId)
          Destroys the local WsmoSource corresponding to the provided identifier.
 int getNewWsmoSource(String sourceName)
          Creates locally a new WsmoSource with an integer identifier to access it later.
 

Method Detail

getNewWsmoSource

int getNewWsmoSource(String sourceName)
                     throws ServiceLimitExceededException,
                            IllegalSourceNameException
Creates locally a new WsmoSource with an integer identifier to access it later.

Parameters:
sourceName - an alphanumeric name of the WsmoSource by which the client identifies sources persisted between 2 executions of ORDI-WS
Returns:
integer identifier of the created WsmoSource
Throws:
ServiceLimitExceededException - if no more WsmoSources could be handled
IllegalSourceNameException - if sourceName is not an alphanumeric string

destroyWsmoSource

boolean destroyWsmoSource(int wsmoSourceId)
Destroys the local WsmoSource corresponding to the provided identifier.

Parameters:
wsmoSourceId - integer identifier of a WsmoSource to be destroyed.
Returns:
true if a WsmoSource of the given identifier exists and was destroyed and false otherwise


Copyright © 2008. All Rights Reserved.