| |
|
| java.lang.Object org.nemesis.forum.impl.DbUser
DbUser | 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 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 user API
since that will mean much less reimplementation work in the other
classes.
If you can follow the API for your own user data, but need access
within 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.
|
Field Summary | |
protected static Log | log |
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. |
log | protected static Log log(Code) | | |
DbUser | protected DbUser(String username, String password, String email)(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. |
getGroupAdministratorCount | public int getGroupAdministratorCount()(Code) | | |
getGroupCount | public int getGroupCount()(Code) | | |
getSize | public int getSize()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
isAdministratorInGroup | public boolean isAdministratorInGroup(Group group)(Code) | | |
isAnonymous | public boolean isAnonymous()(Code) | | |
isEmailVisible | public boolean isEmailVisible()(Code) | | |
isMemberInGroup | public boolean isMemberInGroup(Group group)(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. |
|
|
|