org.sakaiproject.component.common.edu.person
Class PersonImpl

java.lang.Object
  extended byorg.sakaiproject.component.common.manager.PersistableImpl
      extended byorg.sakaiproject.component.common.edu.person.PersonImpl
All Implemented Interfaces:
Persistable, Person
Direct Known Subclasses:
OrganizationalPersonImpl

public class PersonImpl
extends PersistableImpl
implements Person

Version:
$Id: PersonImpl.java 632 2005-07-14 21:22:50Z janderse@umich.edu $
Author:
Lance Speelmon

Field Summary
protected  String agentUuid
           
protected  String commonName
           
protected  String description
           
protected  String seeAlso
           
protected  String street
           
protected  String surname
           
protected  String telephoneNumber
           
protected  String typeUuid
           
 
Fields inherited from class org.sakaiproject.component.common.manager.PersistableImpl
createdBy, createdDate, id, lastModifiedBy, lastModifiedDate, uuid, version
 
Constructor Summary
PersonImpl()
           
 
Method Summary
protected  String businessKey()
           
 boolean equals(Object obj)
           
 String getAgentUuid()
           
 String getCommonName()
          Common name.
 String getDescription()
          Open-ended; whatever the person or the directory manager puts here.
 String getSeeAlso()
          Follow person object class definition: Identifies (by DN) another directory server entry that may contain information related to this entry.
 String getStreet()
          According to RFC 2256, "This attribute contains the physical address of the object to which the entry corresponds, such as an address for package delivery (streetAddress)."
 String getSurname()
          Surname or family name.
 String getTelephoneNumber()
          Office/campus phone number.
 String getTypeUuid()
           
 int hashCode()
           
 void setAgentUuid(String agentUuid)
           
 void setCommonName(String commonName)
          Common name.
 void setDescription(String description)
          Open-ended; whatever the person or the directory manager puts here.
 void setSeeAlso(String seeAlso)
          Follow person object class definition: Identifies (by DN) another directory server entry that may contain information related to this entry.
 void setStreet(String street)
          According to RFC 2256, "This attribute contains the physical address of the object to which the entry corresponds, such as an address for package delivery (streetAddress)."
 void setSurname(String surname)
          Surname or family name.
 void setTelephoneNumber(String telephoneNumber)
          Office/campus phone number.
 void setTypeUuid(String typeUuid)
           
 String toString()
           
 
Methods inherited from class org.sakaiproject.component.common.manager.PersistableImpl
getCreatedBy, getCreatedDate, getId, getLastModifiedBy, getLastModifiedDate, getUuid, getVersion, setCreatedBy, setCreatedDate, setId, setLastModifiedBy, setLastModifiedDate, setUuid, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.api.common.manager.Persistable
getCreatedBy, getCreatedDate, getLastModifiedBy, getLastModifiedDate, getUuid
 

Field Detail

agentUuid

protected String agentUuid

typeUuid

protected String typeUuid

commonName

protected String commonName

description

protected String description

seeAlso

protected String seeAlso

surname

protected String surname

street

protected String street

telephoneNumber

protected String telephoneNumber
Constructor Detail

PersonImpl

public PersonImpl()
Method Detail

businessKey

protected String businessKey()

equals

public boolean equals(Object obj)
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class PersistableImpl
See Also:
Object.toString()

getAgentUuid

public String getAgentUuid()
Specified by:
getAgentUuid in interface Person
Returns:
The UUID of the Agent for which this record describes.
See Also:
Person.getAgentUuid()

setAgentUuid

public void setAgentUuid(String agentUuid)
Specified by:
setAgentUuid in interface Person
Parameters:
agentUuid - The UUID of the Agent for which this record describes.
See Also:
Person.setAgentUuid(java.lang.String)

getTypeUuid

public String getTypeUuid()
Specified by:
getTypeUuid in interface Person
Returns:
Returns the typeUuid.

setTypeUuid

public void setTypeUuid(String typeUuid)
Specified by:
setTypeUuid in interface Person
Parameters:
typeUuid - The typeUuid to set.

getCommonName

public String getCommonName()
Description copied from interface: Person
Common name. According to RFC 2256, "This is the X.500 commonName attribute, which contains a name of an object. If the object corresponds to a person, it is typically the person's full name.�

Specified by:
getCommonName in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getCommonName()

setCommonName

public void setCommonName(String commonName)
Description copied from interface: Person
Common name. According to RFC 2256, "This is the X.500 commonName attribute, which contains a name of an object. If the object corresponds to a person, it is typically the person's full name.�

Specified by:
setCommonName in interface Person
Parameters:
commonName - The commonName to set.

getDescription

public String getDescription()
Description copied from interface: Person
Open-ended; whatever the person or the directory manager puts here. According to RFC 2256, "This attribute contains a human-readable description of the object."

Specified by:
getDescription in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getDescription()

setDescription

public void setDescription(String description)
Description copied from interface: Person
Open-ended; whatever the person or the directory manager puts here. According to RFC 2256, "This attribute contains a human-readable description of the object."

Specified by:
setDescription in interface Person
Parameters:
description - The description to set.

getSeeAlso

public String getSeeAlso()
Description copied from interface: Person
Follow person object class definition: Identifies (by DN) another directory server entry that may contain information related to this entry.

According to X.520(2000), "The See Also attribute type specifies names of other Directory objects which may be other aspects (in some sense) of the same real world object."

Specified by:
getSeeAlso in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getSeeAlso()

setSeeAlso

public void setSeeAlso(String seeAlso)
Description copied from interface: Person
Follow person object class definition: Identifies (by DN) another directory server entry that may contain information related to this entry.

According to X.520(2000), "The See Also attribute type specifies names of other Directory objects which may be other aspects (in some sense) of the same real world object."

Specified by:
setSeeAlso in interface Person
Parameters:
seeAlso - The seeAlso to set.
Returns:

getSurname

public String getSurname()
Description copied from interface: Person
Surname or family name. According to RFC 2256, "This is the X.500 surname attribute, which contains the family name of a person."

Specified by:
getSurname in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getSurname()

setSurname

public void setSurname(String surname)
Description copied from interface: Person
Surname or family name. According to RFC 2256, "This is the X.500 surname attribute, which contains the family name of a person."

Specified by:
setSurname in interface Person
Parameters:
surname - The surname to set.

getStreet

public String getStreet()
Description copied from interface: Person
According to RFC 2256, "This attribute contains the physical address of the object to which the entry corresponds, such as an address for package delivery (streetAddress)."

Specified by:
getStreet in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getStreet()

setStreet

public void setStreet(String street)
Description copied from interface: Person
According to RFC 2256, "This attribute contains the physical address of the object to which the entry corresponds, such as an address for package delivery (streetAddress)."

Specified by:
setStreet in interface Person
Parameters:
street - The street to set.
Returns:

getTelephoneNumber

public String getTelephoneNumber()
Description copied from interface: Person
Office/campus phone number. Attribute values should follow the agreed format for international telephone numbers: i.e., "+44 71 123 4567."

Specified by:
getTelephoneNumber in interface Person
Returns:
See Also:
org.sakaiproject.service.profile.Person#getTelephoneNumber()

setTelephoneNumber

public void setTelephoneNumber(String telephoneNumber)
Description copied from interface: Person
Office/campus phone number. Attribute values should follow the agreed format for international telephone numbers: i.e., "+44 71 123 4567."

Specified by:
setTelephoneNumber in interface Person
Parameters:
telephoneNumber - The telephoneNumber to set.
Returns: