|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.FederationUtilities
FederationUtilities provides class methods that perform utility functions supporting the Federation subsystem.
Field Summary | |
private static String |
AUTH_PROPERTY_PREFIX
|
private static String |
CLASSNAME
|
private static Hashtable |
credentialsCache
|
private static String |
defaultDomain
|
private static String |
defaultFolder
|
private static String |
defaultIndexer
|
private static String |
defaultLifeCycleName
|
private static String |
defaultOwner
|
private static String |
defaultTeamTemplate
|
private static String |
FC_RESOURCE
|
private static String |
hexDigits
|
static String |
LDAP_SPECIAL_CHARS_DN
|
static String |
LDAP_SPECIAL_CHARS_FILTER
|
private static long |
proxyRefreshQueueInterval
|
private static String |
proxyRefreshQueueName
|
static String |
queueInterlock
|
private static String |
RESOURCE
|
private static String |
SAXDriver
|
(package private) static boolean |
SERVER
|
private static Hashtable |
subclassCache
|
private static String |
urlSpecials
|
private static String |
userDomainQualifier
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
Constructor Summary | |
FederationUtilities()
|
Method Summary | |
static void |
appendNewElements(QueryResult qr1,
QueryResult qr2)
Deprecated. See FederationHelper. |
static Persistable |
checkFreshness(Persistable obj)
Deprecated. See FederationServiceSvr. |
static QueryResult |
checkFreshness(QueryResult qr)
Deprecated. See FederationServiceSvr. |
static String |
decodeURLString(String encoded)
Deprecated. See wt.httpgw.WTURLEncoder. |
static String |
encodeBase64(byte[] octets)
Deprecated. See FederationHelper. |
static String |
encodeURLString(String s)
Deprecated. See wt.httpgw.WTURLEncoder. |
static String |
encodeURLString(String s,
String specials)
Deprecated. See wt.httpgw.WTURLEncoder. |
static void |
enqueueRefreshRequest(Federated proxy)
Deprecated. See FederationServiceSvr. |
static String |
escapeDn(String dnComponent)
|
static String |
escapeFilter(String criteria)
|
static FederatedHttpResponse |
executeHTTPRequest(String method,
String urlString,
FederatedHttpBodyPart payload)
Deprecated. See FederationServiceSvr. |
static QueryResult |
findAllUsers()
Deprecated. See wt.org package. |
static QueryResult |
findAllUsers(Enumeration services)
Deprecated. See wt.org package. |
static QueryResult |
findLikeUsers(String attr_name,
String attr_value)
Deprecated. See wt.org package. |
static QueryResult |
findLikeUsers(String attr_name,
String filter,
Enumeration services)
Deprecated. See wt.org package. |
static QueryResult |
findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2)
Deprecated. See FederationService. |
static QueryResult |
findObjects(Class targetLinkClass,
Persistable obj1,
String obj1Role,
Persistable obj2,
Enumeration services)
Deprecated. See FederationService. |
static QueryResult |
findObjects(QuerySpec qs)
Deprecated. See FederationService. |
static QueryResult |
findObjects(QuerySpec qs,
Enumeration services)
Deprecated. See FederationService. |
static QueryResult |
findUser(String name)
Deprecated. See wt.org package. |
static QueryResult |
findUser(String name,
Enumeration services)
Deprecated. See wt.org package. |
static QueryResult |
findUser(String attr_name,
String attr_value)
Deprecated. See wt.org package. |
static QueryResult |
findUser(String attr_name,
String attr_value,
Enumeration services)
Deprecated. See wt.org package. |
static String |
getActionURL(FederatedService service,
String key,
Hashtable arguments)
Deprecated. See FederationHelper. |
static QueryResult |
getAllServices()
Deprecated. See FederationServiceSvr. |
private static String |
getAuthorization(URL url,
String challenge,
boolean bypassCache)
Get the authorization string that allows the user to access a specified URL. |
private static String |
getDefaultAuthorization(Hashtable challengeParams)
Get the default authorization string that allows the user to access a specified URL. |
static Class |
getFederatedSubclass(Class objectClass)
Deprecated. See FederationServerHelper. |
static QueryResult |
getNavigableServices(Class linkClass)
Deprecated. See FederationService. |
static Persistable |
getPersistentInstance(Federated proxy)
|
static QueryResult |
getQueryableServices(Class objectClass)
Deprecated. See FederationService. |
static FederatedService |
getService(Federated proxy)
Deprecated. See FederationService. |
static InputStream |
getSourceInputStream(Federated proxy)
Deprecated. |
static boolean |
hasExpired(Federated proxy)
Deprecated. See FederationServerHelper. |
static boolean |
haveSameSource(Object object1,
Object object2)
Deprecated. See FederationHelper. |
static int |
indexOfFirstDNSeparator(String distinguishedName)
Returns the index of the the first ',' character in an LDAP DN string that isn't escaped (e.g., isn't preceded by a '\' character). |
static void |
initializeProxy(Federated proxy,
FederatedService service)
Deprecated. See FederationServerHelper. |
static InputStream |
invokeInfoEngineTemplate(String url)
Deprecated. See FederationServiceSvr. |
static InputStream |
invokeInfoEngineTemplate(String url,
Hashtable params)
Deprecated. See FederationServiceSvr. |
static boolean |
isStale(Federated proxy)
Deprecated. See FederationServerHelper. |
static QueryResult |
navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide)
Deprecated. See FederationService. |
static QueryResult |
navigate(Persistable obj,
String role,
Class linkClass,
boolean onlyOtherSide,
Enumeration services)
Deprecated. See FederationService. |
static QueryResult |
navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide)
Deprecated. See FederationService. |
static QueryResult |
navigate(Persistable obj,
String role,
QuerySpec criteria,
boolean onlyOtherSide,
Enumeration services)
Deprecated. See FederationService. |
private static Hashtable |
parseHTTPChallenge(String challenge)
Parse an HTTP authorization challenge, and return a Hashtable that provides the challenge parameters. |
static void |
presetRevisionControlled(RevisionControlled proxy)
Deprecated. |
static void |
refresh(Federated proxy)
Deprecated. See FederationServiceSvr. |
static void |
refreshIfStale(Federated proxy)
Deprecated. See FederationServiceSvr. |
static void |
refreshProxy(Federated proxy)
Deprecated. See FederationServiceSvr. |
static void |
refreshProxy(ObjectIdentifier oid)
Deprecated. See FederationServiceSvr. |
static void |
refreshProxyVector(ObjectVector ov)
Deprecated. |
static Vector |
retrieveInfoEngineObjects(String url)
Deprecated. See FederationService. |
static Vector |
retrieveSourceContents(String sourceObjectId,
FederatedService service)
Deprecated. |
static Federated |
storeProxy(Federated proxy)
Deprecated. See FederationService. |
static void |
syncObjects(Externalizable source,
Externalizable target)
Deprecated. See FederationService. |
static String |
unescapeDn(String dnComponent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static final String FC_RESOURCE
private static final String RESOURCE
private static final String CLASSNAME
private static final String AUTH_PROPERTY_PREFIX
private static Hashtable credentialsCache
private static String defaultDomain
private static String defaultFolder
private static String defaultIndexer
private static String defaultLifeCycleName
private static String defaultOwner
private static String defaultTeamTemplate
private static long proxyRefreshQueueInterval
private static String proxyRefreshQueueName
private static String SAXDriver
private static Hashtable subclassCache
private static String userDomainQualifier
private static boolean VERBOSE
private static final String urlSpecials
public static final String LDAP_SPECIAL_CHARS_DN
public static final String LDAP_SPECIAL_CHARS_FILTER
private static final String hexDigits
static final boolean SERVER
public static String queueInterlock
Constructor Detail |
public FederationUtilities()
Method Detail |
public static Class getFederatedSubclass(Class objectClass) throws FederationServicesException
objectClass
- class for which to find a Federated subclass
FederationServicesException
public static void presetRevisionControlled(RevisionControlled proxy) throws FederationServicesException
proxy
- object to be initialized
FederationServicesException
public static void refresh(Federated proxy) throws FederationServicesException
proxy
- object to be refreshed
FederationServicesException
public static void initializeProxy(Federated proxy, FederatedService service) throws FederationServicesException
proxy
- the proxy object to be initializedservice
- the FederatedService that maintains the proxy
FederationServicesException
public static void refreshProxy(Federated proxy) throws FederationServicesException
proxy
- the proxy object to be refreshed
FederationServicesException
public static void refreshProxy(ObjectIdentifier oid) throws FederationServicesException
oid
- ObjectIdentifier of the proxy object to be refreshed
FederationServicesException
public static void refreshProxyVector(ObjectVector ov) throws FederationServicesException
ov
- ObjectVector containing the proxy objects to be refreshed
FederationServicesException
public static void syncObjects(Externalizable source, Externalizable target) throws FederationServicesException
source
- object from which to get new attribute valuestarget
- object to be updated
FederationServicesException
public static boolean hasExpired(Federated proxy) throws FederationServicesException
proxy
- object to be tested for expiration
FederationServicesException
public static boolean isStale(Federated proxy) throws FederationServicesException
proxy
- object to be tested for staleness
FederationServicesException
public static void refreshIfStale(Federated proxy) throws FederationServicesException
proxy
- object to be refreshed
FederationServicesException
public static void enqueueRefreshRequest(Federated proxy) throws FederationServicesException
proxy
- object to be refreshed
FederationServicesException
public static Persistable checkFreshness(Persistable obj) throws FederationServicesException
obj
- object to be checked
FederationServicesException
public static QueryResult checkFreshness(QueryResult qr) throws FederationServicesException
qr
- QueryResult to be checked
FederationServicesException
public static Federated storeProxy(Federated proxy) throws FederationServicesException
proxy
- the object to make persistent
FederationServicesException
public static FederatedService getService(Federated proxy) throws FederationServicesException
proxy
- the proxy object from which to get the service object
FederationServicesException
public static String getActionURL(FederatedService service, String key, Hashtable arguments)
service
- FederatedService objectkey
- URL template keyarguments
- arguments to be substituted into template
public static boolean haveSameSource(Object object1, Object object2) throws FederationServicesException
object1
- an objectobject2
- another object
FederationServicesException
public static void appendNewElements(QueryResult qr1, QueryResult qr2) throws FederationServicesException
qr1
- a QueryResultqr2
- another QueryResult
FederationServicesException
public static Vector retrieveInfoEngineObjects(String url) throws FederationServicesException, WTException
url
- URL identifying the target object(s)
FederationServicesException
WTException
public static InputStream getSourceInputStream(Federated proxy) throws FederationServicesException, WTException
proxy
- the proxy object from which to get an XML stream
FederationServicesException
WTException
public static InputStream invokeInfoEngineTemplate(String url) throws FederationServicesException, WTException
url
- URL identifying the template to be executed
FederationServicesException
WTException
public static InputStream invokeInfoEngineTemplate(String url, Hashtable params) throws FederationServicesException, WTException
url
- URL identifying the template to be executedparams
- Hashtable of parameters to be sent as form data
FederationServicesException
WTException
public static FederatedHttpResponse executeHTTPRequest(String method, String urlString, FederatedHttpBodyPart payload) throws FederationServicesException, WTException
method
- HTTP request method (GET, POST, PUT, etc.)urlString
- URL of the target resourcepayload
- request payload (POST/PUT), null if no payload
FederationServicesException
WTException
public static QueryResult getQueryableServices(Class objectClass) throws FederationServicesException
objectClass
- class for which querying is desired
FederationServicesException
public static QueryResult getNavigableServices(Class linkClass) throws FederationServicesException
linkClass
- class for which navigation is desired
FederationServicesException
public static QueryResult getAllServices() throws FederationServicesException
FederationServicesException
public static QueryResult findUser(String name) throws FederationServicesException
name
- the name of the user for which to find an entry
FederationServicesException
public static QueryResult findUser(String name, Enumeration services) throws FederationServicesException
name
- the name of the user for which to find an entryservices
- Enumeration of FederatedService objects to use
FederationServicesException
public static QueryResult findUser(String attr_name, String attr_value) throws FederationServicesException
attr_name
- the name of the attribute used as the key in the queryattr_value
- the value of the attribute used as the key in the query
FederationServicesException
public static QueryResult findUser(String attr_name, String attr_value, Enumeration services) throws FederationServicesException
attr_name
- the name of the attribute used as the key in the queryattr_value
- the value of the attribute used as the key in the queryservices
- Enumeration of FederatedService objects to use
FederationServicesException
public static QueryResult findAllUsers() throws FederationServicesException
FederationServicesException
public static QueryResult findAllUsers(Enumeration services) throws FederationServicesException
services
- Enumeration of FederatedService objects to use
FederationServicesException
public static QueryResult findLikeUsers(String attr_name, String attr_value) throws FederationServicesException
attr_name
- the name of the attribute used as the key in the queryattr_value
- the value of the attribute used as the key in the query
FederationServicesException
public static QueryResult findLikeUsers(String attr_name, String filter, Enumeration services) throws FederationServicesException
attr_name
- the name of the attribute used as the key in the queryfilter
- the value of the attribute used as the key in the queryservices
- Enumeration of FederatedService objects to use
FederationServicesException
public static QueryResult findObjects(QuerySpec qs) throws FederationServicesException
qs
- QuerySpec defining the query to make
FederationServicesException
public static QueryResult findObjects(QuerySpec qs, Enumeration services) throws FederationServicesException
qs
- QuerySpec defining the query to makeservices
- Enumeration of FederatedService objects to use
FederationServicesException
public static QueryResult findObjects(Class targetLinkClass, Persistable obj1, String obj1Role, Persistable obj2) throws FederationServicesException
targetLinkClass
- object class defining association typeobj1
- first objectobj1Role
- role played by first object in associationobj2
- second object
FederationServicesException
public static QueryResult findObjects(Class targetLinkClass, Persistable obj1, String obj1Role, Persistable obj2, Enumeration services) throws FederationServicesException
targetLinkClass
- object class defining association typeobj1
- first objectobj1Role
- role played by first object in associationobj2
- second objectservices
- set of services to query
FederationServicesException
public static QueryResult navigate(Persistable obj, String role, Class linkClass, boolean onlyOtherSide) throws FederationServicesException
obj
- the object for which associated objects are being soughtrole
- the role played in the association by the objects being soughtlinkClass
- the class defining the type of associationonlyOtherSide
- true if the result set should include the
the associated objects only, false if the result set should
include link objects too
FederationServicesException
public static QueryResult navigate(Persistable obj, String role, Class linkClass, boolean onlyOtherSide, Enumeration services) throws FederationServicesException
obj
- the object for which associated objects are being soughtrole
- the role played in the association by the objects being soughtlinkClass
- the class defining the type of associationonlyOtherSide
- true if the result set should include the
the associated objects only, false if the result set should
include link objects tooservices
- the set of services to query
FederationServicesException
public static QueryResult navigate(Persistable obj, String role, QuerySpec criteria, boolean onlyOtherSide) throws FederationServicesException
obj
- the object for which to find associated objectsrole
- the role played in the association by the objects being soughtcriteria
- the criteria specifying the type of associationonlyOtherSide
- true if associated objects only should be
returned, false if link objects should be returned too
FederationServicesException
public static QueryResult navigate(Persistable obj, String role, QuerySpec criteria, boolean onlyOtherSide, Enumeration services) throws FederationServicesException
obj
- the object for which to find associated objectsrole
- the role played in the association by the objects being soughtcriteria
- the criteria specifying the type of associationonlyOtherSide
- true if associated objects only should be
returned, false if link objects should be returned tooservices
- the set of services to query
FederationServicesException
public static Vector retrieveSourceContents(String sourceObjectId, FederatedService service) throws FederationServicesException
sourceObjectId
- the object for which to find content itemsservice
- the service containing the source object
FederationServicesException
public static String decodeURLString(String encoded)
encoded
- a URL-encoded string
public static String encodeURLString(String s)
s
- a string
public static String encodeURLString(String s, String specials)
s
- a stringspecials
- the set of characters that need encoding
public static String encodeBase64(byte[] octets)
octets
- array of octets to encode
public static Persistable getPersistentInstance(Federated proxy) throws FederationServicesException
FederationServicesException
private static String getAuthorization(URL url, String challenge, boolean bypassCache) throws WTException
url
- URL for which authorization information is requestedchallenge
- HTTP authorization challenge sent by web serverbypassCache
- true if cached information should be ignored
WTException
private static String getDefaultAuthorization(Hashtable challengeParams) throws WTException
challengeParams
- Hashtable of HTTP authorization challenge parameters
WTException
private static Hashtable parseHTTPChallenge(String challenge) throws WTException
challenge
- HTTP authorization challenge string
WTException
public static String escapeDn(String dnComponent)
public static String unescapeDn(String dnComponent)
public static String escapeFilter(String criteria)
public static int indexOfFirstDNSeparator(String distinguishedName)
distinguishedName
- An LDAP distinguished name (DN) string.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |