|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.fc.Item
wt.federation.FederatedDirectoryService
public class FederatedDirectoryService
This class implements a Federated interface to directory services such as LDAP-accessible directory services.
Use the newFederatedDirectoryService static factory method(s),
not the FederatedDirectoryService constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: true
Extendable: false
| Field Summary | |
|---|---|
static String |
DIRECTORY_ACCESS_CREDENTIALS
Label for the attribute. |
static String |
DIRECTORY_ACCESS_DN
Label for the attribute. |
static String |
INITIAL_CONTEXT_FACTORY
Label for the attribute. |
| Fields inherited from interface wt.federation.FederatedService |
|---|
SERVICE_NAME |
| Method Summary | |
|---|---|
Object |
createObject(Class objectClass,
String sourceObjectId,
Hashtable attributes)
Create a new object in a remote information service. |
void |
deleteObject(String sourceObjectId)
Delete the specified object managed by this federated service. |
QueryResult |
findDirectoryObjects(String url)
Search the directory service for entries matching the criteria specified in the given LDAP url, and return a QueryResult containing objects corresponding to the matching entries. |
QueryResult |
findDirectoryObjects(String filterName,
Hashtable filterArguments)
Search the directory service for entries matching the specified filter, and return a QueryResult containing objects corresponding to the matching entries. |
QueryResult |
findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2)
Return all link objects in this service that exist between two specified source objects. |
QueryResult |
findObjects(QuerySpec criteria)
Retrieve objects from this federated service using the specified selection criteria. |
String |
getActionURL(String actionName,
Hashtable arguments)
Returns the URL associated with the specified action and set of named arguments. |
Object |
getDirectoryAccessCredentials()
Gets the value of the attribute: DIRECTORY_ACCESS_CREDENTIALS. |
String |
getDirectoryAccessDN()
Gets the value of the attribute: DIRECTORY_ACCESS_DN. |
String |
getInitialContextFactory()
Gets the value of the attribute: INITIAL_CONTEXT_FACTORY. |
String |
getServiceName()
Gets the value of the attribute: SERVICE_NAME. |
Enumeration |
getSupportedLinkClasses()
Return the enumeration of link class names for which this service supports navigation. |
Enumeration |
getSupportedObjectClasses()
Return the enumeration of class names for which this service supports queries. |
DirectoryTranslationTable |
getTranslationTable()
Return an instance of the attribute translation table referenced by this directory service. |
protected void |
initialize()
Supports initialization, following construction of an instance. |
protected void |
initialize(String serviceName)
Supports initialization, following construction of an instance. |
protected void |
initialize(String serviceName,
String serviceURL,
String searchBase,
String translationTableName)
Supports initialization, following construction of an instance. |
protected void |
initialize(String serviceName,
String serviceURL,
String searchBase,
String translationTableName,
String initialContextFactory)
Supports initialization, following construction of an instance. |
boolean |
isNavigationSupported(Class linkClass)
Return true if the named class is defined in the table of supported link classes for this federated service. |
boolean |
isQuerySupported(Class objectClass)
Return true if the named class is defined in the table of supported object classes for this federated service. |
QueryResult |
navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide)
Return objects from this federated service related to the specified source object given a role and link class. |
QueryResult |
navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide)
Return objects from this federated service related to the specified source object given a role and link selection crtieria. |
static FederatedDirectoryService |
newFederatedDirectoryService()
Constructor returning an instance initialized with default property values. |
static FederatedDirectoryService |
newFederatedDirectoryService(String serviceName)
Constructor returning an instance initialized with a specified service name, default initial context factory, and no directory attribute translation table. |
static FederatedDirectoryService |
newFederatedDirectoryService(String serviceName,
String serviceURL,
String searchBase,
String translationTableName)
Constructor returning an instance initialized with a specified service name, base service URL, directory search base, and translation table name. |
static FederatedDirectoryService |
newFederatedDirectoryService(String serviceName,
String serviceURL,
String searchBase,
String translationTableName,
String initialContextFactory)
Constructor returning an instance initialized with a specified service name, base service URL, directory search base, translation table name, and initial directory context factory value. |
void |
purgeCaches()
Purge any caches that might be kept by the service. |
void |
refreshDirectoryObject(Federated proxy)
Refreshes the derived properties of a specified proxy object. |
void |
refreshObject(Federated proxy)
Refresh the properties of a proxy object that are derived from a remote object. |
Hashtable |
retrieveAttributes(String sourceObjectId)
Supported API: true |
Hashtable |
retrieveDirectoryAttributes(String distinguishedName)
Return a Hashtable containing all of the directory attributes read from the specified directory entry. |
Object |
retrieveDirectoryObject(String distinguishedName)
Returns a Federated instance of the directory object identified by the specified distinguished name. |
Object |
retrieveObject(String sourceObjectId)
Returns a Federated instance of the remote object identified by the specified source object identifier. |
void |
setDirectoryAccessCredentials(Object a_DirectoryAccessCredentials)
Sets the value of the attribute: DIRECTORY_ACCESS_CREDENTIALS. |
void |
setDirectoryAccessDN(String a_DirectoryAccessDN)
Sets the value of the attribute: DIRECTORY_ACCESS_DN. |
void |
setInitialContextFactory(String a_InitialContextFactory)
Sets the value of the attribute: INITIAL_CONTEXT_FACTORY. |
void |
setServiceName(String a_ServiceName)
Sets the value of the attribute: SERVICE_NAME. |
void |
updateObject(String sourceObjectId,
Hashtable updateAttributes,
Vector deleteAttributes)
Update the attributes of a specified remote object. |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String INITIAL_CONTEXT_FACTORY
public static final String DIRECTORY_ACCESS_DN
public static final String DIRECTORY_ACCESS_CREDENTIALS
| Method Detail |
|---|
public String getInitialContextFactory()
public void setInitialContextFactory(String a_InitialContextFactory)
a_InitialContextFactory - public String getDirectoryAccessDN()
public void setDirectoryAccessDN(String a_DirectoryAccessDN)
a_DirectoryAccessDN - public Object getDirectoryAccessCredentials()
public void setDirectoryAccessCredentials(Object a_DirectoryAccessCredentials)
a_DirectoryAccessCredentials -
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName,
String serviceURL,
String searchBase,
String translationTableName)
throws wt.federation.FederationServicesException
serviceName - serviceURL - searchBase - translationTableName -
wt.federation.FederationServicesException
protected void initialize(String serviceName,
String serviceURL,
String searchBase,
String translationTableName)
throws wt.federation.FederationServicesException
serviceName - serviceURL - searchBase - translationTableName -
wt.federation.FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName,
String serviceURL,
String searchBase,
String translationTableName,
String initialContextFactory)
throws wt.federation.FederationServicesException
serviceName - serviceURL - searchBase - translationTableName - initialContextFactory -
wt.federation.FederationServicesException
protected void initialize(String serviceName,
String serviceURL,
String searchBase,
String translationTableName,
String initialContextFactory)
throws wt.federation.FederationServicesException
serviceName - serviceURL - searchBase - translationTableName - initialContextFactory -
wt.federation.FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName)
throws wt.federation.FederationServicesException
serviceName -
wt.federation.FederationServicesException
protected void initialize(String serviceName)
throws wt.federation.FederationServicesException
serviceName -
wt.federation.FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
public Object retrieveDirectoryObject(String distinguishedName)
throws wt.federation.FederationServicesException,
WTException
distinguishedName -
wt.federation.FederationServicesException
WTException
public void refreshDirectoryObject(Federated proxy)
throws wt.federation.FederationServicesException,
WTException
proxy -
wt.federation.FederationServicesException
WTException
public QueryResult findDirectoryObjects(String filterName,
Hashtable filterArguments)
throws wt.federation.FederationServicesException,
WTException
filterName - filterArguments -
wt.federation.FederationServicesException
WTException
public QueryResult findDirectoryObjects(String url)
throws wt.federation.FederationServicesException,
WTException
url -
wt.federation.FederationServicesException
WTException
public DirectoryTranslationTable getTranslationTable()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
public Hashtable retrieveDirectoryAttributes(String distinguishedName)
throws wt.federation.FederationServicesException,
WTException
distinguishedName -
wt.federation.FederationServicesException
WTExceptionpublic String getServiceName()
getServiceName in interface FederatedServicepublic void setServiceName(String a_ServiceName)
setServiceName in interface FederatedServicea_ServiceName -
public String getActionURL(String actionName,
Hashtable arguments)
throws wt.federation.FederationServicesException
getActionURL in interface FederatedServiceactionName - arguments -
wt.federation.FederationServicesException
public Object retrieveObject(String sourceObjectId)
throws wt.federation.FederationServicesException
retrieveObject in interface FederatedServicesourceObjectId -
wt.federation.FederationServicesException
public Hashtable retrieveAttributes(String sourceObjectId)
throws wt.federation.FederationServicesException
retrieveAttributes in interface FederatedServicesourceObjectId -
wt.federation.FederationServicesException
public void refreshObject(Federated proxy)
throws wt.federation.FederationServicesException
refreshObject in interface FederatedServiceproxy -
wt.federation.FederationServicesException
public Object createObject(Class objectClass,
String sourceObjectId,
Hashtable attributes)
throws wt.federation.FederationServicesException
createObject in interface FederatedServiceobjectClass - sourceObjectId - attributes -
wt.federation.FederationServicesException
public void updateObject(String sourceObjectId,
Hashtable updateAttributes,
Vector deleteAttributes)
throws wt.federation.FederationServicesException
updateObject in interface FederatedServicesourceObjectId - updateAttributes - deleteAttributes -
wt.federation.FederationServicesException
public void deleteObject(String sourceObjectId)
throws wt.federation.FederationServicesException
deleteObject in interface FederatedServicesourceObjectId -
wt.federation.FederationServicesException
public QueryResult findObjects(QuerySpec criteria)
throws wt.federation.FederationServicesException
findObjects in interface FederatedServicecriteria -
wt.federation.FederationServicesException
public QueryResult findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2)
throws wt.federation.FederationServicesException
findObjects in interface FederatedServicetargetLinkClass - obj1 - obj1Role - obj2 -
wt.federation.FederationServicesException
public QueryResult navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide)
throws wt.federation.FederationServicesException
navigate in interface FederatedServiceobj - role - linkClass - onlyOtherSide -
wt.federation.FederationServicesException
public QueryResult navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide)
throws wt.federation.FederationServicesException
navigate in interface FederatedServiceobj - role - criteria - onlyOtherSide -
wt.federation.FederationServicesException
public Enumeration getSupportedObjectClasses()
throws wt.federation.FederationServicesException
getSupportedObjectClasses in interface FederatedServicewt.federation.FederationServicesException
public Enumeration getSupportedLinkClasses()
throws wt.federation.FederationServicesException
getSupportedLinkClasses in interface FederatedServicewt.federation.FederationServicesException
public boolean isQuerySupported(Class objectClass)
throws wt.federation.FederationServicesException
isQuerySupported in interface FederatedServiceobjectClass -
wt.federation.FederationServicesException
public boolean isNavigationSupported(Class linkClass)
throws wt.federation.FederationServicesException
isNavigationSupported in interface FederatedServicelinkClass -
wt.federation.FederationServicesException
public void purgeCaches()
throws wt.federation.FederationServicesException
purgeCaches in interface FederatedServicewt.federation.FederationServicesException
protected void initialize()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||