|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.bc.gov.webade.user.AbstractWebADEUserInfo
Default implementation of the WebADEUserInfo. Each setter can only be called once, after which the set methods will throw a RuntimeException.
| Field Summary | |
protected static java.util.Date |
MAX_DATE
|
| Fields inherited from interface ca.bc.gov.webade.user.WebADEUserInfo |
DISPLAY_NAME, EMAIL_ADDRESS, EXPIRY_DATE, FIRST_NAME, IS_VISIBLE, LAST_NAME, MIDDLE_INITIAL, PHONE_NUMBER, USER_CREDENTIALS |
| Constructor Summary | |
AbstractWebADEUserInfo()
Default Constructor. |
|
AbstractWebADEUserInfo(AbstractWebADEUserInfo user)
Copy constructor. |
|
AbstractWebADEUserInfo(UserCredentials userCredentials)
User Credentials Constructor. |
|
| Method Summary | |
abstract java.lang.Object |
clone()
Clones the WebADEUserInfo object. |
boolean |
equals(java.lang.Object obj)
|
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 |
getDisplayName()
|
java.lang.String |
getEmailAddress()
|
java.util.Date |
getExpiryDate()
|
java.lang.String |
getFirstName()
|
java.lang.String |
getLastName()
|
java.lang.String |
getMiddleInitial()
|
java.lang.String |
getPhoneNumber()
|
UserCredentials |
getUserCredentials()
|
boolean |
hasAttribute(java.lang.String attributeName)
Returns whether this object instance supports the attribute with the given name. |
int |
hashCode()
|
boolean |
isReadOnly()
|
boolean |
isVisible()
|
void |
setDisplayName(java.lang.String displayName)
Sets this user's displayName attribute to the given value. |
void |
setEmailAddress(java.lang.String emailAddress)
Sets this user's emailAddress attribute to the given value. |
void |
setExpiryDate(java.util.Date expiryDate)
Sets this user's expiryDate attribute to the given value. |
void |
setFirstName(java.lang.String firstName)
Sets this user's firstName attribute to the given value. |
void |
setLastName(java.lang.String lastName)
Sets this user's lastName attribute to the given value. |
void |
setMiddleInitial(java.lang.String middleInitial)
Sets this user's middleInitial attribute to the given value. |
void |
setPhoneNumber(java.lang.String phoneNumber)
Sets this user's phoneNumber attribute to the given value. |
void |
setReadOnly()
Sets the attributes of this object are non-editable. |
void |
setUserCredentials(UserCredentials userCredentials)
Sets this instance's user credentials to the given settings. |
void |
setVisible(boolean visible)
Sets this user's visible flag attribute to the given value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static final java.util.Date MAX_DATE
| Constructor Detail |
public AbstractWebADEUserInfo()
public AbstractWebADEUserInfo(UserCredentials userCredentials)
userCredentials - The user credentials to set for this user.public AbstractWebADEUserInfo(AbstractWebADEUserInfo user)
user - The user object to copy.| Method Detail |
public final UserCredentials getUserCredentials()
getUserCredentials in interface WebADEUserInfoWebADEUserInfo.getUserCredentials()public final java.lang.String getDisplayName()
getDisplayName in interface WebADEUserInfoWebADEUserInfo.getDisplayName()public final java.lang.String getLastName()
getLastName in interface WebADEUserInfoWebADEUserInfo.getLastName()public final java.lang.String getFirstName()
getFirstName in interface WebADEUserInfoWebADEUserInfo.getFirstName()public final java.lang.String getMiddleInitial()
getMiddleInitial in interface WebADEUserInfoWebADEUserInfo.getMiddleInitial()public final java.lang.String getEmailAddress()
getEmailAddress in interface WebADEUserInfoWebADEUserInfo.getEmailAddress()public final java.lang.String getPhoneNumber()
getPhoneNumber in interface WebADEUserInfoWebADEUserInfo.getPhoneNumber()public final java.util.Date getExpiryDate()
getExpiryDate in interface WebADEUserInfoWebADEUserInfo.getExpiryDate()public final boolean isVisible()
isVisible in interface WebADEUserInfoWebADEUserInfo.isVisible()public java.lang.String[] getAttributeNames()
WebADEUserInfo
getAttributeNames in interface WebADEUserInfoWebADEUserInfo.getAttributeNames()public java.lang.Object getAttributeValue(java.lang.String attributeName)
WebADEUserInfo
getAttributeValue in interface WebADEUserInfoattributeName - The name constant assigned to the user attribute.
WebADEUserInfo.getAttributeValue(java.lang.String)public boolean hasAttribute(java.lang.String attributeName)
WebADEUserInfo
hasAttribute in interface WebADEUserInfoattributeName - The name constant assigned to the target user attribute.
WebADEUserInfo.hasAttribute(java.lang.String)public final void setDisplayName(java.lang.String displayName)
displayName - The displayName to set.public final void setEmailAddress(java.lang.String emailAddress)
emailAddress - The emailAddress to set.public final void setExpiryDate(java.util.Date expiryDate)
expiryDate - The expiryDate to set.public final void setFirstName(java.lang.String firstName)
firstName - The firstName to set.public final void setLastName(java.lang.String lastName)
lastName - The lastName to set.public final void setMiddleInitial(java.lang.String middleInitial)
middleInitial - The middleInitial to set.public final void setPhoneNumber(java.lang.String phoneNumber)
phoneNumber - The phoneNumber to set.public final void setUserCredentials(UserCredentials userCredentials)
userCredentials - The user's credentials to set.public final void setVisible(boolean visible)
visible - The visible to set.public final void setReadOnly()
setReadOnly in interface WebADEUserInfopublic final boolean isReadOnly()
isReadOnly in interface WebADEUserInfopublic abstract java.lang.Object clone()
clone in interface WebADEUserInfopublic java.lang.String toString()
public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||