|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.clra.web.MemberView
Read-only information about a member. This is a thin wrapper around MemberSnapshot. The class exists so that some logic can be pulled out of the memberlist.jsp screen.
Constructor Summary | |
MemberView()
Produces an invalid MemberView. |
|
MemberView(Integer id,
String accountName,
String accountPassword,
String clraStatus,
MemberName memberName,
String email,
Map telephoneNumbers,
Address address,
Date clraYear,
Date birth)
|
|
MemberView(MemberSnapshot snapshot)
|
Method Summary | |
int |
compareTo(Object o)
Defines a natural ordering for members by lastname, firstname, middlename and suffix. |
boolean |
equals(Object o)
Two members are equal iff their id's are equal. |
String |
getAccountName()
|
String |
getAccountPassword()
|
Address |
getAddress()
FIXME define separate accessors for Address components? |
Date |
getBirthDate()
|
String |
getClraStatus()
|
Date |
getClraYear()
|
String |
getEmail()
|
Integer |
getId()
|
MemberName |
getMemberName()
FIXME return String with First, Middle, Last, Suffix |
MemberNameFormat |
getMemberNameFormat()
Returns the format used by getName() |
String |
getName()
Returns a String presentation of a member's name, formatted according to getMemberNameFormat(). |
Map |
getTelephoneNumbers()
FIXME define separate accessors for day/evening/other number |
boolean |
hasEmail()
|
int |
hashCode()
Member objects are hashed by id's |
boolean |
hasKnownBirthDate()
|
void |
setMemberNameFormat(MemberNameFormat memberNameFormat)
Sets the format used by getName() |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemberView()
public MemberView(MemberSnapshot snapshot)
public MemberView(Integer id, String accountName, String accountPassword, String clraStatus, MemberName memberName, String email, Map telephoneNumbers, Address address, Date clraYear, Date birth) throws ValidationException
Method Detail |
public MemberNameFormat getMemberNameFormat()
public void setMemberNameFormat(MemberNameFormat memberNameFormat)
public String getName()
getName
in interface INamed
com.clra.util.INamed
public Integer getId()
public String getAccountName()
public String getAccountPassword()
public String getClraStatus()
public MemberName getMemberName()
public boolean hasEmail()
public String getEmail()
public Map getTelephoneNumbers()
public Address getAddress()
public Date getClraYear()
public boolean hasKnownBirthDate()
public Date getBirthDate()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(Object o) throws ClassCastException
Note: this class has a natural ordering that is inconsistent with equals. Equality is defined by member id's, not by member names.
compareTo
in interface Comparable
o
- A member object.ClassCastException
- if o is not a member object.
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |