| 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.security.identity.ldap.LdapFunctions
com.esri.gpt.framework.security.identity.ldap.LdapQueryFunctions
public class LdapQueryFunctions
Handles functionality related to querying an LDAP identity store.
| Constructor Summary | |
|---|---|
protected  | 
LdapQueryFunctions()
Default constructor.  | 
protected  | 
LdapQueryFunctions(LdapConfiguration configuration)
Construct with a supplied configuration.  | 
| Method Summary | |
|---|---|
protected  void | 
appendAttributeValues(Attributes attributes,
                      Map<String,Object> values,
                      boolean stringsOnly)
Appends attribute values to a map (keyed on attribute id).  | 
protected  void | 
appendSubStringValues(Attribute attribute,
                      StringSet values)
Appends a collection of sub-string attribute values to a list.  | 
protected  StringSet | 
readAttribute(DirContext dirContext,
              String objectDN,
              String attrubuteName)
Reads the attribute values associated with an attribute name.  | 
protected  Map<String,Object> | 
readAttributes(DirContext dirContext,
               String objectDN,
               boolean stringsOnly)
Reads directory object attributes into a HashMap (keyed on attribute id).  | 
protected  StringSet | 
readGroupMembers(DirContext dirContext,
                 String groupDN)
Reads group member name strings into a list.  | 
protected  String | 
readUserDisplayName(DirContext dirContext,
                    String userDN)
Retrieves this display name for a user.  | 
protected  void | 
readUserGroups(DirContext dirContext,
               User user)
Reads the groups to which a user belongs.  | 
protected  String | 
readUsername(DirContext dirContext,
             String userDN)
Retrieves this username attribute for a user.  | 
protected  void | 
readUserProfile(DirContext dirContext,
                User user)
Reads the profile attributes for a user.  | 
protected  StringSet | 
searchDNs(DirContext dirContext,
          String baseDN,
          String filter)
Returns a list of distinguished names resulting from a search.  | 
| Methods inherited from class com.esri.gpt.framework.security.identity.ldap.LdapFunctions | 
|---|
buildFullDN, closeEnumeration, getConfiguration, setConfiguration | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected LdapQueryFunctions()
protected LdapQueryFunctions(LdapConfiguration configuration)
configuration - the configuration| Method Detail | 
|---|
protected void appendAttributeValues(Attributes attributes,
                                     Map<String,Object> values,
                                     boolean stringsOnly)
                              throws NamingException
attributes - the attributes to append (from)values - the map of values to populate (to)stringsOnly - if true, only attributes values of type
        String will be appended
NamingException - if an exception occurs
protected void appendSubStringValues(Attribute attribute,
                                     StringSet values)
                              throws NamingException
attribute - the attribute containing values to append (from)values - the list of values to populate (to)
NamingException - if an exception occurs
protected StringSet readAttribute(DirContext dirContext,
                                  String objectDN,
                                  String attrubuteName)
                           throws NamingException
dirContext - the directory contextattrubuteName - attribute name.objectDN - the distinguished name of the object
NamingException - if an exception occurs
protected Map<String,Object> readAttributes(DirContext dirContext,
                                            String objectDN,
                                            boolean stringsOnly)
                                     throws NamingException
objectDN - the distinguished name of the objectstringsOnly - if true, consider strings only
NamingException - if an exception occurs
protected StringSet readGroupMembers(DirContext dirContext,
                                     String groupDN)
                              throws NamingException
dirContext - the directory contextgroupDN - the distinguished name of the group
NamingException - if an exception occurs
protected String readUserDisplayName(DirContext dirContext,
                                     String userDN)
                              throws NamingException
dirContext - the directory contextuserDN - the distinguished name for the user
NamingException
protected void readUserGroups(DirContext dirContext,
                              User user)
                       throws NamingException
dirContext - the directory contextuser - the subject user
NamingException - if an LDAP naming exception occurs
protected String readUsername(DirContext dirContext,
                              String userDN)
                       throws NamingException
dirContext - the directory contextuserDN - the distinguished name for the user
NamingException - if the username attribute does not exist
protected void readUserProfile(DirContext dirContext,
                               User user)
                        throws NamingException
dirContext - the directory contextuser - the subject user
NamingException - if an LDAP naming exception occurs
protected StringSet searchDNs(DirContext dirContext,
                              String baseDN,
                              String filter)
                       throws NamingException
dirContext - the directory contextbaseDN - the baseBN for the searchfilter - the filter for the search
NamingException - if an exception occurs
  | 
Esri Geoportal Server 1.0 
 | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||