|
|||||||||||
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
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
Nested Class Summary | |
(package private) static class |
FederatedDirectoryService.ContextCloser
|
(package private) static class |
FederatedDirectoryService.ContextKey
|
Fields inherited from class wt.fc.Item |
VERSION_40_UID, VERSION_51_UID |
Fields inherited from class wt.fc.WTObject |
CREATE_TIMESTAMP, MODIFY_TIMESTAMP |
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Fields inherited from interface wt.federation.FederatedService |
ACTION_TABLE, FIND_ASSOCIATIONS_BY_CRITERIA, FIND_ASSOCIATIONS_BY_LINK_CLASS, FIND_OBJECTS, PROXY_EXPIRATION_INTERVAL, PROXY_REFRESH_INTERVAL, RETRIEVE_CONTENTLIST, RETRIEVE_MASTER, RETRIEVE_OBJECT, SERVICE_NAME, SERVICE_URL, TIGHTLY_COUPLED |
Fields inherited from interface wt.admin.DomainAdministered |
DOMAIN_REF, INHERITED_DOMAIN |
Fields inherited from interface wt.fc.Persistable |
IDENTITY, PERSIST_INFO, TYPE |
Fields inherited from interface wt.identity.DisplayIdentification |
DISPLAY_IDENTIFIER, DISPLAY_IDENTITY, DISPLAY_TYPE |
Constructor Summary | |
FederatedDirectoryService()
|
Method Summary | |
protected 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. |
protected 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. |
protected void |
_refreshDirectoryObject(Federated proxy)
Refreshes the derived properties of a specified proxy object. |
protected Hashtable |
_retrieveDirectoryAttributes(String distinguishedName)
Return a Hashtable containing all of the directory attributes read from the specified directory entry. |
protected Object |
_retrieveDirectoryObject(String distinguishedName)
Returns a Federated instance of the directory object identified by the specified distinguished name. |
private BinaryLink |
createLinkObject(Class linkClass,
Persistable obj1,
String obj1Role,
Persistable obj2)
Create a link object that associates two Persistables. |
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. |
boolean |
equals(Object obj)
Indicates whether the given object is equal to this object from a persistence perspective, by comparing the two objects ObjectIdentifier s. |
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. |
Hashtable |
getActionTable()
Gets the value of the attribute: ACTION_TABLE. |
String |
getActionURL(String actionName,
Hashtable arguments)
Returns the URL associated with the specified action and set of named arguments. |
String |
getActionURL(String actionName,
String sourceObjectId)
Returns the URL associated with the specified action and source object identifier. |
String |
getActionURLTemplate(String actionName)
Returns the URL template associated with the specified action. |
String |
getConceptualClassname()
Deprecated. |
Object |
getDirectoryAccessCredentials()
Gets the value of the attribute: DIRECTORY_ACCESS_CREDENTIALS. |
String |
getDirectoryAccessDN()
Gets the value of the attribute: DIRECTORY_ACCESS_DN. |
int |
getEntryCacheSize()
Gets the value of the attribute: ENTRY_CACHE_SIZE. |
long |
getEntryCacheTTL()
Gets the value of the attribute: ENTRY_CACHE_TTL. |
String |
getInitialContextFactory()
Gets the value of the attribute: INITIAL_CONTEXT_FACTORY. |
protected DirContext |
getInitialDirContext(String providerURL)
|
long |
getProxyExpirationInterval()
Gets the value of the attribute: PROXY_EXPIRATION_INTERVAL. |
long |
getProxyRefreshInterval()
Gets the value of the attribute: PROXY_REFRESH_INTERVAL. |
String |
getSearchBase()
Gets the value of the attribute: SEARCH_BASE. |
int |
getSearchResultsCacheSize()
Gets the value of the attribute: SEARCH_RESULTS_CACHE_SIZE. |
long |
getSearchResultsCacheTTL()
Gets the value of the attribute: SEARCH_RESULTS_CACHE_TTL. |
String |
getSearchScope()
Gets the value of the attribute: SEARCH_SCOPE. |
String |
getServiceName()
Gets the value of the attribute: SERVICE_NAME. |
String |
getServiceURL()
Gets the value of the attribute: SERVICE_URL. |
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. |
String |
getTranslationTableName()
Gets the value of the attribute: TRANSLATION_TABLE_NAME. |
int |
hashCode()
Returns a hash code for this object based upon its ObjectIdentifier . |
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. |
boolean |
isTightlyCoupled()
Gets the value of the attribute: TIGHTLY_COUPLED. |
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 |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
void |
readExternal(PersistentRetrieveIfc input)
Used by Persistent Data Service to populate the persistent attributes of this class from a persistent store. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(FederatedDirectoryService thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
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. |
private void |
searchBaseValidate(String a_SearchBase)
|
Enumeration |
searchDirectory(String url)
Search the directory service for entries matching the filter defined by the specified URL. |
private void |
searchScopeValidate(String a_SearchScope)
|
private void |
serviceURLValidate(String a_ServiceURL)
|
void |
setActionTable(Hashtable a_ActionTable)
Sets the value of the attribute: ACTION_TABLE. |
void |
setActionURLTemplate(String actionName,
String actionURLTemplate)
Associates the specified URL template with the specified action. |
private void |
setCredentials(Hashtable context,
String providerURL)
Set authentication information in a specified directory context. |
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 |
setEntryCacheSize(int a_EntryCacheSize)
Sets the value of the attribute: ENTRY_CACHE_SIZE. |
void |
setEntryCacheTTL(long a_EntryCacheTTL)
Sets the value of the attribute: ENTRY_CACHE_TTL. |
void |
setInitialContextFactory(String a_InitialContextFactory)
Sets the value of the attribute: INITIAL_CONTEXT_FACTORY. |
void |
setProxyExpirationInterval(long a_ProxyExpirationInterval)
Sets the value of the attribute: PROXY_EXPIRATION_INTERVAL. |
void |
setProxyRefreshInterval(long a_ProxyRefreshInterval)
Sets the value of the attribute: PROXY_REFRESH_INTERVAL. |
void |
setSearchBase(String a_SearchBase)
Sets the value of the attribute: SEARCH_BASE. |
void |
setSearchResultsCacheSize(int a_SearchResultsCacheSize)
Sets the value of the attribute: SEARCH_RESULTS_CACHE_SIZE. |
void |
setSearchResultsCacheTTL(long a_SearchResultsCacheTTL)
Sets the value of the attribute: SEARCH_RESULTS_CACHE_TTL. |
void |
setSearchScope(String a_SearchScope)
Sets the value of the attribute: SEARCH_SCOPE. |
void |
setServiceName(String a_ServiceName)
Sets the value of the attribute: SERVICE_NAME. |
void |
setServiceURL(String a_ServiceURL)
Sets the value of the attribute: SERVICE_URL. |
void |
setTightlyCoupled(boolean a_TightlyCoupled)
Sets the value of the attribute: TIGHTLY_COUPLED. |
void |
setTranslationTableName(String a_TranslationTableName)
Sets the value of the attribute: TRANSLATION_TABLE_NAME. |
private String |
substituteTableValues(String s,
Hashtable table)
Substitute values from an attribute translation table into a specified string. |
private void |
translationTableNameValidate(String a_TranslationTableName)
|
private void |
updateEntryCache(String url,
Hashtable entry)
Add an entry to the directory entry cache. |
void |
updateObject(String sourceObjectId,
Hashtable updateAttributes,
Vector deleteAttributes)
Update the attributes of a specified remote object. |
private void |
updateSearchResultsCache(String url,
Vector searchResults)
Add an entry to the cache of directory search results. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeExternal(PersistentStoreIfc output)
Used by Persistent Data Service to obtain the values of the persistent attributes of this class, so they can be written to a persistent store. |
Methods inherited from class wt.fc.Item |
getDomainRef, isInheritedDomain, readVersion, setDomainRef, setInheritedDomain |
Methods inherited from class wt.fc.WTObject |
checkAttributes, duplicate, finalize, getClassInfo, getCreateTimestamp, getDisplayIdentifier, getDisplayIdentity, getDisplayType, getIdentity, getModifyTimestamp, getPersistInfo, getType, readVersion, setPersistInfo, toString |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wt.fc.NetFactor |
getClassInfo |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String TRANSLATION_TABLE_NAME
private static int TRANSLATION_TABLE_NAME_UPPER_LIMIT
private String translationTableName
public static final String INITIAL_CONTEXT_FACTORY
private static int INITIAL_CONTEXT_FACTORY_UPPER_LIMIT
private String initialContextFactory
public static final String SEARCH_BASE
private static int SEARCH_BASE_UPPER_LIMIT
private String searchBase
public static final String SEARCH_SCOPE
private static int SEARCH_SCOPE_UPPER_LIMIT
private String searchScope
public static final String DIRECTORY_ACCESS_DN
private static int DIRECTORY_ACCESS_DN_UPPER_LIMIT
private String directoryAccessDN
public static final String DIRECTORY_ACCESS_CREDENTIALS
private Object directoryAccessCredentials
public static final String ENTRY_CACHE_TTL
private long entryCacheTTL
public static final String ENTRY_CACHE_SIZE
private int entryCacheSize
public static final String SEARCH_RESULTS_CACHE_TTL
private long searchResultsCacheTTL
public static final String SEARCH_RESULTS_CACHE_SIZE
private int searchResultsCacheSize
static final boolean SERVER
private static final String FC_RESOURCE
private String serviceName
private String serviceURL
private Hashtable actionTable
private long proxyRefreshInterval
private long proxyExpirationInterval
private boolean tightlyCoupled
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String AUTH_PROPERTY_PREFIX
private String baseOfSearch
private static String defaultInitialContextFactory
private static int defaultEntryCacheSize
private static long defaultEntryCacheTTL
private static String defaultLDAPVersion
private static long defaultProxyExpirationInterval
private static long defaultProxyRefreshInterval
private static int defaultSearchResultsCacheSize
private static long defaultSearchResultsCacheTTL
private static String defaultSecurityAuthentication
private DirContext directoryContext
private static Hashtable entryCache
private static Properties federationProperties
private Hashtable navigationSupported
private Hashtable queriesSupported
private DirectoryQuerySpecTranslator querySpecTranslator
private static Hashtable searchResultsCache
private DirectoryTranslationTable translationTable
private static boolean VERBOSE
Constructor Detail |
public FederatedDirectoryService()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class Item
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class Item
input
-
IOException
ClassNotFoundException
protected boolean readVersion(FederatedDirectoryService thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void writeExternal(PersistentStoreIfc output) throws SQLException, DatastoreException
(Not intended for general use.)
Supported API: false
writeExternal
in interface ObjectMappable
writeExternal
in class Item
output
-
SQLException
DatastoreException
public void readExternal(PersistentRetrieveIfc input) throws SQLException, DatastoreException
(Not intended for general
use.)
Supported API: false
readExternal
in interface ObjectMappable
readExternal
in class Item
input
-
SQLException
DatastoreException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
public String getTranslationTableName()
public void setTranslationTableName(String a_TranslationTableName) throws WTPropertyVetoException
a_TranslationTableName
-
WTPropertyVetoException
private void translationTableNameValidate(String a_TranslationTableName) throws WTPropertyVetoException
a_TranslationTableName
-
WTPropertyVetoException
public String getInitialContextFactory()
public void setInitialContextFactory(String a_InitialContextFactory)
a_InitialContextFactory
- public String getSearchBase()
public void setSearchBase(String a_SearchBase) throws WTPropertyVetoException
a_SearchBase
-
WTPropertyVetoException
private void searchBaseValidate(String a_SearchBase) throws WTPropertyVetoException
a_SearchBase
-
WTPropertyVetoException
public String getSearchScope()
public void setSearchScope(String a_SearchScope) throws WTPropertyVetoException
a_SearchScope
-
WTPropertyVetoException
private void searchScopeValidate(String a_SearchScope) throws WTPropertyVetoException
a_SearchScope
-
WTPropertyVetoException
public String getDirectoryAccessDN()
public void setDirectoryAccessDN(String a_DirectoryAccessDN)
a_DirectoryAccessDN
- public Object getDirectoryAccessCredentials()
public void setDirectoryAccessCredentials(Object a_DirectoryAccessCredentials)
a_DirectoryAccessCredentials
- public long getEntryCacheTTL()
public void setEntryCacheTTL(long a_EntryCacheTTL) throws WTPropertyVetoException
a_EntryCacheTTL
-
WTPropertyVetoException
public int getEntryCacheSize()
public void setEntryCacheSize(int a_EntryCacheSize) throws WTPropertyVetoException
a_EntryCacheSize
-
WTPropertyVetoException
public long getSearchResultsCacheTTL()
public void setSearchResultsCacheTTL(long a_SearchResultsCacheTTL) throws WTPropertyVetoException
a_SearchResultsCacheTTL
-
WTPropertyVetoException
public int getSearchResultsCacheSize()
public void setSearchResultsCacheSize(int a_SearchResultsCacheSize) throws WTPropertyVetoException
a_SearchResultsCacheSize
-
WTPropertyVetoException
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName, String serviceURL, String searchBase, String translationTableName) throws FederationServicesException
serviceName
- serviceURL
- searchBase
- translationTableName
-
FederationServicesException
protected void initialize(String serviceName, String serviceURL, String searchBase, String translationTableName) throws FederationServicesException
serviceName
- serviceURL
- searchBase
- translationTableName
-
FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName, String serviceURL, String searchBase, String translationTableName, String initialContextFactory) throws FederationServicesException
serviceName
- serviceURL
- searchBase
- translationTableName
- initialContextFactory
-
FederationServicesException
protected void initialize(String serviceName, String serviceURL, String searchBase, String translationTableName, String initialContextFactory) throws FederationServicesException
serviceName
- serviceURL
- searchBase
- translationTableName
- initialContextFactory
-
FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService(String serviceName) throws FederationServicesException
serviceName
-
FederationServicesException
protected void initialize(String serviceName) throws FederationServicesException
serviceName
-
FederationServicesException
public static FederatedDirectoryService newFederatedDirectoryService() throws FederationServicesException
FederationServicesException
public Object retrieveDirectoryObject(String distinguishedName) throws FederationServicesException, WTException
distinguishedName
-
FederationServicesException
WTException
protected Object _retrieveDirectoryObject(String distinguishedName) throws FederationServicesException, WTException
distinguishedName
-
FederationServicesException
WTException
public void refreshDirectoryObject(Federated proxy) throws FederationServicesException, WTException
proxy
-
FederationServicesException
WTException
protected void _refreshDirectoryObject(Federated proxy) throws FederationServicesException, WTException
proxy
-
FederationServicesException
WTException
public QueryResult findDirectoryObjects(String filterName, Hashtable filterArguments) throws FederationServicesException, WTException
filterName
- filterArguments
-
FederationServicesException
WTException
protected QueryResult _findDirectoryObjects(String filterName, Hashtable filterArguments) throws FederationServicesException, WTException
filterName
- filterArguments
-
FederationServicesException
WTException
public QueryResult findDirectoryObjects(String url) throws FederationServicesException, WTException
url
-
FederationServicesException
WTException
protected QueryResult _findDirectoryObjects(String url) throws FederationServicesException, WTException
url
-
FederationServicesException
WTException
public DirectoryTranslationTable getTranslationTable() throws FederationServicesException
FederationServicesException
public Hashtable retrieveDirectoryAttributes(String distinguishedName) throws FederationServicesException, WTException
distinguishedName
-
FederationServicesException
WTException
protected Hashtable _retrieveDirectoryAttributes(String distinguishedName) throws FederationServicesException, WTException
distinguishedName
-
FederationServicesException
WTException
public String getServiceName()
getServiceName
in interface FederatedService
public void setServiceName(String a_ServiceName)
setServiceName
in interface FederatedService
a_ServiceName
- public String getServiceURL()
getServiceURL
in interface FederatedService
public void setServiceURL(String a_ServiceURL) throws WTPropertyVetoException
setServiceURL
in interface FederatedService
a_ServiceURL
-
WTPropertyVetoException
private void serviceURLValidate(String a_ServiceURL) throws WTPropertyVetoException
a_ServiceURL
-
WTPropertyVetoException
public Hashtable getActionTable()
getActionTable
in interface FederatedService
public void setActionTable(Hashtable a_ActionTable) throws WTPropertyVetoException
setActionTable
in interface FederatedService
a_ActionTable
-
WTPropertyVetoException
public long getProxyRefreshInterval()
getProxyRefreshInterval
in interface FederatedService
public void setProxyRefreshInterval(long a_ProxyRefreshInterval) throws WTPropertyVetoException
setProxyRefreshInterval
in interface FederatedService
a_ProxyRefreshInterval
-
WTPropertyVetoException
public long getProxyExpirationInterval()
getProxyExpirationInterval
in interface FederatedService
public void setProxyExpirationInterval(long a_ProxyExpirationInterval) throws WTPropertyVetoException
setProxyExpirationInterval
in interface FederatedService
a_ProxyExpirationInterval
-
WTPropertyVetoException
public boolean isTightlyCoupled()
isTightlyCoupled
in interface FederatedService
public void setTightlyCoupled(boolean a_TightlyCoupled) throws WTPropertyVetoException
setTightlyCoupled
in interface FederatedService
a_TightlyCoupled
-
WTPropertyVetoException
public String getActionURL(String actionName, String sourceObjectId) throws FederationServicesException
getActionURL
in interface FederatedService
actionName
- sourceObjectId
-
FederationServicesException
public String getActionURL(String actionName, Hashtable arguments) throws FederationServicesException
getActionURL
in interface FederatedService
actionName
- arguments
-
FederationServicesException
public String getActionURLTemplate(String actionName)
getActionURLTemplate
in interface FederatedService
actionName
-
public void setActionURLTemplate(String actionName, String actionURLTemplate)
setActionURLTemplate
in interface FederatedService
actionName
- actionURLTemplate
- public Object retrieveObject(String sourceObjectId) throws FederationServicesException
retrieveObject
in interface FederatedService
sourceObjectId
-
FederationServicesException
public Hashtable retrieveAttributes(String sourceObjectId) throws FederationServicesException
retrieveAttributes
in interface FederatedService
sourceObjectId
-
FederationServicesException
public void refreshObject(Federated proxy) throws FederationServicesException
refreshObject
in interface FederatedService
proxy
-
FederationServicesException
public Object createObject(Class objectClass, String sourceObjectId, Hashtable attributes) throws FederationServicesException
createObject
in interface FederatedService
objectClass
- sourceObjectId
- attributes
-
FederationServicesException
public void updateObject(String sourceObjectId, Hashtable updateAttributes, Vector deleteAttributes) throws FederationServicesException
updateObject
in interface FederatedService
sourceObjectId
- updateAttributes
- deleteAttributes
-
FederationServicesException
public void deleteObject(String sourceObjectId) throws FederationServicesException
deleteObject
in interface FederatedService
sourceObjectId
-
FederationServicesException
public QueryResult findObjects(QuerySpec criteria) throws FederationServicesException
findObjects
in interface FederatedService
criteria
-
FederationServicesException
public QueryResult findObjects(Class targetLinkClass, Persistable obj1, String obj1Role, Persistable obj2) throws FederationServicesException
findObjects
in interface FederatedService
targetLinkClass
- obj1
- obj1Role
- obj2
-
FederationServicesException
public QueryResult navigate(Persistable obj, String role, Class linkClass, boolean onlyOtherSide) throws FederationServicesException
navigate
in interface FederatedService
obj
- role
- linkClass
- onlyOtherSide
-
FederationServicesException
public QueryResult navigate(Persistable obj, String role, QuerySpec criteria, boolean onlyOtherSide) throws FederationServicesException
navigate
in interface FederatedService
obj
- role
- criteria
- onlyOtherSide
-
FederationServicesException
public Enumeration getSupportedObjectClasses() throws FederationServicesException
getSupportedObjectClasses
in interface FederatedService
FederationServicesException
public Enumeration getSupportedLinkClasses() throws FederationServicesException
getSupportedLinkClasses
in interface FederatedService
FederationServicesException
public boolean isQuerySupported(Class objectClass) throws FederationServicesException
isQuerySupported
in interface FederatedService
objectClass
-
FederationServicesException
public boolean isNavigationSupported(Class linkClass) throws FederationServicesException
isNavigationSupported
in interface FederatedService
linkClass
-
FederationServicesException
public void purgeCaches() throws FederationServicesException
purgeCaches
in interface FederatedService
FederationServicesException
public boolean equals(Object obj)
ObjectIdentifier
s.
Changed or stale copies are still considered equal by this method.
Delegates to PersistenceHelper.equals(Persistable,Object)
.
Warning: Certain core Windchill operations may depend upon
equals
being ObjectIdentifier
-based. Changes
to the default implementation should be done with care, if at all.
Supported API: false
equals
in class Item
obj
-
public int hashCode()
ObjectIdentifier
.
Delegates to PersistenceHelper.hashCode(Persistable)
.
Warning: Certain core Windchill operations may depend upon
hashCode
being ObjectIdentifier-based
. Changes
to the default implementation should be done with care, if at all.
Supported API: false
hashCode
in class Item
protected void initialize() throws FederationServicesException
initialize
in class Item
FederationServicesException
public Enumeration searchDirectory(String url) throws FederationServicesException
url
- URL defining the directory search filter
FederationServicesException
private void setCredentials(Hashtable context, String providerURL) throws FederationServicesException
context
- the directory contextproviderURL
- the URL of the directory service provider
FederationServicesException
private BinaryLink createLinkObject(Class linkClass, Persistable obj1, String obj1Role, Persistable obj2) throws FederationServicesException
linkClass
- the type of link object to createobj1
- the first object in the associationobj1Role
- the role played by the first objectobj2
- the second object in the association
FederationServicesException
private void updateEntryCache(String url, Hashtable entry)
url
- unique key under which to add the entryentry
- directory entry to addprivate void updateSearchResultsCache(String url, Vector searchResults)
url
- unique key under which to add the entrysearchResults
- vector of SearchResult objectsprivate String substituteTableValues(String s, Hashtable table) throws FederationServicesException
s
- String in which to substitute valuestable
- the translation table supplying values
FederationServicesException
protected DirContext getInitialDirContext(String providerURL) throws FederationServicesException
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |