org.jasig.services.persondir.support.merger
Class NoncollidingAttributeAdder

java.lang.Object
  extended by org.jasig.services.persondir.support.merger.BaseAdditiveAttributeMerger
      extended by org.jasig.services.persondir.support.merger.NoncollidingAttributeAdder
All Implemented Interfaces:
IAttributeMerger

public class NoncollidingAttributeAdder
extends BaseAdditiveAttributeMerger

Merger which implements accumulation of Map entries such that entries once established are individually immutable.

Version:
$Revision$ $Date$
Author:
andrew.petro@yale.edu

Constructor Summary
NoncollidingAttributeAdder()
           
 
Method Summary
protected  Map<String,List<Object>> mergePersonAttributes(Map<String,List<Object>> toModify, Map<String,List<Object>> toConsider)
          Modify the "toModify" argument in consideration of the "toConsider" argument.
 
Methods inherited from class org.jasig.services.persondir.support.merger.BaseAdditiveAttributeMerger
buildMutableAttributeMap, createMutableAttributeMap, mergeAttributes, mergeAvailableQueryAttributes, mergePossibleUserAttributeNames, mergeResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoncollidingAttributeAdder

public NoncollidingAttributeAdder()
Method Detail

mergePersonAttributes

protected Map<String,List<Object>> mergePersonAttributes(Map<String,List<Object>> toModify,
                                                         Map<String,List<Object>> toConsider)
Description copied from class: BaseAdditiveAttributeMerger
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.

Specified by:
mergePersonAttributes in class BaseAdditiveAttributeMerger
Parameters:
toModify - - modify this map
toConsider - - in consideration of this map
Returns:
the modified Map


Copyright © 2012 Jasig. All Rights Reserved.