ca.bc.gov.webade.user
Class DefaultBusinessPartnerUserInfo

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

public class DefaultBusinessPartnerUserInfo
extends AbstractWebADEUserInfo
implements BusinessPartnerUserInfo, java.io.Serializable

Author:
jross
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ca.bc.gov.webade.user.BusinessPartnerUserInfo
BN_HUB_BUSINESS_TYPE_CODE, BUSINESS_ACTIVATION_CODE, BUSINESS_ADDRESS_CITY, BUSINESS_ADDRESS_COUNTRY, BUSINESS_ADDRESS_LINE_1, BUSINESS_ADDRESS_LINE_2, BUSINESS_ADDRESS_POSTAL_CODE, BUSINESS_ADDRESS_PROVINCE, BUSINESS_ADDRESS_UNSTRUCTURED, BUSINESS_GUID, BUSINESS_LEGAL_NAME, BUSINESS_LUID, BUSINESS_NUMBER, BUSINESS_NUMBER_VERIFIED, BUSINESS_TRADING_NAME, BUSINESS_TYPE_CODE, BUSINESS_TYPE_OTHER, DOING_BUSINESS_AS, EXTRA_PROVINCIAL_REGISTRATION_NUMBER, INCORPORATION_NUMBER, IS_SUSPENDED, JURISDICTION_OF_INCORPORATION, STATEMENT_OF_REGISTRATION_NUMBER
 
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
DefaultBusinessPartnerUserInfo()
          Default Constructor.
DefaultBusinessPartnerUserInfo(DefaultBusinessPartnerUserInfo 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.lang.String getBnHubBusinessTypeCode()
           
 java.lang.String getBusinessActivationCode()
           
 java.lang.String getBusinessAddressCity()
           
 java.lang.String getBusinessAddressCountry()
           
 java.lang.String getBusinessAddressLine1()
           
 java.lang.String getBusinessAddressLine2()
           
 java.lang.String getBusinessAddressPostalCode()
           
 java.lang.String getBusinessAddressProvince()
           
 java.lang.String getBusinessAddressUnstructured()
           
 GUID getBusinessGUID()
           
 java.lang.String getBusinessLegalName()
           
 java.lang.String getBusinessLUID()
           
 java.lang.String getBusinessNumber()
           
 java.lang.String getBusinessTradingName()
           
 java.lang.String getBusinessTypeCode()
           
 java.lang.String getBusinessTypeOther()
           
 java.lang.String getDoingBusinessAs()
           
 java.lang.String getExtraProvincialRegistrationNumber()
           
 java.lang.String getIncorporationNumber()
           
 java.lang.String getJurisdictionOfIncorporation()
           
 java.lang.String getStatementOfRegistrationNumber()
           
 boolean hasAttribute(java.lang.String attributeName)
          Returns whether this object instance supports the attribute with the given name.
 boolean isBusinessNumberVerified()
           
 boolean isSuspended()
           
 void setBnHubBusinessTypeCode(java.lang.String bnHubBusinessTypeCode)
          Sets this user's bnHubBusinessTypeCode attribute to the given value.
 void setBusinessActivationCode(java.lang.String businessActivationCode)
          Sets this user's businessActivationCode attribute to the given value.
 void setBusinessAddressCity(java.lang.String businessAddressCity)
          Sets this user's businessAddressCity attribute to the given value.
 void setBusinessAddressCountry(java.lang.String businessAddressCountry)
          Sets this user's businessAddressCountry attribute to the given value.
 void setBusinessAddressLine1(java.lang.String businessAddressLine1)
          Sets this user's businessAddressLine1 attribute to the given value.
 void setBusinessAddressLine2(java.lang.String businessAddressLine2)
          Sets this user's businessAddressLine2 attribute to the given value.
 void setBusinessAddressPostalCode(java.lang.String businessAddressPostalCode)
          Sets this user's businessAddressPostalCode attribute to the given value.
 void setBusinessAddressProvince(java.lang.String businessAddressProvince)
          Sets this user's businessAddressProvince attribute to the given value.
 void setBusinessAddressUnstructured(java.lang.String businessAddressUnstructured)
          Sets this user's businessAddressUnstructured attribute to the given value.
 void setBusinessGUID(GUID businessGUID)
          Sets this user's businessGUID attribute to the given value.
 void setBusinessLegalName(java.lang.String businessLegalName)
          Sets this user's businessLegalName attribute to the given value.
 void setBusinessLUID(java.lang.String businessLUID)
          Sets this user's businessLUID attribute to the given value.
 void setBusinessNumber(java.lang.String businessNumber)
          Sets this user's businessNumber attribute to the given value.
 void setBusinessNumberVerified(boolean businessNumberVerified)
          Sets this user's businessNumberVerified attribute to the given value.
 void setBusinessTradingName(java.lang.String businessTradingName)
          Sets this user's businessTradingName attribute to the given value.
 void setBusinessTypeCode(java.lang.String businessTypeCode)
          Sets this user's businessTypeCode attribute to the given value.
 void setBusinessTypeOther(java.lang.String businessTypeOther)
          Sets this user's businessTypeOther attribute to the given value.
 void setDoingBusinessAs(java.lang.String doingBusinessAs)
          Sets this user's doingBusinessAs attribute to the given value.
 void setExtraProvincialRegistrationNumber(java.lang.String extraProvincialRegistrationNumber)
          Sets this user's extraProvincialRegistrationNumber attribute to the given value.
 void setIncorporationNumber(java.lang.String incorporationNumber)
          Sets this user's incorporationNumber attribute to the given value.
 void setJurisdictionOfIncorporation(java.lang.String jurisdictionOfIncorporation)
          Sets this user's jurisdictionOfIncorporation attribute to the given value.
 void setStatementOfRegistrationNumber(java.lang.String statementOfRegistrationNumber)
          Sets this user's statementOfRegistrationNumber attribute to the given value.
 void setSuspended(boolean suspended)
          Sets this user's suspended 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

DefaultBusinessPartnerUserInfo

public DefaultBusinessPartnerUserInfo()
Default Constructor.


DefaultBusinessPartnerUserInfo

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

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

getBusinessGUID

public final GUID getBusinessGUID()
Specified by:
getBusinessGUID in interface BusinessPartnerUserInfo
Returns:
The user's associated business' GUID.
See Also:
BusinessPartnerUserInfo.getBusinessGUID()

getBusinessLUID

public final java.lang.String getBusinessLUID()
Specified by:
getBusinessLUID in interface BusinessPartnerUserInfo
Returns:
The user's associated business' LUID.
See Also:
BusinessPartnerUserInfo.getBusinessLUID()

getBusinessLegalName

public final java.lang.String getBusinessLegalName()
Specified by:
getBusinessLegalName in interface BusinessPartnerUserInfo
Returns:
The user's associated business' legal name.
See Also:
BusinessPartnerUserInfo.getBusinessLegalName()

getBusinessTradingName

public java.lang.String getBusinessTradingName()
Specified by:
getBusinessTradingName in interface BusinessPartnerUserInfo
Returns:
The user's associated business' trading name.
See Also:
BusinessPartnerUserInfo.getBusinessTradingName()

getBusinessActivationCode

public final java.lang.String getBusinessActivationCode()
Specified by:
getBusinessActivationCode in interface BusinessPartnerUserInfo
Returns:
The user's associated business' activation code.
See Also:
BusinessPartnerUserInfo.getBusinessActivationCode()

getBusinessNumber

public java.lang.String getBusinessNumber()
Specified by:
getBusinessNumber in interface BusinessPartnerUserInfo
Returns:
The user's associated business' business number.
See Also:
BusinessPartnerUserInfo.getBusinessNumber()

isBusinessNumberVerified

public boolean isBusinessNumberVerified()
Specified by:
isBusinessNumberVerified in interface BusinessPartnerUserInfo
Returns:
The user's associated business' business number verified.
See Also:
BusinessPartnerUserInfo.isBusinessNumberVerified()

getIncorporationNumber

public java.lang.String getIncorporationNumber()
Specified by:
getIncorporationNumber in interface BusinessPartnerUserInfo
Returns:
The user's associated business' incorporation number.
See Also:
BusinessPartnerUserInfo.getIncorporationNumber()

getExtraProvincialRegistrationNumber

public java.lang.String getExtraProvincialRegistrationNumber()
Specified by:
getExtraProvincialRegistrationNumber in interface BusinessPartnerUserInfo
Returns:
The user's associated business' extra provincial registration number.
See Also:
BusinessPartnerUserInfo.getExtraProvincialRegistrationNumber()

getBusinessTypeCode

public java.lang.String getBusinessTypeCode()
Specified by:
getBusinessTypeCode in interface BusinessPartnerUserInfo
Returns:
The user's associated business' business type code.
See Also:
BusinessPartnerUserInfo.getBusinessTypeCode()

getBusinessTypeOther

public java.lang.String getBusinessTypeOther()
Specified by:
getBusinessTypeOther in interface BusinessPartnerUserInfo
Returns:
The user's associated business' business type other.
See Also:
BusinessPartnerUserInfo.getBusinessTypeOther()

getBnHubBusinessTypeCode

public java.lang.String getBnHubBusinessTypeCode()
Specified by:
getBnHubBusinessTypeCode in interface BusinessPartnerUserInfo
Returns:
The user's associated business' BN hub business type code.
See Also:
BusinessPartnerUserInfo.getBnHubBusinessTypeCode()

getStatementOfRegistrationNumber

public java.lang.String getStatementOfRegistrationNumber()
Specified by:
getStatementOfRegistrationNumber in interface BusinessPartnerUserInfo
Returns:
The user's associated business' statement of registration number.
See Also:
BusinessPartnerUserInfo.getStatementOfRegistrationNumber()

getJurisdictionOfIncorporation

public java.lang.String getJurisdictionOfIncorporation()
Specified by:
getJurisdictionOfIncorporation in interface BusinessPartnerUserInfo
Returns:
The user's associated business' jurisdiction of incorporation.
See Also:
BusinessPartnerUserInfo.getJurisdictionOfIncorporation()

getDoingBusinessAs

public java.lang.String getDoingBusinessAs()
Specified by:
getDoingBusinessAs in interface BusinessPartnerUserInfo
Returns:
The user's associated business' doing business as.
See Also:
BusinessPartnerUserInfo.getDoingBusinessAs()

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface BusinessPartnerUserInfo
Returns:
The user's associated business' is suspended.
See Also:
BusinessPartnerUserInfo.isSuspended()

getBusinessAddressLine1

public java.lang.String getBusinessAddressLine1()
Specified by:
getBusinessAddressLine1 in interface BusinessPartnerUserInfo
Returns:
The user's business address line 1
See Also:
BusinessPartnerUserInfo.getBusinessAddressLine1()

getBusinessAddressLine2

public java.lang.String getBusinessAddressLine2()
Specified by:
getBusinessAddressLine2 in interface BusinessPartnerUserInfo
Returns:
The user's business address line 2
See Also:
BusinessPartnerUserInfo.getBusinessAddressLine2()

getBusinessAddressCity

public java.lang.String getBusinessAddressCity()
Specified by:
getBusinessAddressCity in interface BusinessPartnerUserInfo
Returns:
The user's business address city
See Also:
BusinessPartnerUserInfo.getBusinessAddressCity()

getBusinessAddressProvince

public java.lang.String getBusinessAddressProvince()
Specified by:
getBusinessAddressProvince in interface BusinessPartnerUserInfo
Returns:
The user's business address province
See Also:
BusinessPartnerUserInfo.getBusinessAddressProvince()

getBusinessAddressCountry

public java.lang.String getBusinessAddressCountry()
Specified by:
getBusinessAddressCountry in interface BusinessPartnerUserInfo
Returns:
The user's business address country
See Also:
BusinessPartnerUserInfo.getBusinessAddressCountry()

getBusinessAddressPostalCode

public java.lang.String getBusinessAddressPostalCode()
Specified by:
getBusinessAddressPostalCode in interface BusinessPartnerUserInfo
Returns:
The user's business address postal code
See Also:
BusinessPartnerUserInfo.getBusinessAddressPostalCode()

getBusinessAddressUnstructured

public java.lang.String getBusinessAddressUnstructured()
Specified by:
getBusinessAddressUnstructured in interface BusinessPartnerUserInfo
Returns:
The user's unstructured business address
See Also:
BusinessPartnerUserInfo.getBusinessAddressUnstructured()

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)

setBusinessGUID

public final void setBusinessGUID(GUID businessGUID)
Sets this user's businessGUID attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
businessGUID - The businessGUID to set.

setBusinessLUID

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

Parameters:
businessLUID - The businessLUID to set.

setBusinessLegalName

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

Parameters:
businessLegalName - The businessLegalName to set.

setBusinessTradingName

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

Parameters:
businessTradingName - The businessTradingName to set.

setBusinessActivationCode

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

Parameters:
businessActivationCode - The businessActivationCode to set.

setBusinessNumber

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

Parameters:
businessNumber - The businessNumber to set.

setBusinessNumberVerified

public final void setBusinessNumberVerified(boolean businessNumberVerified)
Sets this user's businessNumberVerified attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
businessNumberVerified - The businessNumberVerified to set.

setIncorporationNumber

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

Parameters:
incorporationNumber - The incorporationNumber to set.

setExtraProvincialRegistrationNumber

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

Parameters:
extraProvincialRegistrationNumber - The extraProvincialRegistrationNumber to set.

setBusinessTypeCode

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

Parameters:
businessTypeCode - The businessTypeCode to set.

setBusinessTypeOther

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

Parameters:
businessTypeOther - The businessTypeOther to set.

setBnHubBusinessTypeCode

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

Parameters:
bnHubBusinessTypeCode - The bnHubBusinessTypeCode to set.

setStatementOfRegistrationNumber

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

Parameters:
statementOfRegistrationNumber - The statementOfRegistrationNumber to set.

setJurisdictionOfIncorporation

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

Parameters:
jurisdictionOfIncorporation - The jurisdictionOfIncorporation to set.

setDoingBusinessAs

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

Parameters:
doingBusinessAs - The doingBusinessAs to set.

setSuspended

public final void setSuspended(boolean suspended)
Sets this user's suspended attribute to the given value. If this user object is read-only, a runtime exception is thrown.

Parameters:
suspended - The suspended to set.

setBusinessAddressLine1

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

Parameters:
businessAddressLine1 - The businessAddressLine1 to set.

setBusinessAddressLine2

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

Parameters:
businessAddressLine2 - The businessAddressLine2 to set.

setBusinessAddressCity

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

Parameters:
businessAddressCity - The businessAddressCity to set.

setBusinessAddressProvince

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

Parameters:
businessAddressProvince - The businessAddressProvince to set.

setBusinessAddressCountry

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

Parameters:
businessAddressCountry - The businessAddressCountry to set.

setBusinessAddressPostalCode

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

Parameters:
businessAddressPostalCode - The businessAddressPostalCode to set.

setBusinessAddressUnstructured

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

Parameters:
businessAddressUnstructured - The businessAddressUnstructured to set.

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

toString

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