gov.bnl.gums.persistence
Class LocalPersistenceFactory

java.lang.Object
  extended by gov.bnl.gums.persistence.PersistenceFactory
      extended by gov.bnl.gums.persistence.LocalPersistenceFactory

public class LocalPersistenceFactory
extends PersistenceFactory

Persistence factory instantiation that combines a hibernate persistence factory with a small part of the ldap persistence factory (see addToSecondaryGroup). When a pool account is assigned a group, this is set in ldap.

Author:
Gabriele Carcassi, Jay Packard

Constructor Summary
LocalPersistenceFactory()
          Create a new local persistence factory.
LocalPersistenceFactory(Configuration configuration)
          Create a new local persistence factory with a configuration.
LocalPersistenceFactory(Configuration configuration, String name)
          Create a new local persistence factory with a configuration and a name.
 
Method Summary
 PersistenceFactory clone(Configuration configuration)
          Create a clone of itself
 String getCaCertFile()
           
 String getEmailField()
           
 String getGidNumberField()
           
 String getGroupCnField()
           
 String getGroupTree()
           
 String getGumsObject()
           
 String getGumsTree()
           
 Properties getLDAPProperties()
           
 String getMemberUidField()
           
 Properties getMySQLProperties()
           
 String getPeopleTree()
           
 String getTrustStorePassword()
           
 String getType()
           
static String getTypeStatic()
           
 String getUidField()
           
 boolean isSynch()
          Getter for property synchGroups.
 boolean isSynchGroups()
           
 AccountPoolMapperDB retrieveAccountPoolMapperDB(String name)
           
 ConfigurationDB retrieveConfigurationDB()
           
 ManualAccountMapperDB retrieveManualAccountMapperDB(String name)
           
 ManualUserGroupDB retrieveManualUserGroupDB(String name)
           
 UserGroupDB retrieveUserGroupDB(String name)
           
 void setAccountField(String accountField)
           
 void setCaCertFile(String caCertFile)
           
 void setConfiguration(Configuration configuration)
          Setter for property configuration.
 void setEmailField(String emailField)
           
 void setGidNumberField(String gidNumberField)
           
 void setGroupCnField(String groupCnField)
           
 void setGroupField(String groupField)
           
 void setGroupIdField(String groupIdField)
           
 void setGroupTree(String groupTree)
           
 void setGumsTree(String gumsTree)
           
 void setMemberAccountField(String memberAccountField)
           
 void setMemberUidField(String memberUidField)
           
 void setName(String name)
          Setter for property name.
 void setPeopleTree(String peopleTree)
           
 void setProperties(Properties properties)
          Setter for the list of properties for the particular technology deployed by the inhereted classes.
 void setSynch(boolean synch)
           
 void setSynchGroups(boolean synchGroups)
           
 void setTrustStorePassword(String trustStorePassword)
           
 void setUidField(String uidField)
           
 String toXML()
          Get XML representation of this object for writing to gums.config
 
Methods inherited from class gov.bnl.gums.persistence.PersistenceFactory
getConfiguration, getDescription, getName, getProperties, getStoreConfig, setDescription, setStoreConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalPersistenceFactory

public LocalPersistenceFactory()
Create a new local persistence factory. This empty constructor is needed by the XML Digester.


LocalPersistenceFactory

public LocalPersistenceFactory(Configuration configuration)
Create a new local persistence factory with a configuration.

Parameters:
configuration -

LocalPersistenceFactory

public LocalPersistenceFactory(Configuration configuration,
                               String name)
Create a new local persistence factory with a configuration and a name.

Parameters:
configuration -
name -
Method Detail

getTypeStatic

public static String getTypeStatic()

clone

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

Specified by:
clone in class PersistenceFactory
Returns:

getCaCertFile

public String getCaCertFile()

getEmailField

public String getEmailField()

getGidNumberField

public String getGidNumberField()

getGroupCnField

public String getGroupCnField()

getGroupTree

public String getGroupTree()

getGumsObject

public String getGumsObject()

getGumsTree

public String getGumsTree()

getLDAPProperties

public Properties getLDAPProperties()

getMemberUidField

public String getMemberUidField()

getMySQLProperties

public Properties getMySQLProperties()

getPeopleTree

public String getPeopleTree()

getTrustStorePassword

public String getTrustStorePassword()

getType

public String getType()
Overrides:
getType in class PersistenceFactory
Returns:
string representation of type of persistence factory

getUidField

public String getUidField()

isSynch

public boolean isSynch()
Getter for property synchGroups.

Returns:
Value of property synchGroups.

isSynchGroups

public boolean isSynchGroups()

retrieveAccountPoolMapperDB

public AccountPoolMapperDB retrieveAccountPoolMapperDB(String name)
Specified by:
retrieveAccountPoolMapperDB in class PersistenceFactory

retrieveConfigurationDB

public ConfigurationDB retrieveConfigurationDB()
Specified by:
retrieveConfigurationDB in class PersistenceFactory

retrieveManualAccountMapperDB

public ManualAccountMapperDB retrieveManualAccountMapperDB(String name)
Specified by:
retrieveManualAccountMapperDB in class PersistenceFactory

retrieveManualUserGroupDB

public ManualUserGroupDB retrieveManualUserGroupDB(String name)
Specified by:
retrieveManualUserGroupDB in class PersistenceFactory

retrieveUserGroupDB

public UserGroupDB retrieveUserGroupDB(String name)
Specified by:
retrieveUserGroupDB in class PersistenceFactory

setAccountField

public void setAccountField(String accountField)

setCaCertFile

public void setCaCertFile(String caCertFile)

setConfiguration

public void setConfiguration(Configuration configuration)
Description copied from class: PersistenceFactory
Setter for property configuration.

Overrides:
setConfiguration in class PersistenceFactory

setEmailField

public void setEmailField(String emailField)

setGidNumberField

public void setGidNumberField(String gidNumberField)

setGroupCnField

public void setGroupCnField(String groupCnField)

setGroupField

public void setGroupField(String groupField)

setGroupIdField

public void setGroupIdField(String groupIdField)

setGroupTree

public void setGroupTree(String groupTree)

setGumsTree

public void setGumsTree(String gumsTree)

setMemberAccountField

public void setMemberAccountField(String memberAccountField)

setMemberUidField

public void setMemberUidField(String memberUidField)

setName

public void setName(String name)
Description copied from class: PersistenceFactory
Setter for property name.

Overrides:
setName in class PersistenceFactory

setPeopleTree

public void setPeopleTree(String peopleTree)

setProperties

public void setProperties(Properties properties)
Description copied from class: PersistenceFactory
Setter for the list of properties for the particular technology deployed by the inhereted classes.

Overrides:
setProperties in class PersistenceFactory

setSynch

public void setSynch(boolean synch)

setSynchGroups

public void setSynchGroups(boolean synchGroups)

setTrustStorePassword

public void setTrustStorePassword(String trustStorePassword)

setUidField

public void setUidField(String uidField)

toXML

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

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


Copyright © 2004-2009. All Rights Reserved.