LegacyPersonAttributeDao

LegacyPersonAttributeDao is the Java object implementing the uPortal 2.4 PersonDirectory strategy of parsing PersonDirs.xml and executing the recipe it describes for obtaining user attributes.

Implementation

LegacyPersonAttributeDao's implementation is as follows:

At Construction

At construction, LegacyPersonAttributeDao uses the ResourceLoader to load /properties/PersonDirs.xml . It feeds this Document into PersonDirXmlParser which parses it into a List of PersonDirInfo instances. LegacyPersonAttributeDao uses PersonDirInfoAdaptor to translate from a PersonDirInfo to an IPersonAttributeDao instance implementing the recipe (a JDBC or LDAP recipe) represented by the particular PersonDirInfo.

LegacyPersonAttributeDao then instantiates a MergingPersonAttributeDaoImpl with the IPersonAttributeDao instances as the child DAOs it is merging. LegacyPersonAttributeDao configures the MergingPersonAttributeDaoImpl to use the ReplacingAttributeAdder merge strategy.

Finally, the constructor stores the configured MergingPersonAttributeDaoImpl in an instance variable.

Implementing IPersonAttributeDao

LegacyPersonAttributeDao implements the IPersonAttributeDao methods by delegation to its configured MergingPersonAttributeDaoImpl.