| com.jcorporate.expresso.core.dbobj.SecuredDBObject com.jcorporate.expresso.ext.dbobj.SingleDBUserInfo
Field Summary | |
final public static String | FULL_NAME Field name for full name. |
FULL_NAME | final public static String FULL_NAME(Code) | | Field name for full name.
|
SingleDBUserInfo | public SingleDBUserInfo(int uid) throws DBException(Code) | | Use over (String) constructor. Initializes the object in the context
of the user who's uid belongs to the parameter.
Parameters: uid - the Uid of the user context throws: DBException - if there's an initialization problem |
SingleDBUserInfo | public SingleDBUserInfo(ControllerRequest request) throws DBException(Code) | | For using DBObjects within Controllers. Initializes based upon the current
user and the requested db. [Of course this can be modified later]
Parameters: request - - The controller request handed to you by the framework. |
checkAllRefs | protected void checkAllRefs() throws DBException(Code) | | Extends the checkAllRefs method to check for valid Registration Domain Id
throws: DBException - If a referential integrity violation is found |
getPrimaryGroup | public String getPrimaryGroup() throws DBException(Code) | | the primary group of this user is appropriate for unix-like purposes,
such as setting the group for a file permission
name of the primary group of this user; null if no group is primary |
hashEncodePassword | public String hashEncodePassword(String plaintext) throws DBException(Code) | | hashEncodePassword: If passed a plaintext string > 0 bytes, then this
function will SHA1 hash the password, then Base64 encode it and return it
as a string.
If the password is zero length, then it will simply return a zero length
string also.
Parameters: plaintext - - the password to process in this manner: returnValue = Base64(SHA-1(plaintext)) Base64-hash encoded password |
notify | public void notify(String subject, String message) throws DBException, LogException(Code) | | Send this user a notification via e-mail.
Parameters: subject - Subject of the e-mail Parameters: message - Message to send in body of e-mail throws: DBException - If the mail message cannot be sent |
passwordEquals | public boolean passwordEquals(String tryPassword) throws DBException(Code) | | passwordEquals - feed it a password and it will tell you if the hash of it
matches the one on file.
Also, for backwards compatability and some other issues, this function
will also accept a plaintext version of the password if it is sitting in
the database. However, if a plaintext match is encountered, then it will
hash the password and re-write itself to the database record.
Parameters: tryPassword - The value the user input for an attempted login. true if the compared password equals |
postLogin | public void postLogin() throws DBException, LogException(Code) | | Called by the various objects that can log in a user
to do post-login tasks
|
randomPassword | public String randomPassword()(Code) | | a new random generated password |
sendAuthEmail | public void sendAuthEmail() throws DBException(Code) | | Sends an Authorization Email to a new User.
The user must click on the link encoded in this email before
his account will be activated.
|
sendFileTo | public void sendFileTo(String subject, String message, Vector fileNames) throws DBException, LogException(Code) | | Send this user an e-mail with file attachments.
Parameters: subject - Subject of the e-mail Parameters: message - Message to send in body of e-mail Parameters: fileNames - of the files to attach throws: DBException - If the mail message cannot be sent |
sendFollowUpEmail | public void sendFollowUpEmail() throws DBException(Code) | | Once a user has validated his email address through the email validation
servlet, the user will receive this message giving previously requested
username/password.
Creation date: (8/8/00 11:44:26 PM)
author: Adam Rossi, PlatinumSolutions, Inc.
throws: com.jcorporate.expresso.core.db.DBException - The exception description. |
setDBName | public void setDBName()(Code) | | |
Methods inherited from com.jcorporate.expresso.core.dbobj.SecuredDBObject | public void add() throws DBException(Code)(Java Doc) public boolean canRequesterAdd() throws DBException(Code)(Java Doc) public boolean canRequesterDelete() throws DBException(Code)(Java Doc) public boolean canRequesterRead() throws DBException(Code)(Java Doc) public boolean canRequesterUpdate() throws DBException(Code)(Java Doc) public boolean checkAllowed(String requestedFunction) throws DBException(Code)(Java Doc) public void copyAttributes(DBObject returnObj) throws DBException(Code)(Java Doc) public synchronized int count() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) protected synchronized void createSecurityCache() throws CacheException(Code)(Java Doc) public void delete() throws DBException(Code)(Java Doc) public synchronized void deleteAll() throws com.jcorporate.expresso.core.db.DBException(Code)(Java Doc) public boolean find() throws DBException(Code)(Java Doc) public int getRequestingUid()(Code)(Java Doc) protected String getString(String stringCode, Object[] args) throws DBException(Code)(Java Doc) protected String getString(String stringCode) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3) throws DBException(Code)(Java Doc) protected String getString(String stringCode, String arg1, String arg2, String arg3, String arg4) throws DBException(Code)(Java Doc) public int getSystemUid()(Code)(Java Doc) public static SecuredDBObject instantiate(String className) throws DBException(Code)(Java Doc) public void isAllowed(String requestedFunction) throws SecurityException, DBException(Code)(Java Doc) public void retrieve() throws DBException(Code)(Java Doc) public synchronized void search() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList() throws DBException(Code)(Java Doc) public synchronized ArrayList searchAndRetrieveList(String sortKeys) throws DBException(Code)(Java Doc) public void setRequestingUid(int newUid)(Code)(Java Doc) public void update() throws DBException(Code)(Java Doc)
|
|
|