us.openinternet.luge.valueobject
Class PersonVO

java.lang.Object
  |
  +--us.openinternet.luge.valueobject.ValueObject
        |
        +--us.openinternet.luge.valueobject.PersonVO
All Implemented Interfaces:
java.io.Serializable

public class PersonVO
extends ValueObject

This is a ValueObject specialized to handle person data.
Don't forget to take a close look at the methods inherited from ValueObject.

See Also:
Serialized Form

Constructor Summary
PersonVO()
           
PersonVO(java.util.Hashtable ht)
          Use this constructor to load initial attribute:value data or you can use the empty constructor and the method setAllAttributes(Hashtable ht)
 
Method Summary
 java.lang.String getCity()
          Use this method to get the ldap value for l (that's right...
 java.lang.String getCommonName()
          Use this method to get the ldap value for cn or just use getAttributeValue("cn")
 java.lang.String getDisplayName()
          Use this method to get the ldap value for the displayName attribute
 java.lang.String getEmail()
          Use this method to get the ldap value for mail or just use getAttributeValue("mail")
 java.lang.String getFaxNumber()
          Use this method to get the ldap value for facsimileTelephoneNumber or just use getAttributeValue("facsimileTelephoneNumber")
 java.lang.String getFirstName()
          Use this method to get the ldap value for first name or "given name." Or just use getAttributeValue("givenname")
 java.lang.String getLastName()
          Use this method to get the ldap value for sn or just use getAttributeValue("sn")
 java.lang.String getMiddleName()
          Use this method to get the ldap value for initials or just use getAttributeValue("initials")
 java.lang.String getName()
          This method returns first uid and then cn.if uid is not found.
 java.lang.String getTelephoneNumber()
          Use this method to get the ldap value for the telephoneNumber attribute
 java.lang.String getUID()
          Use this method to get the ldap value for uid or just use getAttributeValue("uid")
 void setCity(java.lang.String city)
          Use this method to set the ldap value for l (that's right...
 void setDisplayName(java.lang.String displayName)
          Use this method to set the ldap value for the displayName attribute
 void setEmail(java.lang.String eMailAddress)
          Use this method to set the ldap value for mail or just use setAttributeValue("mail", "foo_bar@spam.com")
 void setFaxNumber(java.lang.String faxNumber)
          Use this method to set the ldap value for facsimileTelephoneNumber or just use setAttributeValue("facsimileTelephoneNumber", "1-732-750-5800")
 void setFirstName(java.lang.String firstName)
          Use this method to set the ldap value for uid or just use setAttributeValue("givenname", "Foo")
 void setLastName(java.lang.String lastName)
          Use this method to set the ldap value for sn or just use setAttributeValue("sn", "Bar")
 void setMiddleName(java.lang.String middleName)
          Use this method to set the ldap value for initials or just use setAttributeValue("initials", "MyMiddleName")
 void setName(java.lang.String name)
          This method sets the uid of the person,
 void setTelephoneNumber(java.lang.String telephoneNumber)
          Use this method to set the ldap value for the telephoneNumber attribute
 void setUID(java.lang.String uid)
          Use this method to set the ldap value for uid and currently also for cn, although this may change in the future.
 
Methods inherited from class us.openinternet.luge.valueobject.ValueObject
addValueToAttribute, appendAttributes, getAllAttributes, getAttributeNames, getAttributeValue, getMultiValuedAttribute, setAllAttributes, setAttributeValue, setAttributeValues, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonVO

public PersonVO()

PersonVO

public PersonVO(java.util.Hashtable ht)
Use this constructor to load initial attribute:value data or you can use the empty constructor and the method setAllAttributes(Hashtable ht)

Method Detail

getName

public java.lang.String getName()
This method returns first uid and then cn.if uid is not found.

Returns:
String value or null

setName

public void setName(java.lang.String name)
This method sets the uid of the person,


setUID

public void setUID(java.lang.String uid)
Use this method to set the ldap value for uid and currently also for cn, although this may change in the future. Use setName if you want to make sure you are seting the correct unique identifier.


getUID

public java.lang.String getUID()
Use this method to get the ldap value for uid or just use getAttributeValue("uid")

Returns:
String value or null

setLastName

public void setLastName(java.lang.String lastName)
Use this method to set the ldap value for sn or just use setAttributeValue("sn", "Bar")


getLastName

public java.lang.String getLastName()
Use this method to get the ldap value for sn or just use getAttributeValue("sn")

Returns:
String value or null

setFirstName

public void setFirstName(java.lang.String firstName)
Use this method to set the ldap value for uid or just use setAttributeValue("givenname", "Foo")


getFirstName

public java.lang.String getFirstName()
Use this method to get the ldap value for first name or "given name." Or just use getAttributeValue("givenname")

Returns:
String value or null

getCommonName

public java.lang.String getCommonName()
Use this method to get the ldap value for cn or just use getAttributeValue("cn")

Returns:
String value or null

setMiddleName

public void setMiddleName(java.lang.String middleName)
Use this method to set the ldap value for initials or just use setAttributeValue("initials", "MyMiddleName")


getMiddleName

public java.lang.String getMiddleName()
Use this method to get the ldap value for initials or just use getAttributeValue("initials")

Returns:
String value or null

setTelephoneNumber

public void setTelephoneNumber(java.lang.String telephoneNumber)
Use this method to set the ldap value for the telephoneNumber attribute


getTelephoneNumber

public java.lang.String getTelephoneNumber()
Use this method to get the ldap value for the telephoneNumber attribute

Returns:
String value or null

setEmail

public void setEmail(java.lang.String eMailAddress)
Use this method to set the ldap value for mail or just use setAttributeValue("mail", "foo_bar@spam.com")


getEmail

public java.lang.String getEmail()
Use this method to get the ldap value for mail or just use getAttributeValue("mail")

Returns:
String value or null

setCity

public void setCity(java.lang.String city)
Use this method to set the ldap value for l (that's right... just "el") Or use setAttributeValue("l", "New York")


getCity

public java.lang.String getCity()
Use this method to get the ldap value for l (that's right... just "el") or just use getAttributeValue("l")

Returns:
String value or null

setDisplayName

public void setDisplayName(java.lang.String displayName)
Use this method to set the ldap value for the displayName attribute


getDisplayName

public java.lang.String getDisplayName()
Use this method to get the ldap value for the displayName attribute

Returns:
String value or null

setFaxNumber

public void setFaxNumber(java.lang.String faxNumber)
Use this method to set the ldap value for facsimileTelephoneNumber or just use setAttributeValue("facsimileTelephoneNumber", "1-732-750-5800")


getFaxNumber

public java.lang.String getFaxNumber()
Use this method to get the ldap value for facsimileTelephoneNumber or just use getAttributeValue("facsimileTelephoneNumber")

Returns:
String value or null

Copyright 2003, Michael Schwartz All Rights Reserved.