|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.imca.model.PersonBO
public class PersonBO
Business Object representing the properties, persistence and functionality of the IMCA domain object.
Constructor Summary | |
---|---|
PersonBO()
|
|
PersonBO(javax.persistence.EntityManager em,
long id)
|
|
PersonBO(javax.persistence.EntityManager em,
org.w3c.dom.NodeList nodeList)
|
|
PersonBO(javax.persistence.EntityManager em,
java.lang.String email)
|
|
PersonBO(javax.persistence.EntityManager em,
java.lang.String email,
java.lang.String password)
|
|
PersonBO(PersonEntity personEntity)
|
Method Summary | |
---|---|
static java.lang.String |
convertOldXmlCountryCodesToISO(java.lang.String oldXmlCode)
This is to fix XML data problems. |
java.lang.String |
getAddressHtml()
|
AssociationBO[] |
getCommitteeMemberships(javax.persistence.EntityManager em)
|
java.lang.String |
getCountry()
|
java.lang.String |
getDefaultCountryCode()
|
PersonEntity |
getEntity()
Get the persistence entity. |
java.util.Locale |
getLocale()
|
java.lang.String |
getName()
Human friendly name of person. |
AssociationBO[] |
getOficialIMCACommitteeMemberships(javax.persistence.EntityManager em)
|
boolean |
getOnCommittee(javax.persistence.EntityManager em)
|
java.lang.String |
getRiderPageUrl()
|
java.lang.String |
getSmallPictureUrl()
|
java.lang.String |
getXmlId()
|
boolean |
isCurrentMember()
|
boolean |
isOnWorldsCommitte()
|
boolean |
register(javax.persistence.EntityManager em)
|
void |
replaceEmail(javax.persistence.EntityManager em,
java.lang.String email)
Change the email address in the enitity if it is unique. |
void |
sendMembershipConfirmationMail(javax.persistence.EntityManager em,
MembershipTypeEntity memType)
|
void |
sendMembershipRequestMail(javax.persistence.EntityManager em,
MembershipTypeEntity memType)
|
void |
sendPassword(javax.persistence.EntityManager em,
javax.mail.internet.InternetAddress email)
Send password by mail. |
void |
setEntity(PersonEntity entity)
Set the persistence entity. |
void |
setPasswordEncodeAndSet(java.lang.String plainTextPassword)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersonBO()
public PersonBO(javax.persistence.EntityManager em, long id)
public PersonBO(javax.persistence.EntityManager em, java.lang.String email)
public PersonBO(javax.persistence.EntityManager em, java.lang.String email, java.lang.String password) throws LogInException
LogInException
public PersonBO(javax.persistence.EntityManager em, org.w3c.dom.NodeList nodeList)
public PersonBO(PersonEntity personEntity)
Method Detail |
---|
public boolean register(javax.persistence.EntityManager em) throws RegistrationException, javax.mail.internet.AddressException
RegistrationException
javax.mail.internet.AddressException
public PersonEntity getEntity()
public void setEntity(PersonEntity entity)
entity
- The new persistence entity for this Business Object.public void setPasswordEncodeAndSet(java.lang.String plainTextPassword) throws java.io.UnsupportedEncodingException, java.security.NoSuchAlgorithmException, DataCheckingException
java.io.UnsupportedEncodingException
java.security.NoSuchAlgorithmException
DataCheckingException
public void sendPassword(javax.persistence.EntityManager em, javax.mail.internet.InternetAddress email) throws javax.mail.MessagingException, DataCheckingException
em
- EntityManager for persistence.email
- user supplied email address.
javax.mail.MessagingException
- When problem occurs.
DataCheckingException
public java.util.Locale getLocale()
public java.lang.String getName()
public java.lang.String getXmlId()
public static java.lang.String convertOldXmlCountryCodesToISO(java.lang.String oldXmlCode)
oldXmlCode
-
public void replaceEmail(javax.persistence.EntityManager em, java.lang.String email) throws DataCheckingException
email
-
DataCheckingException
public boolean isOnWorldsCommitte()
public boolean isCurrentMember()
public boolean getOnCommittee(javax.persistence.EntityManager em)
public AssociationBO[] getCommitteeMemberships(javax.persistence.EntityManager em)
public AssociationBO[] getOficialIMCACommitteeMemberships(javax.persistence.EntityManager em)
public java.lang.String getDefaultCountryCode()
public void sendMembershipRequestMail(javax.persistence.EntityManager em, MembershipTypeEntity memType) throws javax.mail.MessagingException
javax.mail.MessagingException
public void sendMembershipConfirmationMail(javax.persistence.EntityManager em, MembershipTypeEntity memType) throws javax.mail.MessagingException
javax.mail.MessagingException
public java.lang.String getCountry()
public java.lang.String getAddressHtml()
public java.lang.String getSmallPictureUrl()
public java.lang.String getRiderPageUrl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |