|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.security.MapBasedUserInfo
A User Info implementation that is Map based instead of database object based. Although this isn't usually used in Expresso, a few cases, where we need a SuperUser, for example when database access doesn't exist. It is not considered something to use on a broad basis, more as a workaround for some special startup conditions.
| Constructor Summary | |
MapBasedUserInfo()
Default constructor. |
|
| Method Summary | |
void |
add()
Adds the current UserInfo object into the repository |
void |
delete()
Deletes the current UserInfo object from the repository |
boolean |
find()
Find a UserInfo object in the repository that matches the non-empty properties filled in the current UserInfo object |
String |
getAccountStatus()
Retrieve the current account status. |
Vector |
getAllUsers()
Unsupported operation |
String |
getCreateDate()
Returns the date that this UserInfo object was created |
String |
getDataContext()
gets the DB context; can return null |
String |
getDBName()
gets the DB context; can return null |
String |
getEmail()
Returns the email address for this user |
String |
getEmailAuthCode()
Returns the email auth code previously set for this user |
String |
getEmailValCode()
Retrieve the validation code required for authorization by email |
String |
getField(String fieldName)
Deprecated. Use the direct getLoginName, getEmail, getPassword, etc. |
Vector |
getGroups()
Currently unsupported. |
String |
getLoginName()
Returns the login name of this user |
String |
getPassword()
Returns the password for this user |
String |
getPrimaryGroup()
the primary group of this user is appropriate for unix-like purposes, such as setting the group for a file permission |
boolean |
getRegComplete()
Returns the status of whether extended registration has been completed or not Valid values are "Y" or "N" |
String |
getRegistrationDomain()
Returns the unique integer for the registration domain that this user belongs to |
int |
getUid()
Returns the user id for this user |
String |
getUpdateDate()
Returns the date that this UserInfo object was last modified |
String |
getUserName()
Returns the descriptive string for this user |
Vector |
getValues()
Unsupported Operation |
String |
hashEncodePassword(String password)
this returns an appropriately hashed password. |
boolean |
passwordEquals(String testPassword)
Checks if the given password equals what we have on file. |
void |
retrieve()
Retrieves the current user from the repository |
void |
sendAuthEmail()
Not Implemented |
void |
sendFollowUpEmail()
Not Implemented |
void |
setAccountStatus(String accountStatus)
Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive) |
void |
setDBName(String newDBName)
Sets the DB context |
void |
setEmail(String email)
Sets the email address |
void |
setEmailValCode(String code)
Sets the code required for auth. |
void |
setLoginName(String loginName)
Sets the login name |
void |
setPassword(String password)
Sets the password |
void |
setRegComplete(boolean status)
Sets the extended registration complete flag - "Y" or "N" |
void |
setRegistrationDomain(String id)
Sets the registration domain |
void |
setUid(int uid)
Sets the user UID |
void |
setUserName(String name)
Sets the user name |
void |
update()
There should be no copying and detaching from the datasource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MapBasedUserInfo()
| Method Detail |
public void add()
throws DBException
UserInfo
add in interface UserInfoDBException - If the add fails
public void delete()
throws DBException
UserInfo
delete in interface UserInfoDBException - If the delete fails
public boolean find()
throws DBException
UserInfo
find in interface UserInfoDBException - If the find fails
public String getAccountStatus()
throws DBException
getAccountStatus in interface UserInfoDBException - If the find fails
public Vector getAllUsers()
throws DBException
getAllUsers in interface UserInfoDBException - If there is an error during the retrieval
public String getCreateDate()
throws DBException
UserInfo
getCreateDate in interface UserInfoDBException - If there is an error during the retrievalpublic String getDBName()
UserInfo
getDBName in interface UserInfopublic String getDataContext()
UserInfo
getDataContext in interface UserInfo
public String getEmail()
throws DBException
UserInfo
getEmail in interface UserInfoDBException - If there is an error during the retrieval
public String getEmailAuthCode()
throws DBException
UserInfo
getEmailAuthCode in interface UserInfoDBException - If there is an error during the retrieval
public String getEmailValCode()
throws DBException
UserInfo
getEmailValCode in interface UserInfoDBException - If the find fails
public String getField(String fieldName)
throws DBException
getField in interface UserInfofieldName - The field to retrieve
DBException - If an error occurs when the group info is read
UnsupportedOperationException - This is not Implemented
public Vector getGroups()
throws DBException
getGroups in interface UserInfoDBException - If an error occurs when the group info is read
public String getLoginName()
throws DBException
UserInfo
getLoginName in interface UserInfoDBException - If there is an error during the retrieval
public String getPassword()
throws DBException
UserInfo
getPassword in interface UserInfoDBException - If there is an error during the retrieval
public String getPrimaryGroup()
throws DBException
UserInfo
getPrimaryGroup in interface UserInfoDBException
public String hashEncodePassword(String password)
throws DBException
hashEncodePassword in interface UserInfopassword - to be hashed
DBException
public boolean getRegComplete()
throws DBException
UserInfo
getRegComplete in interface UserInfoDBException - If there is an error during the retrieval
public String getRegistrationDomain()
throws DBException
UserInfo
getRegistrationDomain in interface UserInfoDBException - If the underlying User implementation throws the
same
public int getUid()
throws DBException
UserInfo
getUid in interface UserInfoDBException - If there is an error during the retrieval
public String getUpdateDate()
throws DBException
UserInfo
getUpdateDate in interface UserInfoDBException - If there is an error during the retrieval
public String getUserName()
throws DBException
UserInfo
getUserName in interface UserInfoDBException - If there is an error during the retrieval
public Vector getValues()
throws DBException
getValues in interface LookupInterfaceDBException
public boolean passwordEquals(String testPassword)
throws DBException
passwordEquals in interface UserInfotestPassword - The string to test if it's a correct password
DBException - If an error occurs when the group info is read
public void retrieve()
throws DBException
UserInfo
retrieve in interface UserInfoDBException - If the retrieve fails
public void sendAuthEmail()
throws DBException
sendAuthEmail in interface UserInfoDBException
public void sendFollowUpEmail()
throws DBException
sendFollowUpEmail in interface UserInfoDBException
public void setAccountStatus(String accountStatus)
throws DBException
UserInfo
setAccountStatus in interface UserInfoaccountStatus - java.lang.String
DBException - If there is an error
public void setDBName(String newDBName)
throws DBException
UserInfo
setDBName in interface UserInfonewDBName - java.lang.String
DBException - If there is an error
public void setEmail(String email)
throws DBException
UserInfo
setEmail in interface UserInfoemail - java.lang.String
DBException - If there is an error
public void setEmailValCode(String code)
throws DBException
setEmailValCode in interface UserInfocode - java.lang.String
DBException - If there is an error
public void setLoginName(String loginName)
throws DBException
UserInfo
setLoginName in interface UserInfologinName - java.lang.String
DBException - If there is an error
public void setPassword(String password)
throws DBException
UserInfo
setPassword in interface UserInfopassword - java.lang.String
DBException - If there is an error
public void setRegComplete(boolean status)
throws DBException
UserInfo
setRegComplete in interface UserInfostatus - java.lang.String
DBException - If there is an error
public void setRegistrationDomain(String id)
throws DBException
UserInfo
setRegistrationDomain in interface UserInfoid - java.lang.String
DBException - If there is an errorRegistrationDomain
public void setUid(int uid)
throws DBException
UserInfo
setUid in interface UserInfouid - The uid of the user
DBException - If there is an error
public void setUserName(String name)
throws DBException
UserInfo
setUserName in interface UserInfoname - java.lang.String
DBException - If there is an error
public void update()
throws DBException
update in interface UserInfoDBException - If the add fails
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||