| |
|
| java.lang.Object com.Yasna.forum.database.DbUser
DbUser | public class DbUser implements User,Cacheable(Code) | | Database implementation of the User interface. Additionally, it filters all
HTML tags from fields before returning them for security purposes.
Use of the Yazd user system is optional. There a number of different ways
to create your own user system or to integrate into an existing user
system:
- Edit the source of this class and modify the database queries to match
your user system.
- Implement a set of custom classes and tell the ForumFactory to load
them. In this case, it is still recommended to use the Yazd user API
since that will mean much less reimplementation work in the other
classes.
If you can follow the Yazd API for your own user data, but need access
within Yazd to extended user properties, such as addresses or other
personal data, and easy solution is to adapt the user properties facility
to load and access this data.
|
Constructor Summary | |
protected | DbUser(String username, String password, String email) Create a new DbUser with all required fields. | protected | DbUser(int userID) Load a DbUser object specified by userID. | protected | DbUser(String username) Load a DbUser object specified by username. |
DbUser | protected DbUser(String username, String password, String email) throws UserAlreadyExistsException(Code) | | Create a new DbUser with all required fields.
Parameters: username - the username for the user. Parameters: password - a password for the user. Parameters: email - the email address for the user. |
DbUser | protected DbUser(int userID) throws UserNotFoundException(Code) | | Load a DbUser object specified by userID.
Parameters: userID - the userID of the user to load. |
DbUser | protected DbUser(String username) throws UserNotFoundException(Code) | | Load a DbUser object specified by username.
Parameters: username - the username of the user to load. |
activateUser | protected void activateUser()(Code) | | |
getSize | public int getSize()(Code) | | |
getThreadSubscribe | public boolean getThreadSubscribe()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
isAnonymous | public boolean isAnonymous()(Code) | | |
isEmailVisible | public boolean isEmailVisible()(Code) | | |
isNameVisible | public boolean isNameVisible()(Code) | | |
setPasswordHash | public void setPasswordHash(String passwordHash)(Code) | | |
toString | public String toString()(Code) | | Returns a String representation of the User object using the username.
a String representation of the User object. |
|
|
|