wt.federation
Interface FederationServiceSvr

All Known Implementing Classes:
StandardFederationService

public interface FederationServiceSvr

FederationServiceSvr provides methods to federation services that can only be invoked from classes running on the server. These methods are executed on the server side.

Supported API: true

Extendable: false


Method Summary
 Persistable checkFreshness(Persistable obj)
          Determines whether the specified object is an expired or stale proxy.
 QueryResult checkFreshness(QueryResult qr)
          Traverses a QueryResult and determines whether any of the objects contained within it are expired or stale proxies.
 InputStream invokeInfoEngineTemplate(String url)
          Sends a request to Info*Engine to execute the specified template.
 InputStream invokeInfoEngineTemplate(String url, Hashtable params)
          Sends a request to Info*Engine to execute the specified template, optionally providing parameters in URL-encoded form data.
 void refresh(Federated proxy)
          Refreshes the properties of a proxy object.
 void refreshIfStale(Federated proxy)
          Refreshes the properties of a proxy object, but only if the object is stale.
 void sendFeedback(MethodFeedback feedbackObject)
          Sends Feedback objects to the client.
 

Method Detail

checkFreshness

Persistable checkFreshness(Persistable obj)
                           throws wt.federation.FederationServicesException
Determines whether the specified object is an expired or stale proxy. Refreshes it immediately if it is an expired proxy. Enqueues a request to refresh the object if it is a stale but not expired proxy. Otherwise, returns the object as is.

Supported API: true

Parameters:
obj - the object to be checked.
Returns:
Persistable
Throws:
wt.federation.FederationServicesException

checkFreshness

QueryResult checkFreshness(QueryResult qr)
                           throws wt.federation.FederationServicesException
Traverses a QueryResult and determines whether any of the objects contained within it are expired or stale proxies. Refreshes all expired proxies immediately, and enqueues requests to refresh stale ones that haven't expired.

Supported API: true

Parameters:
qr - the QueryResult to be checked.
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

invokeInfoEngineTemplate

InputStream invokeInfoEngineTemplate(String url)
                                     throws wt.federation.FederationServicesException
Sends a request to Info*Engine to execute the specified template.

Supported API: true

Parameters:
url - the URL identifying the template to be executed.
Returns:
InputStream
Throws:
wt.federation.FederationServicesException

invokeInfoEngineTemplate

InputStream invokeInfoEngineTemplate(String url,
                                     Hashtable params)
                                     throws wt.federation.FederationServicesException
Sends a request to Info*Engine to execute the specified template, optionally providing parameters in URL-encoded form data.

Supported API: true

Parameters:
url - the URL identifying the template to be executed.
params - Hashtable of parameters to be sent as form data.
Returns:
InputStream
Throws:
wt.federation.FederationServicesException

refresh

void refresh(Federated proxy)
             throws wt.federation.FederationServicesException
Refreshes the properties of a proxy object.

Supported API: true

Parameters:
proxy - the proxy object to be refreshed.
Throws:
wt.federation.FederationServicesException

refreshIfStale

void refreshIfStale(Federated proxy)
                    throws wt.federation.FederationServicesException
Refreshes the properties of a proxy object, but only if the object is stale.

Supported API: true

Parameters:
proxy - the proxy object to be refreshed.
Throws:
wt.federation.FederationServicesException

sendFeedback

void sendFeedback(MethodFeedback feedbackObject)
                  throws wt.federation.FederationServicesException
Sends Feedback objects to the client.

Supported API: true

Parameters:
feedbackObject - Required. The feedback object to be sent to the client.
Throws:
wt.federation.FederationServicesException