org.jasig.portlet.search.ldap
Class Person

java.lang.Object
  extended by org.jasig.portlet.search.ldap.Person

public class Person
extends java.lang.Object

This Person class represents a person found via directory search. The Person is comprised of a full name used for display purposes and a map of all other visible attributes.

Version:
$Revision: 44239 $
Author:
Jen Bourey

Constructor Summary
Person()
           
 
Method Summary
 java.lang.String get(java.lang.String key)
          Get an individual attribute for this Person.
 java.util.Map<java.lang.String,java.lang.String> getAttributes()
          Get a map of attributes for this Person.
 java.lang.String getFullName()
          Get the full display name of this Person.
 void put(java.lang.String key, java.lang.String value)
          Set an individual attribute for this Person.
 void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
          Set the map of attributes for this Person.
 void setFullName(java.lang.String fullName)
          Set the full display name of this Person.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Person

public Person()
Method Detail

getFullName

public java.lang.String getFullName()
Get the full display name of this Person.

Returns:
full name

setFullName

public void setFullName(java.lang.String fullName)
Set the full display name of this Person.

Parameters:
fullName -

getAttributes

public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Get a map of attributes for this Person.

Returns:
attributes

setAttributes

public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Set the map of attributes for this Person. Mapped attributes should represent all visible properties of the person except the full name.

Parameters:
attributes -

put

public void put(java.lang.String key,
                java.lang.String value)
Set an individual attribute for this Person.

Parameters:
key - name of the Person attribute to set
value - attribute value

get

public java.lang.String get(java.lang.String key)
Get an individual attribute for this Person.

Parameters:
key - name of the Person attribute to retrieve
Returns:
attribute value


Copyright © 2009 Jasig. All Rights Reserved.