Esri Geoportal Server
1.0

com.esri.gpt.framework.security.identity.ldap
Class LdapNameMapping

java.lang.Object
  extended by com.esri.gpt.framework.security.identity.ldap.LdapNameMapping

public class LdapNameMapping
extends Object

Maps application names to LDAP names.


Constructor Summary
LdapNameMapping()
          Default constructor.
 
Method Summary
 void add(String applicationName, String ldapName)
          Adds a naming reference.
 void configureFromUserAttributes(UserAttributeMap configuredAttributes)
          Configures the mapping from a supplied user attribute map.
 String findApplicationName(String ldapName)
          Finds the application name associated with and LDAP name.
 String findLdapName(String applicationName)
          Finds the LDAP name associated with an application name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapNameMapping

public LdapNameMapping()
Default constructor.

Method Detail

add

public void add(String applicationName,
                String ldapName)
Adds a naming reference.

Parameters:
applicationName - the application reference name
ldapName - the corresponding LDAP reference name

configureFromUserAttributes

public void configureFromUserAttributes(UserAttributeMap configuredAttributes)
Configures the mapping from a supplied user attribute map.

Parameters:
configuredAttributes - the configured user attributes

findApplicationName

public String findApplicationName(String ldapName)
Finds the application name associated with and LDAP name.

Parameters:
ldapName - the known LDAP name
Returns:
the corresponding application name (zero-length string if none)

findLdapName

public String findLdapName(String applicationName)
Finds the LDAP name associated with an application name.

Parameters:
applicationName - the known application name
Returns:
the corresponding LDAP name (zero-length string if none)

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.