gov.bnl.gums.account
Class GecosNisAccountMapper

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

public class GecosNisAccountMapper
extends GecosAccountMapper

Matches the DN with the account information retrieved from a NIS server.

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
GecosNisAccountMapper()
           
GecosNisAccountMapper(Configuration configuration)
           
GecosNisAccountMapper(Configuration configuration, String name)
           
 
Method Summary
 AccountMapper clone(Configuration configuration)
          Create a clone of itself
 GecosMap createMap()
          Implements the creation of the map.
 String getAccountField()
           
 String getGecosField()
           
 String getJndiNisUrl()
           
protected  String getMapName()
          Returns an ID for the map used/created by this specific mapper.
 String getType()
           
static String getTypeStatic()
           
 void setAccountField(String accountField)
           
 void setGecosField(String gecosField)
           
 void setJndiNisUrl(String jndiNisUrl)
           
 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

GecosNisAccountMapper

public GecosNisAccountMapper()

GecosNisAccountMapper

public GecosNisAccountMapper(Configuration configuration)

GecosNisAccountMapper

public GecosNisAccountMapper(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:

createMap

public 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

getAccountField

public String getAccountField()

getGecosField

public String getGecosField()

getJndiNisUrl

public String getJndiNisUrl()

setAccountField

public void setAccountField(String accountField)

setGecosField

public void setGecosField(String gecosField)

getType

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

setJndiNisUrl

public void setJndiNisUrl(String jndiNisUrl)

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

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.