ca.bc.gov.webade.user
Class DefaultVerifiedIndividualUserInfo

java.lang.Object
  extended byca.bc.gov.webade.user.AbstractWebADEUserInfo
      extended byca.bc.gov.webade.user.DefaultVerifiedIndividualUserInfo
All Implemented Interfaces:
java.io.Serializable, VerifiedIndividualUserInfo, WebADEUserInfo

public class DefaultVerifiedIndividualUserInfo
extends AbstractWebADEUserInfo
implements VerifiedIndividualUserInfo, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ca.bc.gov.webade.user.VerifiedIndividualUserInfo
DATE_OF_BIRTH, MAILING_ADDRESS_CITY, MAILING_ADDRESS_COUNTRY, MAILING_ADDRESS_LINE_1, MAILING_ADDRESS_LINE_2, MAILING_ADDRESS_POSTAL_CODE, MAILING_ADDRESS_PROVINCE, MAILING_ADDRESS_UNSTRUCTURED, RESIDENTIAL_ADDRESS_CITY, RESIDENTIAL_ADDRESS_COUNTRY, RESIDENTIAL_ADDRESS_LINE_1, RESIDENTIAL_ADDRESS_LINE_2, RESIDENTIAL_ADDRESS_POSTAL_CODE, RESIDENTIAL_ADDRESS_PROVINCE, RESIDENTIAL_ADDRESS_UNSTRUCTURED
 
Fields inherited from interface ca.bc.gov.webade.user.WebADEUserInfo
CONTACT_ADDRESS_CITY, CONTACT_ADDRESS_COUNTRY, CONTACT_ADDRESS_LINE_1, CONTACT_ADDRESS_LINE_2, CONTACT_ADDRESS_POSTAL_CODE, CONTACT_ADDRESS_PROVINCE, CONTACT_ADDRESS_UNSTRUCTURED, DEPARTMENT, DISPLAY_NAME, EMAIL_ADDRESS, EXPIRY_DATE, FIRST_NAME, IS_VISIBLE, LAST_NAME, MIDDLE_INITIAL, PHONE_NUMBER, PREFERRED_NAME, USER_CREDENTIALS
 
Constructor Summary
DefaultVerifiedIndividualUserInfo()
          Default Constructor.
DefaultVerifiedIndividualUserInfo(DefaultVerifiedIndividualUserInfo user)
          Copy constructor.
 
Method Summary
 java.lang.Object clone()
          Clones the WebADEUserInfo object.
 java.lang.String[] getAttributeNames()
          Returns the set of attribute names for user attributes supported by this object instance.
 java.lang.Object getAttributeValue(java.lang.String attributeName)
          Returns the value for the attribute with the given name.
 java.util.Date getDateOfBirth()
           
 java.lang.String getMailingAddressCity()
           
 java.lang.String getMailingAddressCountry()
           
 java.lang.String getMailingAddressLine1()
           
 java.lang.String getMailingAddressLine2()
           
 java.lang.String getMailingAddressPostalCode()
           
 java.lang.String getMailingAddressProvince()
           
 java.lang.String getMailingAddressUnstructured()
           
 java.lang.String getResidentialAddressCity()
           
 java.lang.String getResidentialAddressCountry()
           
 java.lang.String getResidentialAddressLine1()
           
 java.lang.String getResidentialAddressLine2()
           
 java.lang.String getResidentialAddressPostalCode()
           
 java.lang.String getResidentialAddressProvince()
           
 java.lang.String getResidentialAddressUnstructured()
           
 boolean hasAttribute(java.lang.String attributeName)
          Returns whether this object instance supports the attribute with the given name.
 void setDateOfBirth(java.util.Date dateOfBirth)
          Sets this user's dateOfBirth attribute to the given value.
 void setMailingAddressCity(java.lang.String mailingAddressCity)
          Sets this user's mailingAddressCity attribute to the given value.
 void setMailingAddressCountry(java.lang.String mailingAddressCountry)
          Sets this user's mailingAddressCountry attribute to the given value.
 void setMailingAddressLine1(java.lang.String mailingAddressLine1)
          Sets this user's mailingAddressLine1 attribute to the given value.
 void setMailingAddressLine2(java.lang.String mailingAddressLine2)
          Sets this user's mailingAddressLine2 attribute to the given value.
 void setMailingAddressPostalCode(java.lang.String mailingAddressPostalCode)
          Sets this user's mailingAddressPostalCode attribute to the given value.
 void setMailingAddressProvince(java.lang.String mailingAddressProvince)
          Sets this user's mailingAddressProvince attribute to the given value.
 void setMailingAddressUnstructured(java.lang.String mailingAddressUnstructured)
          Sets this user's mailingAddressUnstructured attribute to the given value.
 void setResidentialAddressCity(java.lang.String residentialAddressCity)
          Sets this user's residentialAddressCity attribute to the given value.
 void setResidentialAddressCountry(java.lang.String residentialAddressCountry)
          Sets this user's residentialAddressCountry attribute to the given value.
 void setResidentialAddressLine1(java.lang.String residentialAddressLine1)
          Sets this user's residentialAddressLine1 attribute to the given value.
 void setResidentialAddressLine2(java.lang.String residentialAddressLine2)
          Sets this user's residentialAddressLine2 attribute to the given value.
 void setResidentialAddressPostalCode(java.lang.String residentialAddressPostalCode)
          Sets this user's residentialAddressPostalCode attribute to the given value.
 void setResidentialAddressProvince(java.lang.String residentialAddressProvince)
          Sets this user's residentialAddressProvince attribute to the given value.
 void setResidentialAddressUnstructured(java.lang.String residentialAddressUnstructured)
          Sets this user's residentialAddressUnstructured attribute to the given value.
 java.lang.String toString()
           
 
Methods inherited from class ca.bc.gov.webade.user.AbstractWebADEUserInfo
equals, getContactAddressCity, getContactAddressCountry, getContactAddressLine1, getContactAddressLine2, getContactAddressPostalCode, getContactAddressProvince, getContactAddressUnstructured, getDepartment, getDisplayName, getEmailAddress, getExpiryDate, getFirstName, getLastName, getMiddleInitial, getPhoneNumber, getPreferredName, getUserCredentials, hashCode, isReadOnly, isVisible, setContactAddressCity, setContactAddressCountry, setContactAddressLine1, setContactAddressLine2, setContactAddressPostalCode, setContactAddressProvince, setContactAddressUnstructured, setDepartment, setDisplayName, setEmailAddress, setExpiryDate, setFirstName, setLastName, setMiddleInitial, setPhoneNumber, setPreferredName, setReadOnly, setUserCredentials, setVisible
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ca.bc.gov.webade.user.WebADEUserInfo
getContactAddressCity, getContactAddressCountry, getContactAddressLine1, getContactAddressLine2, getContactAddressPostalCode, getContactAddressProvince, getContactAddressUnstructured, getDepartment, getDisplayName, getEmailAddress, getExpiryDate, getFirstName, getLastName, getMiddleInitial, getPhoneNumber, getPreferredName, getUserCredentials, isReadOnly, isVisible, setReadOnly
 

Constructor Detail

DefaultVerifiedIndividualUserInfo

public DefaultVerifiedIndividualUserInfo()
Default Constructor.


DefaultVerifiedIndividualUserInfo

public DefaultVerifiedIndividualUserInfo(DefaultVerifiedIndividualUserInfo user)
Copy constructor. Copies all user details from the given object to this instance.

Parameters:
user - The user object to copy.
Method Detail

clone

public java.lang.Object clone()
Clones the WebADEUserInfo object. The cloned object will have the isReadOnly() flag set to false, making it editable.

Specified by:
clone in interface WebADEUserInfo
Specified by:
clone in class AbstractWebADEUserInfo

getAttributeNames

public java.lang.String[] getAttributeNames()
Description copied from interface: WebADEUserInfo
Returns the set of attribute names for user attributes supported by this object instance.

Specified by:
getAttributeNames in interface WebADEUserInfo
Overrides:
getAttributeNames in class AbstractWebADEUserInfo
See Also:
AbstractWebADEUserInfo.getAttributeNames()

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String attributeName)
Description copied from interface: WebADEUserInfo
Returns the value for the attribute with the given name.

Specified by:
getAttributeValue in interface WebADEUserInfo
Overrides:
getAttributeValue in class AbstractWebADEUserInfo
See Also:
AbstractWebADEUserInfo.getAttributeValue(java.lang.String)

hasAttribute

public boolean hasAttribute(java.lang.String attributeName)
Description copied from interface: WebADEUserInfo
Returns whether this object instance supports the attribute with the given name.

Specified by:
hasAttribute in interface WebADEUserInfo
Overrides:
hasAttribute in class AbstractWebADEUserInfo
See Also:
AbstractWebADEUserInfo.hasAttribute(java.lang.String)

getDateOfBirth

public java.util.Date getDateOfBirth()
Specified by:
getDateOfBirth in interface VerifiedIndividualUserInfo
Returns:
The user's date of birth.
See Also:
VerifiedIndividualUserInfo.getDateOfBirth()

getResidentialAddressLine1

public java.lang.String getResidentialAddressLine1()
Specified by:
getResidentialAddressLine1 in interface VerifiedIndividualUserInfo
Returns:
The user's residential address line 1
See Also:
VerifiedIndividualUserInfo.getResidentialAddressLine1()

getResidentialAddressLine2

public java.lang.String getResidentialAddressLine2()
Specified by:
getResidentialAddressLine2 in interface VerifiedIndividualUserInfo
Returns:
The user's residential address line 2
See Also:
VerifiedIndividualUserInfo.getResidentialAddressLine2()

getResidentialAddressCity

public java.lang.String getResidentialAddressCity()
Specified by:
getResidentialAddressCity in interface VerifiedIndividualUserInfo
Returns:
The user's residential address city
See Also:
VerifiedIndividualUserInfo.getResidentialAddressCity()

getResidentialAddressProvince

public java.lang.String getResidentialAddressProvince()
Specified by:
getResidentialAddressProvince in interface VerifiedIndividualUserInfo
Returns:
The user's residential address province
See Also:
VerifiedIndividualUserInfo.getResidentialAddressProvince()

getResidentialAddressCountry

public java.lang.String getResidentialAddressCountry()
Specified by:
getResidentialAddressCountry in interface VerifiedIndividualUserInfo
Returns:
The user's residential address country
See Also:
VerifiedIndividualUserInfo.getResidentialAddressCountry()

getResidentialAddressPostalCode

public java.lang.String getResidentialAddressPostalCode()
Specified by:
getResidentialAddressPostalCode in interface VerifiedIndividualUserInfo
Returns:
The user's residential address postal code
See Also:
VerifiedIndividualUserInfo.getResidentialAddressPostalCode()

getResidentialAddressUnstructured

public java.lang.String getResidentialAddressUnstructured()
Specified by:
getResidentialAddressUnstructured in interface VerifiedIndividualUserInfo
Returns:
The user's unstructured residential address
See Also:
VerifiedIndividualUserInfo.getResidentialAddressUnstructured()

getMailingAddressLine1

public java.lang.String getMailingAddressLine1()
Specified by:
getMailingAddressLine1 in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address line 1
See Also:
VerifiedIndividualUserInfo.getMailingAddressLine1()

getMailingAddressLine2

public java.lang.String getMailingAddressLine2()
Specified by:
getMailingAddressLine2 in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address line 2
See Also:
VerifiedIndividualUserInfo.getMailingAddressLine2()

getMailingAddressCity

public java.lang.String getMailingAddressCity()
Specified by:
getMailingAddressCity in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address city
See Also:
VerifiedIndividualUserInfo.getMailingAddressCity()

getMailingAddressProvince

public java.lang.String getMailingAddressProvince()
Specified by:
getMailingAddressProvince in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address province
See Also:
VerifiedIndividualUserInfo.getMailingAddressProvince()

getMailingAddressCountry

public java.lang.String getMailingAddressCountry()
Specified by:
getMailingAddressCountry in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address country
See Also:
VerifiedIndividualUserInfo.getMailingAddressCountry()

getMailingAddressPostalCode

public java.lang.String getMailingAddressPostalCode()
Specified by:
getMailingAddressPostalCode in interface VerifiedIndividualUserInfo
Returns:
The user's mailing address postal code
See Also:
VerifiedIndividualUserInfo.getMailingAddressPostalCode()

getMailingAddressUnstructured

public java.lang.String getMailingAddressUnstructured()
Specified by:
getMailingAddressUnstructured in interface VerifiedIndividualUserInfo
Returns:
The user's unstructured mailing address
See Also:
VerifiedIndividualUserInfo.getMailingAddressUnstructured()

setDateOfBirth

public final void setDateOfBirth(java.util.Date dateOfBirth)
Sets this user's dateOfBirth attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
dateOfBirth - The dateOfBirth to set.

setResidentialAddressLine1

public final void setResidentialAddressLine1(java.lang.String residentialAddressLine1)
Sets this user's residentialAddressLine1 attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressLine1 - The residentialAddressLine1 to set.

setResidentialAddressLine2

public final void setResidentialAddressLine2(java.lang.String residentialAddressLine2)
Sets this user's residentialAddressLine2 attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressLine2 - The residentialAddressLine2 to set.

setResidentialAddressCity

public final void setResidentialAddressCity(java.lang.String residentialAddressCity)
Sets this user's residentialAddressCity attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressCity - The residentialAddressCity to set.

setResidentialAddressProvince

public final void setResidentialAddressProvince(java.lang.String residentialAddressProvince)
Sets this user's residentialAddressProvince attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressProvince - The residentialAddressProvince to set.

setResidentialAddressCountry

public final void setResidentialAddressCountry(java.lang.String residentialAddressCountry)
Sets this user's residentialAddressCountry attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressCountry - The residentialAddressCountry to set.

setResidentialAddressPostalCode

public final void setResidentialAddressPostalCode(java.lang.String residentialAddressPostalCode)
Sets this user's residentialAddressPostalCode attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressPostalCode - The residentialAddressPostalCode to set.

setResidentialAddressUnstructured

public final void setResidentialAddressUnstructured(java.lang.String residentialAddressUnstructured)
Sets this user's residentialAddressUnstructured attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
residentialAddressUnstructured - The residentialAddressUnstructured to set.

setMailingAddressLine1

public final void setMailingAddressLine1(java.lang.String mailingAddressLine1)
Sets this user's mailingAddressLine1 attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressLine1 - The mailingAddressLine1 to set.

setMailingAddressLine2

public final void setMailingAddressLine2(java.lang.String mailingAddressLine2)
Sets this user's mailingAddressLine2 attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressLine2 - The mailingAddressLine2 to set.

setMailingAddressCity

public final void setMailingAddressCity(java.lang.String mailingAddressCity)
Sets this user's mailingAddressCity attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressCity - The mailingAddressCity to set.

setMailingAddressProvince

public final void setMailingAddressProvince(java.lang.String mailingAddressProvince)
Sets this user's mailingAddressProvince attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressProvince - The mailingAddressProvince to set.

setMailingAddressCountry

public final void setMailingAddressCountry(java.lang.String mailingAddressCountry)
Sets this user's mailingAddressCountry attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressCountry - The mailingAddressCountry to set.

setMailingAddressPostalCode

public final void setMailingAddressPostalCode(java.lang.String mailingAddressPostalCode)
Sets this user's mailingAddressPostalCode attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressPostalCode - The mailingAddressPostalCode to set.

setMailingAddressUnstructured

public final void setMailingAddressUnstructured(java.lang.String mailingAddressUnstructured)
Sets this user's mailingAddressUnstructured attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
mailingAddressUnstructured - The mailingAddressUnstructured to set.

toString

public java.lang.String toString()
Overrides:
toString in class AbstractWebADEUserInfo