|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.FederationServiceFwd
FederationService provides client invokable methods to federation services.
These methods are executed on the server side.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
FederationServiceFwd()
|
Method Summary | |
Federated |
createProxy(Federated proxy)
Creates a proxy object (for migration of LDAP WTUsers to ProxyUsers). |
Group |
doAction(String action,
Object[][] argv,
FeedbackSpec feedbackSpec)
Executes one or more Info*Engine tasks selected by a logical action name, and the types and physical locations of a specific set of objects passed as parameters. |
QueryResult |
findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2)
Returns all link objects that exist between two specified source objects in all known services. |
QueryResult |
findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2,
Enumeration services)
Returns all link objects that exist between two specified source objects in a specified set of services. |
QueryResult |
findObjects(QuerySpec qs)
Sends a query to all federated services, and returns the merged set of results. |
QueryResult |
findObjects(QuerySpec qs,
Enumeration services,
boolean searchLocalDB)
Sends a query to each of the specified federated services, and returns the merged set of results. |
QueryResult |
findObjects(QuerySpec qs,
String serviceName)
Sends a query to the specified federated service, and returns the results. |
QueryResult |
findObjects(QuerySpec qs,
String[] serviceNames)
Sends a query to each of the specified federated services, and returns the merged set of results. |
QueryResult |
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[] |
getAllServices()
Returns an array of the names of all known federated services. |
Federatable |
getLocalObject(String remoteObjId,
String repositoryName)
Retrieves the local object with the given remote object identifier in the given repository. |
private static Manager |
getManager()
|
String[] |
getNavigableServices(String linkClassName)
Returns an array of the names of federated services that support navigating a specified link class. |
Persistable |
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. |
FederatedService |
getService(Federated proxy)
Returns an instance of the FederatedService object referenced by the serviceId attribute of the specified proxy object. |
Ufid |
getUfid(Federatable object)
Retrieves the ufid for the Federatable object. |
QueryResult |
navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide)
Returns objects associated with the specified source object in all known services given a role and a link class. |
QueryResult |
navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide,
Enumeration services)
Returns objects associated with the specified source object in the specified list of services given a role and a link class. |
QueryResult |
navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide)
Returns objects associated with the specified source object in all known services given a role and selection critieria. |
QueryResult |
navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide,
Enumeration services)
Returns objects associated with the specified source object in the specified list of services given a role and selection critieria. |
Vector |
retrieveInfoEngineObjects(String url)
Sends a request to Info*Engine to retrieve objects associated with the specified URL. |
Federated |
storeProxy(Federated proxy)
Stores a proxy object in the persistent data service. |
void |
storeUfid(Federatable object,
String remoteId,
String location)
Stores a ufid for the given Federatable. |
void |
syncObjects(Externalizable source,
Externalizable target)
Copies the properties of a specified source object to a target object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public FederationServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public Federated createProxy(Federated proxy) throws FederationServicesException, WTException
createProxy
in interface FederationService
proxy
- the object to be persisted.
FederationServicesException
WTException
public Group doAction(String action, Object[][] argv, FeedbackSpec feedbackSpec) throws FederationServicesException, WTException
See the FederationHelper class doAction() method for a complete description.
Supported API: false
doAction
in interface FederationService
action
- The action to perform.argv
- Variable argument list.feedbackSpec
- The feedback specification object.
FederationServicesException
WTException
public QueryResult findObjects(QuerySpec qs) throws FederationServicesException, WTException
findObjects
in interface FederationService
qs
- the search criteria to use for the query.
FederationServicesException
WTException
public QueryResult findObjects(QuerySpec qs, String serviceName) throws FederationServicesException, WTException
findObjects
in interface FederationService
qs
- the search criteria to use for the query.serviceName
- the name of the federated service to be queried.
FederationServicesException
WTException
public QueryResult findObjects(QuerySpec qs, String[] serviceNames) throws FederationServicesException, WTException
findObjects
in interface FederationService
qs
- the search criteria to use for the query.serviceNames
- the names of the federated services to be queried.
FederationServicesException
WTException
public QueryResult findObjects(QuerySpec qs, String[] serviceNames, boolean searchLocalDB) throws FederationServicesException, WTException
findObjects
in interface FederationService
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.
FederationServicesException
WTException
public QueryResult findObjects(QuerySpec qs, Enumeration services, boolean searchLocalDB) throws FederationServicesException, WTException
findObjects
in interface FederationService
qs
- the search criteria to use for the query.services
- an enumeration of the federated services to be queried.searchLocalDB
- set to true if the local system should be queried.
FederationServicesException
WTException
public QueryResult findObjects(Class targetLinkClass, Persistable obj1, String obj1Role, Persistable obj2) throws FederationServicesException, WTException
findObjects
in interface FederationService
targetLinkClass
- the object class defining the association type.obj1
- the first object.obj1Role
- the role played by the first object in the association.obj2
- the second object.
FederationServicesException
WTException
public QueryResult findObjects(Class targetLinkClass, Persistable obj1, String obj1Role, Persistable obj2, Enumeration services) throws FederationServicesException, WTException
findObjects
in interface FederationService
targetLinkClass
- the object class defining the association type.obj1
- the first object.obj1Role
- the role played by the first object in the association.obj2
- the second object.services
- the set of services to query.
FederationServicesException
WTException
public String[] getAllServices() throws FederationServicesException, WTException
getAllServices
in interface FederationService
FederationServicesException
WTException
public String[] getNavigableServices(String linkClassName) throws FederationServicesException, WTException
getNavigableServices
in interface FederationService
linkClassName
- the name of the class for which navigation is desired.
FederationServicesException
WTException
public Persistable getPersistentInstance(Federated proxy) throws FederationServicesException, WTException
getPersistentInstance
in interface FederationService
proxy
- the proxy object.
FederationServicesException
WTException
public String[] getQueryableServices(String className) throws FederationServicesException, WTException
getQueryableServices
in interface FederationService
className
- the name of the class for which querying is desired.
FederationServicesException
WTException
public FederatedService getService(Federated proxy) throws FederationServicesException, WTException
getService
in interface FederationService
proxy
- the proxy object.
FederationServicesException
WTException
public QueryResult navigate(Persistable obj, String role, Class linkClass, boolean onlyOtherSide) throws FederationServicesException, WTException
navigate
in interface FederationService
obj
- the object for which associated objects are to be returned.role
- the role played in the association by the objects being sought.linkClass
- the link class defining the type of association.onlyOtherSide
- true if only associated objects should be returned, and false if link objects should be returned too.
FederationServicesException
WTException
public QueryResult navigate(Persistable obj, String role, Class linkClass, boolean onlyOtherSide, Enumeration services) throws FederationServicesException, WTException
navigate
in interface FederationService
obj
- the object for which associated objects are to be returned.role
- the role played in the association by the objects being sought.linkClass
- the link class defining the type of association.onlyOtherSide
- true if only associated objects should be returned, and false if link objects should be returned too.services
- an enumeration of the service objects for the services to be queried.
FederationServicesException
WTException
public QueryResult navigate(Persistable obj, String role, QuerySpec criteria, boolean onlyOtherSide) throws FederationServicesException, WTException
navigate
in interface FederationService
obj
- the object for which associated objects are to be returned.role
- the role played in the association by the objects being sought.criteria
- the selection criteria specifying the type of association.onlyOtherSide
- true if only associated objects should be returned, and false if link objects should be returned too.
FederationServicesException
WTException
public QueryResult navigate(Persistable obj, String role, QuerySpec criteria, boolean onlyOtherSide, Enumeration services) throws FederationServicesException, WTException
navigate
in interface FederationService
obj
- the object for which associated objects are to be returned.role
- the role played in the association by the objects being sought.criteria
- the selection criteria specifying the type of association.onlyOtherSide
- true if only associated objects should be returned, and false if link objects should be returned too.services
- an enumeration of the service objects for the services to be queried.
FederationServicesException
WTException
public Vector retrieveInfoEngineObjects(String url) throws FederationServicesException, WTException
retrieveInfoEngineObjects
in interface FederationService
url
- the URL identifying the objects to be retrieved.
FederationServicesException
WTException
public Federated storeProxy(Federated proxy) throws FederationServicesException, WTException
storeProxy
in interface FederationService
proxy
- the object to be persisted.
FederationServicesException
WTException
public void syncObjects(Externalizable source, Externalizable target) throws FederationServicesException, WTException
syncObjects
in interface FederationService
source
- the source object.target
- the target object.
FederationServicesException
WTException
public void storeUfid(Federatable object, String remoteId, String location) throws UfidException, WTException, IEException
storeUfid
in interface FederationService
object
- remoteId
- The unique identifier of the object on the remote system. For an object that resides in an LDAP directory, this will be something like "uid=fred".location
- Represents the name of the repository managing the Federatable. For an object managed by a JNDI adapter, the value of location should be the name of the adapter.
UfidException
WTException
IEException
public Ufid getUfid(Federatable object) throws WTException
getUfid
in interface FederationService
object
-
WTException
public Federatable getLocalObject(String remoteObjId, String repositoryName) throws WTException
getLocalObject
in interface FederationService
remoteObjId
- The unique identifier of the object on the remote system. For principal objects in an LDAP directory, the value of the remobeObjId will be something like "cn=fred".repositoryName
- The name of the repository where the remote object is managed.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |