gov.bnl.gums.account
Class AccountPoolMapper

java.lang.Object
  extended by gov.bnl.gums.account.AccountMapper
      extended by gov.bnl.gums.account.AccountPoolMapper

public class AccountPoolMapper
extends AccountMapper

Provides the mapping by assigning user accounts from a pool provided by the AccountPoolMapperDB.

The accounts are mapped when the mapUser function is called for that particular user. Accounts are never deleted from the pool

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
AccountPoolMapper()
           
AccountPoolMapper(Configuration configuration)
           
AccountPoolMapper(Configuration configuration, java.lang.String name)
           
 
Method Summary
 AccountMapper clone(Configuration configuration)
          Create a clone of itself
 java.lang.String getAccountPool()
           
 java.lang.String getAccountPoolRoot()
           
 java.lang.String getAssignments()
           
 AccountPoolMapperDB getDB()
           
 java.lang.String getPersistenceFactory()
           
 java.lang.String getType()
           
static java.lang.String getTypeStatic()
           
 java.lang.String mapUser(java.lang.String userDN, boolean createIfDoesNotExist)
          Maps a grid identity to a local account name.
 void setAccountPool(java.lang.String accountPool)
           
 void setPersistenceFactory(java.lang.String persistenceFactory)
           
 java.lang.String toString(java.lang.String bgColor)
          Get string representation of this object for displaying in the diagnostic summary web page
 java.lang.String toXML()
          Get XML representation of this object for writing to gums.config
 
Methods inherited from class gov.bnl.gums.account.AccountMapper
getConfiguration, getDescription, getName, setConfiguration, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountPoolMapper

public AccountPoolMapper()

AccountPoolMapper

public AccountPoolMapper(Configuration configuration)

AccountPoolMapper

public AccountPoolMapper(Configuration configuration,
                         java.lang.String name)
Method Detail

getTypeStatic

public static java.lang.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:

getAccountPool

public java.lang.String getAccountPool()

getAccountPoolRoot

public java.lang.String getAccountPoolRoot()

getDB

public AccountPoolMapperDB getDB()

getAssignments

public java.lang.String getAssignments()
Returns:
String representation of how many accounts are assigned in database for each root account

getPersistenceFactory

public java.lang.String getPersistenceFactory()

getType

public java.lang.String getType()
Overrides:
getType in class AccountMapper
Returns:
string representation of type of account mapper

mapUser

public java.lang.String mapUser(java.lang.String userDN,
                                boolean createIfDoesNotExist)
Description copied from class: AccountMapper
Maps a grid identity to a local account name.

Specified by:
mapUser in class AccountMapper
Parameters:
userDN - the certificate DN (i.e. '/DC=org/DC=doegrids/OU=People/CN=John Smith').
Returns:
a user account (i.e. 'atlas').

setAccountPool

public void setAccountPool(java.lang.String accountPool)

setPersistenceFactory

public void setPersistenceFactory(java.lang.String persistenceFactory)

toString

public java.lang.String toString(java.lang.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 java.lang.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


Copyright © 2004-2008. All Rights Reserved.