| java.lang.Object org.nemesis.forum.impl.DbForum
DbForum | public class DbForum implements Forum,Cacheable(Code) | | Database implementation of the Forum interface. It loads and stores forum
information from a a database.
See Also: Forum |
Method Summary | |
public void | addForumMessageFilter(MessageFilter filter) | public void | addForumMessageFilter(MessageFilter filter, int index) | public void | addGroupPermission(Group group, int permissionType) | public void | addThread(ForumThread thread) | public void | addUserPermission(User user, int permissionType) | public Message | applyFilters(Message message) | public Message | createMessage(User user) | public ForumThread | createThread(Message rootMessage) | public void | deleteThread(ForumThread thread) | protected void | deleteThreadRecord(int threadID) | public boolean | equals(Object object) | public java.util.Date | getCreationDate() | public String | getDescription() | public MessageFilter[] | getForumMessageFilters() | public int | getID() | public Message | getMessage(int messageID) | public int | getMessageCount() | public int | getMessageCount(boolean approved) | public int | getModerationType() | public java.util.Date | getModifiedDate() | public String | getName() | public ForumPermissions | getPermissions(Authorization authorization) | public String | getProperty(String name) | public int | getSize() | public ForumThread | getThread(int threadID) | public int | getThreadCount() | public int | getThreadCount(boolean approved) | public int[] | groupsWithPermission(int permissionType) | public boolean | hasPermission(int type) | public int | hashCode() | public void | moveThread(ForumThread thread, Forum forum) | public Enumeration | propertyNames() | public void | removeForumMessageFilter(int index) | public void | removeGroupPermission(Group group, int permissionType) | public void | removeUserPermission(User user, int permissionType) | protected void | saveFiltersToDb() Saves filters to the database. | public void | setCreationDate(java.util.Date creationDate) | public void | setDescription(String description) | public void | setModerationType(int type) | public void | setModifiedDate(java.util.Date modifiedDate) | public void | setName(String name) | public void | setProperty(String name, String value) | public Iterator | threads() | public Iterator | threads(int startIndex, int numResults) | public Iterator | threads(boolean approved) | public Iterator | threads(boolean approved, int startIndex, int numResults) | public String | toString() Returns a String representation of the Forum object using the forum name. | protected void | updateModifiedDate(java.util.Date modifiedDate) Updates the modified date but doesn't require a security check since
it is a protected method. | public int[] | usersWithPermission(int permissionType) |
DELETE_THREAD | final protected static String DELETE_THREAD(Code) | | |
log | protected static Log log(Code) | | |
DbForum | protected DbForum(String name, String description, DbForumFactory factory)(Code) | | Creates a new forum with the specified name and description.
Parameters: name - the name of the forum. Parameters: description - the description of the forum. Parameters: factory - the DbForumFactory the forum is a part of. |
deleteThreadRecord | protected void deleteThreadRecord(int threadID)(Code) | | |
getMessageCount | public int getMessageCount()(Code) | | |
getMessageCount | public int getMessageCount(boolean approved)(Code) | | |
getModerationType | public int getModerationType()(Code) | | |
getSize | public int getSize()(Code) | | |
getThreadCount | public int getThreadCount()(Code) | | |
getThreadCount | public int getThreadCount(boolean approved)(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
saveFiltersToDb | protected void saveFiltersToDb()(Code) | | Saves filters to the database. Filter saving works by serializing
each filter to a byte stream and then inserting that stream into
the database.
|
threads | public Iterator threads(boolean approved, int startIndex, int numResults)(Code) | | |
toString | public String toString()(Code) | | Returns a String representation of the Forum object using the forum name.
a String representation of the Forum object. |
updateModifiedDate | protected void updateModifiedDate(java.util.Date modifiedDate)(Code) | | Updates the modified date but doesn't require a security check since
it is a protected method.
|
|
|