public class MediatingAdditionalDescriptors extends Object implements IAdditionalDescriptors
IAdditionalDescriptors objects to delegate method calls to. For set/add/remove
operations all delegates are called. For get operations the first delegate to return a non-null/empty
result is used.| Constructor and Description |
|---|
MediatingAdditionalDescriptors() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(Map<String,List<Object>> attributes) |
Map<String,List<Object>> |
getAttributes() |
Object |
getAttributeValue(String name) |
List<Object> |
getAttributeValues(String name) |
String |
getName() |
List<Object> |
removeAttribute(String name)
Returns list of all removed values
|
void |
setAttributes(Map<String,List<Object>> attributes)
This should be atomic to the view of other methods on this interface.
|
List<Object> |
setAttributeValues(String name,
List<Object> values)
Returns list of all replaced values
|
void |
setDelegateDescriptors(List<IAdditionalDescriptors> delegateDescriptors) |
void |
setName(String name) |
public void setDelegateDescriptors(List<IAdditionalDescriptors> delegateDescriptors)
public void addAttributes(Map<String,List<Object>> attributes)
addAttributes in interface IAdditionalDescriptorsattributes - Attributes to add to the existing attribute Mappublic List<Object> removeAttribute(String name)
removeAttribute in interface IAdditionalDescriptorsname - Removes the specified attribute, must not be nullIAdditionalDescriptors.removeAttribute(java.lang.String)public List<Object> setAttributeValues(String name, List<Object> values)
setAttributeValues in interface IAdditionalDescriptorsname - Name of the attribute, must not be nullvalues - Values for the attribute, may be nullIAdditionalDescriptors.setAttributeValues(java.lang.String, java.util.List)public void setAttributes(Map<String,List<Object>> attributes)
IAdditionalDescriptorssetAttributes in interface IAdditionalDescriptorsattributes - Replace all existing attributes witht he specified Mappublic void setName(String name)
setName in interface IAdditionalDescriptorsname - The user name for the attributespublic Object getAttributeValue(String name)
getAttributeValue in interface IPersonAttributespublic List<Object> getAttributeValues(String name)
getAttributeValues in interface IPersonAttributespublic Map<String,List<Object>> getAttributes()
getAttributes in interface IPersonAttributesCopyright © 2015 Jasig. All Rights Reserved.