Package wt.federation
Interface FederationService
- All Known Implementing Classes:
StandardFederationService
FederationService provides client invokable methods to federation services.
These methods are executed on the server side.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionfindObjects(QuerySpec qs) Sends a query to all federated services, and returns the merged set of results.findObjects(QuerySpec qs, String serviceName) Sends a query to the specified federated service, and returns the results.findObjects(QuerySpec qs, String[] serviceNames) Sends a query to each of the specified federated services, and returns the merged set of results.findObjects(QuerySpec qs, String[] serviceNames, boolean searchLocalDB) Sends a query to each of the specified federated services, and returns the merged set of results.String[]Returns an array of the names of all known federated services.String[]getNavigableServices(String linkClassName) Returns an array of the names of federated services that support navigating a specified link class.getPersistentInstance(Federated proxy) Returns a persisted instance of the specified proxy object or null if the proxy has no persisted instance.String[]getQueryableServices(String className) Returns an array of the names of federated services that support querying a specified class.Sends a request to Info*Engine to retrieve objects associated with the specified URL.storeProxy(Federated proxy) Stores a proxy object in the persistent data service.voidsyncObjects(Externalizable source, Externalizable target) Copies the properties of a specified source object to a target object.
-
Method Details
-
findObjects
Sends a query to all federated services, and returns the merged set of results.
Supported API: true- Parameters:
qs- the search criteria to use for the query.- Returns:
- QueryResult
- Throws:
FederationServicesExceptionWTException
-
findObjects
QueryResult findObjects(QuerySpec qs, String serviceName) throws FederationServicesException, WTException Sends a query to the specified federated service, and returns the results.
Supported API: true- Parameters:
qs- the search criteria to use for the query.serviceName- the name of the federated service to be queried.- Returns:
- QueryResult
- Throws:
FederationServicesExceptionWTException
-
findObjects
QueryResult findObjects(QuerySpec qs, String[] serviceNames) throws FederationServicesException, WTException Sends a query to each of the specified federated services, and returns the merged set of results.
Supported API: true- Parameters:
qs- the search criteria to use for the query.serviceNames- the names of the federated services to be queried.- Returns:
- QueryResult
- Throws:
FederationServicesExceptionWTException
-
findObjects
QueryResult findObjects(QuerySpec qs, String[] serviceNames, boolean searchLocalDB) throws FederationServicesException, WTException Sends a query to each of the specified federated services, and returns the merged set of results. If searchLocalDB is true, also queries the local system and includes any locally defined entries in the search results.
Supported API: true- Parameters:
qs- the search criteria to use for the query.serviceNames- the names of the federated services to be queried.searchLocalDB- set to true if the local system should be queried.- Returns:
- QueryResult
- Throws:
FederationServicesExceptionWTException
-
getAllServices
Returns an array of the names of all known federated services.
Supported API: true- Returns:
- String []
- Throws:
FederationServicesExceptionWTException
-
getPersistentInstance
Returns a persisted instance of the specified proxy object or null if the proxy has no persisted instance.
Supported API: true- Parameters:
proxy- the proxy object.- Returns:
- Persistable
- Throws:
FederationServicesExceptionWTException
-
getQueryableServices
Returns an array of the names of federated services that support querying a specified class.
Supported API: true- Parameters:
className- the name of the class for which querying is desired.- Returns:
- String []
- Throws:
FederationServicesExceptionWTException
-
retrieveInfoEngineObjects
Sends a request to Info*Engine to retrieve objects associated with the specified URL.
Supported API: true- Parameters:
url- the URL identifying the objects to be retrieved.- Returns:
- Vector
- Throws:
FederationServicesExceptionWTException
-
storeProxy
Stores a proxy object in the persistent data service.
Supported API: true- Parameters:
proxy- the object to be persisted.- Returns:
- Federated
- Throws:
FederationServicesExceptionWTException
-
syncObjects
void syncObjects(Externalizable source, Externalizable target) throws FederationServicesException, WTException Copies the properties of a specified source object to a target object.
Supported API: true- Parameters:
source- the source object.target- the target object.- Throws:
FederationServicesExceptionWTException
-