| java.lang.Object com.Yasna.forum.database.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 | addArticleMap(String pageKey, ForumThread thread) | public void | addForumMessageFilter(ForumMessageFilter filter) | public void | addForumMessageFilter(ForumMessageFilter filter, int index) | public void | addGroupPermission(Group group, int permissionType) | public void | addThread(ForumThread thread) | public void | addUserPermission(User user, int permissionType) | public ForumMessage | applyFilters(ForumMessage message) | public ForumMessage | createDummyMessage(User user) | public ForumMessage | createMessage(User user, ClientIP clientIP) | public Query | createQuery() | public ForumThread | createThread(ForumMessage rootMessage, ThreadType typeid) | public void | deleteThread(ForumThread thread) | protected void | deleteThreadRecord(int threadID) | public boolean | equals(Object object) | public int | forumOrder() | public java.util.Date | getCreationDate() | public String | getDescription() | public ForumMessageFilter[] | getForumMessageFilters() | public int | getID() | public int | getMessageCount() | 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[] | groupsWithPermission(int permissionType) | public boolean | hasPermission(int type) | public int | hashCode() | public boolean | isArticleForum() | public boolean | isModerated() | 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 | setForumOrder(int param) | public void | setModerated(boolean moderated) | 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, int sortBy) | 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) | | |
DbForum | protected DbForum(String name, String description, boolean moderated, int forumGroupID, DbForumFactory factory, boolean article)(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: moderated - when true - posted messages and threads must first be approved Parameters: forumGroupID - every forum belongs to a Category and ForumGroup Parameters: factory - the DbForumFactory the forum is a part of. |
deleteThreadRecord | protected void deleteThreadRecord(int threadID)(Code) | | |
forumOrder | public int forumOrder()(Code) | | |
getMessageCount | public int getMessageCount()(Code) | | |
getSize | public int getSize()(Code) | | |
getThreadCount | public int getThreadCount()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
isArticleForum | public boolean isArticleForum()(Code) | | |
isModerated | public boolean isModerated()(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(int startIndex, int numResults, int sortBy)(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.
|
|
|