org.jasig.services.persondir.support
Interface IAdditionalDescriptors

All Superinterfaces:
IPersonAttributes, Principal, Serializable
All Known Implementing Classes:
AdditionalDescriptors, MediatingAdditionalDescriptors

public interface IAdditionalDescriptors
extends IPersonAttributes

Interface that describes what is essentially a mutable IPersonAttributes object

Version:
$Revision$
Author:
Eric Dalquist

Method Summary
 void addAttributes(Map<String,List<Object>> attributes)
           
 List<Object> removeAttribute(String name)
           
 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)
          Sets the specified attribute values
 void setName(String name)
           
 
Methods inherited from interface org.jasig.services.persondir.IPersonAttributes
getAttributes, getAttributeValue, getAttributeValues
 
Methods inherited from interface java.security.Principal
equals, getName, hashCode, toString
 

Method Detail

setName

void setName(String name)
Parameters:
name - The user name for the attributes

addAttributes

void addAttributes(Map<String,List<Object>> attributes)
Parameters:
attributes - Attributes to add to the existing attribute Map

setAttributes

void setAttributes(Map<String,List<Object>> attributes)
This should be atomic to the view of other methods on this interface.

Parameters:
attributes - Replace all existing attributes witht he specified Map

setAttributeValues

List<Object> setAttributeValues(String name,
                                List<Object> values)
Sets the specified attribute values

Parameters:
name - Name of the attribute, must not be null
values - Values for the attribute, may be null
Returns:
The previous values for the attribute if they existed

removeAttribute

List<Object> removeAttribute(String name)
Parameters:
name - Removes the specified attribute, must not be null
Returns:
The removed values for the attribute if they existed


Copyright © 2012 Jasig. All Rights Reserved.