gov.bnl.gums.account
Class GecosLdapAccountMapper

java.lang.Object
  extended by gov.bnl.gums.account.AccountMapper
      extended by gov.bnl.gums.account.GecosAccountMapper
          extended by gov.bnl.gums.account.GecosLdapAccountMapper

public class GecosLdapAccountMapper
extends GecosAccountMapper

Matches the DN with the account information retrieved from an LDAP server.

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
GecosLdapAccountMapper()
           
GecosLdapAccountMapper(Configuration configuration)
           
GecosLdapAccountMapper(Configuration configuration, String name)
           
 
Method Summary
 AccountMapper clone(Configuration configuration)
          Create a clone of itself
protected  GecosMap createMap()
          Implements the creation of the map.
 String getAccountField()
           
 String getGecosField()
           
 String getJndiLdapUrl()
           
protected  String getMapName()
          Returns an ID for the map used/created by this specific mapper.
 String getPeopleObject()
           
 String getType()
           
static String getTypeStatic()
           
 void setAccountField(String accountField)
           
 void setGecosField(String gecosField)
           
 void setJndiLdapUrl(String jndiLdapUrl)
           
 void setPeopleObject(String peopleObject)
           
 String toString(String bgColor)
          Get string representation of this object for displaying in the diagnostic summary web page
 String toXML()
          Get XML representation of this object for writing to gums.config
 
Methods inherited from class gov.bnl.gums.account.GecosAccountMapper
mapUser
 
Methods inherited from class gov.bnl.gums.account.AccountMapper
getConfiguration, getDescription, getName, mapUser, setConfiguration, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GecosLdapAccountMapper

public GecosLdapAccountMapper()

GecosLdapAccountMapper

public GecosLdapAccountMapper(Configuration configuration)

GecosLdapAccountMapper

public GecosLdapAccountMapper(Configuration configuration,
                              String name)
Method Detail

getTypeStatic

public static String getTypeStatic()

clone

public AccountMapper clone(Configuration configuration)
Description copied from class: AccountMapper
Create a clone of itself

Specified by:
clone in class AccountMapper
Returns:

getAccountField

public String getAccountField()

getGecosField

public String getGecosField()

getJndiLdapUrl

public String getJndiLdapUrl()

getPeopleObject

public String getPeopleObject()

getType

public String getType()
Overrides:
getType in class GecosAccountMapper
Returns:
string representation of type of account mapper

setAccountField

public void setAccountField(String accountField)

setGecosField

public void setGecosField(String gecosField)

setJndiLdapUrl

public void setJndiLdapUrl(String jndiLdapUrl)

setPeopleObject

public void setPeopleObject(String peopleObject)

toString

public String toString(String bgColor)
Description copied from class: AccountMapper
Get string representation of this object for displaying in the diagnostic summary web page

Specified by:
toString in class AccountMapper
Parameters:
bgColor - back ground color
Returns:

toXML

public String toXML()
Description copied from class: AccountMapper
Get XML representation of this object for writing to gums.config

Specified by:
toXML in class AccountMapper
Returns:
xml as string

createMap

protected GecosMap createMap()
Description copied from class: GecosAccountMapper
Implements the creation of the map. The implementation is supposed to connect to the source, and fill an object of the GecosMap type.

Specified by:
createMap in class GecosAccountMapper
Returns:
GECOS map object

getMapName

protected String getMapName()
Description copied from class: GecosAccountMapper
Returns an ID for the map used/created by this specific mapper. The name will be used to cache the generated map also across different instances of the mapper.

Specified by:
getMapName in class GecosAccountMapper
Returns:
map name as String


Copyright © 2004-2009. All Rights Reserved.