gov.nih.nci.caarray.domain.register
Class RegistrationRequest

java.lang.Object
  extended by gov.nih.nci.caarray.domain.register.RegistrationRequest
All Implemented Interfaces:
com.fiveamsolutions.nci.commons.data.persistent.PersistentObject, java.io.Serializable

public class RegistrationRequest
extends java.lang.Object
implements com.fiveamsolutions.nci.commons.data.persistent.PersistentObject

Author:
John Hedden, Akhil Bhaskar (Amentra, Inc.)
See Also:
Serialized Form

Constructor Summary
RegistrationRequest()
           
 
Method Summary
 java.lang.String getAddress1()
           
 java.lang.String getAddress2()
           
 java.lang.String getCity()
           
 Country getCountry()
           
 java.lang.String getEmail()
           
 java.lang.String getFax()
           
 java.lang.String getFirstName()
           
 java.lang.Long getId()
           
 java.lang.String getLastName()
           
 java.lang.String getLoginName()
           
 java.lang.String getMiddleInitial()
           
 java.lang.String getOrganization()
           
 java.lang.String getPhone()
           
 java.lang.String getProvince()
           
 java.lang.String getRole()
           
 State getState()
           
 java.lang.String getZip()
           
 void setAddress1(java.lang.String address1)
           
 void setAddress2(java.lang.String address2)
           
 void setCity(java.lang.String city)
           
 void setCountry(Country country)
           
 void setEmail(java.lang.String email)
           
 void setFax(java.lang.String fax)
           
 void setFirstName(java.lang.String firstName)
           
 void setLastName(java.lang.String lastName)
           
 void setLoginName(java.lang.String loginName)
           
 void setMiddleInitial(java.lang.String middleInitial)
           
 void setOrganization(java.lang.String organization)
           
 void setPhone(java.lang.String phone)
           
 void setProvince(java.lang.String province)
           
 void setRole(java.lang.String role)
           
 void setState(State state)
           
 void setZip(java.lang.String zip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistrationRequest

public RegistrationRequest()
Method Detail

getId

public java.lang.Long getId()
Specified by:
getId in interface com.fiveamsolutions.nci.commons.data.persistent.PersistentObject
Returns:
database identifier

getLoginName

public java.lang.String getLoginName()
Returns:
the loginName

setLoginName

public void setLoginName(java.lang.String loginName)
Parameters:
loginName - the loginName to set

getFirstName

@NotNull
@Length(min=1,
        max=30)
public java.lang.String getFirstName()
Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String firstName)
Parameters:
firstName - the firstName to set

getMiddleInitial

@Length(max=1)
public java.lang.String getMiddleInitial()
Returns:
the middleInitial

setMiddleInitial

public void setMiddleInitial(java.lang.String middleInitial)
Parameters:
middleInitial - the middleInitial to set

getLastName

@NotNull
@Length(min=1,
        max=50)
public java.lang.String getLastName()
Returns:
the lastName

setLastName

public void setLastName(java.lang.String lastName)
Parameters:
lastName - the lastName to set

getEmail

@NotNull
@Email
@Length(min=1,
        max=50)
public java.lang.String getEmail()
Returns:
the emaiId

setEmail

public void setEmail(java.lang.String email)
Parameters:
email - the email to set

getPhone

@NotNull
@Length(min=1,
        max=25)
@Pattern(regex="(\\+)?([-\\._\\(\\) ]?[\\d]{3,20}[-\\._\\(\\) ]?){2,10}")
public java.lang.String getPhone()
Returns:
the phone

setPhone

public void setPhone(java.lang.String phone)
Parameters:
phone - the phone to set

getFax

@Length(max=25)
@Pattern(regex="(\\+)?([-\\._\\(\\) ]?[\\d]{3,20}[-\\._\\(\\) ]?){2,10}||^$")
public java.lang.String getFax()
Returns:
the fax

setFax

public void setFax(java.lang.String fax)
Parameters:
fax - the fax to set

getOrganization

@NotNull
@Length(min=1,
        max=200)
public java.lang.String getOrganization()
Returns:
the organization

setOrganization

public void setOrganization(java.lang.String organization)
Parameters:
organization - the organization to set

getAddress1

@NotNull
@Length(min=1,
        max=200)
public java.lang.String getAddress1()
Returns:
the address1

setAddress1

public void setAddress1(java.lang.String address1)
Parameters:
address1 - the address1 to set

getAddress2

@Length(max=200)
public java.lang.String getAddress2()
Returns:
the address2

setAddress2

public void setAddress2(java.lang.String address2)
Parameters:
address2 - the address2 to set

getCity

@NotNull
@Length(min=1,
        max=50)
public java.lang.String getCity()
Returns:
the city

setCity

public void setCity(java.lang.String city)
Parameters:
city - the city to set

getState

public State getState()
Returns:
the state

setState

public void setState(State state)
Parameters:
state - the state to set

getProvince

@Length(max=50)
public java.lang.String getProvince()
Returns:
the province

setProvince

public void setProvince(java.lang.String province)
Parameters:
province - the province to set

getZip

@NotNull
@Length(min=1,
        max=10)
public java.lang.String getZip()
Returns:
the zip

setZip

public void setZip(java.lang.String zip)
Parameters:
zip - the zip to set

getRole

@NotNull
public java.lang.String getRole()
Returns:
the role

setRole

public void setRole(java.lang.String role)
Parameters:
role - the role to set

getCountry

@NotNull
public Country getCountry()
Returns:
the country

setCountry

public void setCountry(Country country)
Parameters:
country - the country to set