org.jasig.services.persondir.support.merger
Interface IAttributeMerger

All Known Implementing Classes:
MultivaluedAttributeMerger, NoncollidingAttributeAdder, ReplacingAttributeAdder

public interface IAttributeMerger

Interface for merging attributes from sibling PersonAttributeDaos.

Version:
$Revision: 2871 $ $Date: 2006-12-08 13:41:33 -0600 (Fri, 08 Dec 2006) $
Author:
andrew.petro@yale.edu

Method Summary
 Map mergeAttributes(Map toModify, Map toConsider)
          Modify the "toModify" argument in consideration of the "toConsider" argument.
 

Method Detail

mergeAttributes

Map mergeAttributes(Map toModify,
                    Map toConsider)
Modify the "toModify" argument in consideration of the "toConsider" argument. Return the resulting Map, which may or may not be the same reference as the "toModify" argument. The modification performed is implementation-specific -- implementations of this interface exist to perform some particular transformation on the toModify argument given the toConsider argument.

Parameters:
toModify - - modify this map
toConsider - - in consideration of this map
Returns:
the modified Map
Throws:
IllegalArgumentException - if either toModify or toConsider is null


Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.