| java.lang.Object com.sun.portal.desktop.context.DSAMEConnection
Method Summary | |
public String | getAttribute(String attributeName) Gets USER/DYNAMIC attribute.
Parameters: attributeName - Name of the attribute to retrieve The attribute value in String format. | public String | getAttributeByDN(String dn, String key) Gets a DSAME attribute corresponding to the given DN.
It first tries to determine what type of object is represented
by the given DN and then retrieve the attribute
accordingly. | public String | getAttributeByDNFromROC(String dn, String key) | public byte[] | getAttributeByteArray(String attributeName) | public byte[] | getAttributeByteArrayFromROC(String key) | public String | getAttributeFromROC(String key) | public Set | getAttributeMultiVal(String attributeName) Gets multi-valued USER/DYNAMIC attribute.
Parameters: attributeName - Name of the attribute to retrieve Set of String values. | public Set | getChildrenNodeNames(String dn, int level) | public Set | getChildrenNodeNames(int level) | public String | getGlobalAttribute(String serviceName, String attributeName) | protected String | getGlobalAttributeFromROC(String service, String key) | public Set | getGlobalAttributeMultiVal(String serviceName, String attributeName) | protected Set | getGlobalAttributeMultiValueFromROC(String service, String key) | public Map | getGlobalAttributes(String serviceName) | public int | getIntAttribute(String attributeName) Gets USER/DYNAMIC attribute in int.
Parameters: attributeName - Name of the attribute to retrieve The attribute value in int. | public Set | getNodeNames(String dn) | public Set | getNodeNames() | public Set | getNodeNamesFromROC() | public String | getOrgAttributeFromROC(String service, String key) | public String | getOrganizationAttribute(String serviceName, String attributeName) Gets ORGANIZATION attribute. | public String | getPolicyAttribute(String attributeName) | public Set | getRoleDNs() | public Set | getRoleDNsFromROC() | public static String | getRootDN() | protected static SSOToken | getSSOToken(HttpServletRequest request) | protected static SSOTokenManager | getSSOTokenManager() | public Set | getTemplateAttributeMultiVal(String dn, String serviceName, String attributeName) | protected void | init(SSOToken token) | public boolean | isGlobal(String dn) | public boolean | isServiceAssigned(String dn, String serviceName) | public void | prefetchAttributes(Set names) | public void | removeAttributeByDN(String dn, String key) Removes Display Profile document corresponding to the given DN.
Note that this does not take merging into consideration.
It first tries to determine what type of object is represented
by the given DN and then removes the Display Profile
accordingly. | public void | removeGlobalAttribute(String serviceName, String attributeName) | public void | setAttribute(String attributeName, String val) Sets USER/DYNAMIC attribute. | public void | setAttributeByDN(String dn, String key, String val) | public void | setAttributesByDN(String dn, String serviceName, String key, Set vals) | public void | setGlobalAttribute(String serviceName, String attributeName, String val) | public void | setGlobalAttributes(String serviceName, String attributeName, Set vals) |
ROC_NODE_NAMES | final public static String ROC_NODE_NAMES(Code) | | |
connection | protected AMStoreConnection connection(Code) | | |
serviceManager | protected ServiceManager serviceManager(Code) | | |
user | protected AMUser user(Code) | | |
DSAMEConnection | public DSAMEConnection(SSOToken token)(Code) | | DSAMEConnection with no logging support
(i.e. Used by application context)
|
DSAMEConnection | public DSAMEConnection(SSOToken token, String portalId)(Code) | | Called by CLIs and mbeans only, who have the portalId
All other constructors are used from the webapp for which the portalId
is set as System property in the JVM of webcontainer's instance
|
getAttribute | public String getAttribute(String attributeName)(Code) | | Gets USER/DYNAMIC attribute.
Parameters: attributeName - Name of the attribute to retrieve The attribute value in String format. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned. |
getAttributeByDN | public String getAttributeByDN(String dn, String key)(Code) | | Gets a DSAME attribute corresponding to the given DN.
It first tries to determine what type of object is represented
by the given DN and then retrieve the attribute
accordingly. If DN represents a user entry, then it returns
the user's attribute. If DN represents an organization,
it returns the attribute from the template associated
with the organization.
NOTE: DSAME does not allow attributes to be retrieved from the user
level, without attempting to walk up to the role / org levels to find
the value. Here, it is assumed that user level attr keys are equals
to the attribute key + User.
Parameters: dn - DN of the attribute to retrieve Attribute value. |
getAttributeByteArray | public byte[] getAttributeByteArray(String attributeName)(Code) | | |
getAttributeByteArrayFromROC | public byte[] getAttributeByteArrayFromROC(String key)(Code) | | |
getAttributeMultiVal | public Set getAttributeMultiVal(String attributeName)(Code) | | Gets multi-valued USER/DYNAMIC attribute.
Parameters: attributeName - Name of the attribute to retrieve Set of String values. If property isnot not found, return null. |
getChildrenNodeNames | public Set getChildrenNodeNames(String dn, int level)(Code) | | |
getChildrenNodeNames | public Set getChildrenNodeNames(int level)(Code) | | |
getGlobalAttributeMultiVal | public Set getGlobalAttributeMultiVal(String serviceName, String attributeName)(Code) | | |
getGlobalAttributeMultiValueFromROC | protected Set getGlobalAttributeMultiValueFromROC(String service, String key)(Code) | | |
getGlobalAttributes | public Map getGlobalAttributes(String serviceName)(Code) | | |
getIntAttribute | public int getIntAttribute(String attributeName)(Code) | | Gets USER/DYNAMIC attribute in int.
Parameters: attributeName - Name of the attribute to retrieve The attribute value in int. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned. |
getNodeNamesFromROC | public Set getNodeNamesFromROC()(Code) | | |
getOrganizationAttribute | public String getOrganizationAttribute(String serviceName, String attributeName)(Code) | | Gets ORGANIZATION attribute. Internally this translates
to a template attribute set at the org. level that the current
user belongs to.
Parameters: serviceName - Name of the service Parameters: attributeName - Name of the attribute to retrieve The attribute value in String format. If property isnot not found, return null. If DSAME returns multi-value,warning is issued and only the first value is returned. |
getRoleDNs | public Set getRoleDNs()(Code) | | Get the set of role DNs for the user
|
getRoleDNsFromROC | public Set getRoleDNsFromROC()(Code) | | returns all roles - static as well as filtered
|
getSSOTokenManager | protected static SSOTokenManager getSSOTokenManager()(Code) | | |
init | protected void init(SSOToken token)(Code) | | |
prefetchAttributes | public void prefetchAttributes(Set names)(Code) | | |
removeAttributeByDN | public void removeAttributeByDN(String dn, String key)(Code) | | Removes Display Profile document corresponding to the given DN.
Note that this does not take merging into consideration.
It first tries to determine what type of object is represented
by the given DN and then removes the Display Profile
accordingly. If DN represents a user entry, then it removes
the user's Display profile. If DN represents an organization,
it removes the Display profile from the template associated
with the organization.
Parameters: dn - DN of the display profile to remove |
removeGlobalAttribute | public void removeGlobalAttribute(String serviceName, String attributeName)(Code) | | |
setAttribute | public void setAttribute(String attributeName, String val)(Code) | | Sets USER/DYNAMIC attribute.
Parameters: attributeName - Name of the attribute to retrieve Parameters: val - Value of the attribute |
setGlobalAttributes | public void setGlobalAttributes(String serviceName, String attributeName, Set vals)(Code) | | |
|
|