Method Summary |
|
public Group | createGroup(String name) Factory method for creating a new Group. |
public User | createUser(String username, String password, String email) Factory method for creating a new User. |
public void | deleteGroup(Group group) Deletes a Group. |
public void | deleteUser(User user) Deletes a User. |
public User | getAnonymousUser() Returns the special "anonymous user" object. |
public Group | getGroup(int groupID) Gets a Group by ID. |
public Group | getGroup(String name) Gets a Group by name. |
public int | getGroupCount() Returns the number of groups in the system. |
public User | getSpecialUser() Returns the "special user" object. |
public User | getUser(int userID) Returns a User specified by their id.
Parameters: userid - the id of the User to lookup. |
public User | getUser(String username) Returns a User specified by username. |
public int | getUserCount() Returns the numer of users in the system. |
public Iterator | groups() Returns an iterator for all groups in the system. |
public Iterator | groups(int startIndex, int numResults) Returns an iterator for all groups starting at startIndex with the
given number of results. |
public int | userMessageCount(User user, Forum forum) Returns the number of messages a user has posted in a particular forum.
Parameters: user - the user you want results for. Parameters: forum - the forum you want to check results in. |
public Iterator | userMessages(User user, Forum forum) Returns an iterator for all the messages that a user posted in a
particular forum. |
public Iterator | users() Retruns an iterator for all users. |
public Iterator | users(int startIndex, int numResults) Returns an iterator for all users starting at startIndex with the
given number of results. |