wt.federation
Interface Federated

All Known Implementing Classes:
ProxyDocument, ProxyDocumentMaster, ProxyGroup, ProxyPartMaster, ProxyURLData, ProxyUser

public interface Federated



Supported API: true

Extendable: false


Field Summary
static String SERVICE_ID
          Label for the attribute.
 
Method Summary
 QueryResult findLinks(Class targetLinkClass, String obj1Role, Persistable obj2)
          Return all link objects that exist between the Federated object and the specified source object.
 FederatedService getService()
          Return the service object referenced by the serviceId attribute.
 ServiceIdentifier getServiceId()
          Gets the object for the association that plays role: SERVICE_ID.
 QueryResult navigate(String role, Class linkClass, boolean onlyOtherSide)
          Return objects related to this federated source object given a role and link class.
 QueryResult navigate(String role, QuerySpec criteria, boolean onlyOtherSide)
          Return objects related to this federated source object given a role and link selection crtieria.
 void postStore()
          The persistence manager calls this method just after storing the proxy object in the database.
 void prepareForStore()
          The persistence manager calls this method just before storing the proxy object in the database.
 void preset()
          This method is called when a proxy object is first created by a service, just after the object is instantiated and its readExternal method has been called to populate its properties from attributes obtained from the remote information source.
 void refresh()
          Refresh the derived attributes of the object.
 void refreshIfStale()
          Refresh the derived attributes of the object, but only if the properties are stale.
 void setServiceId(ServiceIdentifier a_ServiceId)
          Sets the object for the association that plays role: SERVICE_ID.
 void update()
          Update the derived attributes of the object on the source service.
 

Field Detail

SERVICE_ID

static final String SERVICE_ID
Label for the attribute.

Supported API: true

See Also:
Constant Field Values
Method Detail

getServiceId

ServiceIdentifier getServiceId()
Gets the object for the association that plays role: SERVICE_ID.

Supported API: true

Returns:
ServiceIdentifier

setServiceId

void setServiceId(ServiceIdentifier a_ServiceId)
                  throws WTPropertyVetoException
Sets the object for the association that plays role: SERVICE_ID.

Supported API: true

Parameters:
a_ServiceId -
Throws:
WTPropertyVetoException

getService

FederatedService getService()
                            throws wt.federation.FederationServicesException
Return the service object referenced by the serviceId attribute.

Supported API: true

Returns:
FederatedService
Throws:
wt.federation.FederationServicesException

preset

void preset()
            throws wt.federation.FederationServicesException
This method is called when a proxy object is first created by a service, just after the object is instantiated and its readExternal method has been called to populate its properties from attributes obtained from the remote information source. This method allows the proxy object to do further class-specific initialization.

Supported API: true

Throws:
wt.federation.FederationServicesException

refresh

void refresh()
             throws wt.federation.FederationServicesException
Refresh the derived attributes of the object.

Supported API: true

Throws:
wt.federation.FederationServicesException

refreshIfStale

void refreshIfStale()
                    throws wt.federation.FederationServicesException
Refresh the derived attributes of the object, but only if the properties are stale.

Supported API: true

Throws:
wt.federation.FederationServicesException

update

void update()
            throws wt.federation.FederationServicesException
Update the derived attributes of the object on the source service.

Supported API: true

Throws:
wt.federation.FederationServicesException

prepareForStore

void prepareForStore()
                     throws wt.federation.FederationServicesException
The persistence manager calls this method just before storing the proxy object in the database. This gives the object an opportunity to make associated proxy objects persistent, if necessary.

Supported API: true

Throws:
wt.federation.FederationServicesException

findLinks

QueryResult findLinks(Class targetLinkClass,
                      String obj1Role,
                      Persistable obj2)
                      throws wt.federation.FederationServicesException
Return all link objects that exist between the Federated object and the specified source object.

Supported API: true

Parameters:
targetLinkClass -
obj1Role -
obj2 -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

navigate

QueryResult navigate(String role,
                     Class linkClass,
                     boolean onlyOtherSide)
                     throws wt.federation.FederationServicesException
Return objects related to this federated source object given a role and link class. Return only the related objects themselves if specified. Otherwise, return both the related objects as well as the link objects that associate them with the source object.

Supported API: true

Parameters:
role -
linkClass -
onlyOtherSide -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

navigate

QueryResult navigate(String role,
                     QuerySpec criteria,
                     boolean onlyOtherSide)
                     throws wt.federation.FederationServicesException
Return objects related to this federated source object given a role and link selection crtieria. Return only the related objects themselves if specified. Otherwise, return both the related objects as well as the link objects that associate them with the source object.

Supported API: true

Parameters:
role -
criteria -
onlyOtherSide -
Returns:
QueryResult
Throws:
wt.federation.FederationServicesException

postStore

void postStore()
               throws wt.federation.FederationServicesException
The persistence manager calls this method just after storing the proxy object in the database. This gives the object an opportunity to make associated objects persistent, if necessary. For example, links between the proxy object and other objects need to be persisted after the proxy object is persisted.

Supported API: true

Throws:
wt.federation.FederationServicesException