| java.lang.Object com.sun.ssoadapter.config.DSAMEUtils
DSAMEUtils | public class DSAMEUtils implements DSAMEConstants(Code) | | There should only be one instance of this class per-jvm. This object
is created by DSAMEServiceAppContext with the getInstance(DSAMEconnection)
invocation and the DSAMEServiceUserContext uses the getInstance() to
get the instance created by DSAMEServiceAppContext.
Since the DSAMEServiceAppContext object is created first for every jvm
(and only once) we can be sure that only a single instance of this object
exists, and we can get away with not synchronizing access to the object.
|
getAttributeScope | public int getAttributeScope(String serviceName, String attrName)(Code) | | Gets the scope of the attribute in the service
|
getAttributeType | public int getAttributeType(String serviceName, String attrName)(Code) | | Gets the Type of the attribute in the service
|
getClientValues | public Set getClientValues(Set vals, String client, Map awareMap, boolean removeClientInfo)(Code) | | Utility method to get client-aware values from a list
Parameters: vals - The Values to parse. Parameters: client - The client Type to look for Parameters: awareMap - Indicates if the values were obtained from the"clientType", "default" or not clientaware. And passes back theparsed objects in various keys. Typically used to avoid being calledmultiple times for the same vals. (used by setAttribute()) Parameters: removeClientInfo - If the attributes are client-aware, this methodwill try to remove the client-type info from the attrs. Setting thisflag to false, prevents this. (Used by setAttribute() to add in thevalues of "other" clients. |
getInstance | public static synchronized DSAMEUtils getInstance(DSAMEConnection conn)(Code) | | To implemenent a single DSAMEUtils object per-jvm return an existing
dsameUtils if it exists. (ignore the DSAMEConnection)
Parameters: conn - The DSAMEConnection, used to get the schema types forservices. The single DSAMEUtils object. |
modifyValues | public Set modifyValues(String clientType, Map awareMap, Set vals, boolean forceCA)(Code) | | Modify Values acroding to this Algorithm:
1. If no CA attributes exist and CA flag == true, modify all the non
CA attrs by prefixing them with "default|" and add our new vals as
"clientType|"values
2. No values exist at all - depending on the force CA flag put in
the new values with or without clientType
3. If some CA attributes exist, assume forceCA == true & modify the
non CA ones with "default|" prefix and our new vals with
"clientTYpe|". If the directory already had our clientType attrs
overwrite them.
|
|
|