|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.services.persondir.support.merger.BaseAdditiveAttributeMerger
public abstract class BaseAdditiveAttributeMerger
Merges the Sets of IPersons additively calling the abstract mergePersonAttributes(Map, Map) method on the
attributes of IPersons that exist in both sets. The mergeAvailableQueryAttributes(Set, Set) and mergePossibleUserAttributeNames(Set, Set)
methods do a simple addative merge of the sets. These can be overriden by subclasses.
| Constructor Summary | |
|---|---|
BaseAdditiveAttributeMerger()
|
|
| Method Summary | |
|---|---|
protected Map<String,List<Object>> |
buildMutableAttributeMap(Map<String,List<Object>> attributes)
Do a deep clone of an attribute Map to ensure it is completley mutable. |
protected Map<String,List<Object>> |
createMutableAttributeMap(int size)
Create the Map used when merging attributes |
Map<String,List<Object>> |
mergeAttributes(Map<String,List<Object>> toModify,
Map<String,List<Object>> toConsider)
Modify the "toModify" argument in consideration of the "toConsider" argument. |
Set<String> |
mergeAvailableQueryAttributes(Set<String> toModify,
Set<String> toConsider)
Modify the "toModify" argument in consideration of the "toConsider" argument. |
protected abstract 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. |
Set<String> |
mergePossibleUserAttributeNames(Set<String> toModify,
Set<String> toConsider)
Modify the "toModify" argument in consideration of the "toConsider" argument. |
Set<IPersonAttributes> |
mergeResults(Set<IPersonAttributes> toModify,
Set<IPersonAttributes> toConsider)
Merge the results of a search.IPersonLookupDao call
and a compiled results map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseAdditiveAttributeMerger()
| Method Detail |
|---|
public Set<String> mergeAvailableQueryAttributes(Set<String> toModify,
Set<String> toConsider)
IAttributeMerger
mergeAvailableQueryAttributes in interface IAttributeMergertoModify - Modify this settoConsider - In consideration of this set
public Set<String> mergePossibleUserAttributeNames(Set<String> toModify,
Set<String> toConsider)
IAttributeMerger
mergePossibleUserAttributeNames in interface IAttributeMergertoModify - Modify this settoConsider - In consideration of this set
public final Set<IPersonAttributes> mergeResults(Set<IPersonAttributes> toModify,
Set<IPersonAttributes> toConsider)
IAttributeMergersearch.IPersonLookupDao call
and a compiled results map.
mergeResults in interface IAttributeMergertoModify - The compiled results map, this will be modified based on the values in toConsider.toConsider - The query results map, this will not be modified.protected Map<String,List<Object>> buildMutableAttributeMap(Map<String,List<Object>> attributes)
protected Map<String,List<Object>> createMutableAttributeMap(int size)
protected abstract Map<String,List<Object>> mergePersonAttributes(Map<String,List<Object>> toModify,
Map<String,List<Object>> toConsider)
toModify - - modify this maptoConsider - - in consideration of this map
IllegalArgumentException - if either toModify or toConsider is null
public Map<String,List<Object>> mergeAttributes(Map<String,List<Object>> toModify,
Map<String,List<Object>> toConsider)
IAttributeMerger
mergeAttributes in interface IAttributeMergertoModify - - modify this maptoConsider - - in consideration of this map
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||