| java.lang.Object com.mvnforum.admin.ForumXML
ForumXML | public class ForumXML (Code) | | author: Igor Manic version: $Revision: 1.16 $, $Date: 2007/10/09 11:09:13 $ version:
version: ForumXML todo Igor: enter description |
Method Summary | |
public void | addForum(String lastPostMemberName, String forumName, String forumDesc, String forumCreationDate, String forumModifiedDate, String forumLastPostDate, String forumOrder, String forumType, String forumFormatOption, String forumOption, String forumStatus, String forumModerationMode, String forumPassword, String forumThreadCount, String forumPostCount) Creates a forum. | public void | addForumWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) Creates a forum watch for this forum. | public void | addGroupForumPermission(String groupName, String permission) Adds a forum-specific permission to a group. | public void | addGuestMemberForumPermission(String permission) | public void | addMemberForumPermission(String memberName, String permission) Adds a forum-specific permission to a member. | public void | addRegisteredMembersGroupForumPermission(String permission) | public static void | exportForum(XMLWriter xmlWriter, int forumID) | public static void | exportForumList(XMLWriter xmlWriter, int parentCategoryID) | public static void | exportForumWatchesForForum(XMLWriter xmlWriter, int forumID) | public static void | exportGroupForumPermissionsForForum(XMLWriter xmlWriter, int forumID) | public static void | exportMemberForumPermissionsForForum(XMLWriter xmlWriter, int forumID) | public int | getForumID() Returns ForumID of this forum or
-1 if forum is not created yet. | public int | getParentCategoryID() Returns CategoryID of this forum's parent category or
-1 if this forum is not created yet. | public void | increasePostCount() | public void | increaseThreadCount() | public void | setForumID(String id) | public void | setParentCategory(CategoryXML parentCategory) | public void | setParentCategoryID(int value) | public void | updateLastPostDate(Timestamp value) | public void | updateLastPostMemberName(String value) |
ForumXML | public ForumXML()(Code) | | |
addForum | public void addForum(String lastPostMemberName, String forumName, String forumDesc, String forumCreationDate, String forumModifiedDate, String forumLastPostDate, String forumOrder, String forumType, String forumFormatOption, String forumOption, String forumStatus, String forumModerationMode, String forumPassword, String forumThreadCount, String forumPostCount) throws CreateException, DuplicateKeyException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a forum. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: lastPostMemberName - Can be null. Parameters: forumName - Name of a forum to be created. Parameters: forumDesc - Can be null. Parameters: forumCreationDate - Can be null. Parameters: forumModifiedDate - Can be null. Parameters: forumLastPostDate - Can be null. Parameters: forumOrder - Can be null. Parameters: forumType - Can be null. Parameters: forumFormatOption - Can be null. Parameters: forumOption - Can be null. Parameters: forumStatus - Can be null. Parameters: forumModerationMode - Can be null. Parameters: forumPassword - Password of a forum to be created. Can be null (or empty ""). Parameters: forumThreadCount - Can be null. Parameters: forumPostCount - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addForumWatch | public void addForumWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) throws CreateException, DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException(Code) | | Creates a forum watch for this forum. In order to know which forum we are
reffering to, this method is supposed to be called after
ForumXML.setForumID(String) or
ForumXML.addForum(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String) have been called. Otherwise, this watch will be simply ignored.
Parameters: memberName - Parameters: watchType - Can be null. Parameters: watchOption - Can be null. Parameters: watchStatus - Can be null. Parameters: watchCreationDate - Can be null. Parameters: watchLastSentDate - Can be null. Parameters: watchEndDate - Can be null. throws: BadInputException - throws: CreateException - throws: DatabaseException - throws: ObjectNotFoundException - throws: DuplicateKeyException - throws: ForeignKeyNotFoundException - |
addGroupForumPermission | public void addGroupForumPermission(String groupName, String permission) throws CreateException, DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException(Code) | | Adds a forum-specific permission to a group. In order to know which forum we are
reffering to, this method is supposed to be called after
ForumXML.setForumID(String) or
ForumXML.addForum(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String) have been called. Otherwise, this permission will be simply ignored.
Parameters: groupName - Group we are assigning permissions to. Parameters: permission - Permission to be added. throws: CreateException - throws: DatabaseException - throws: ObjectNotFoundException - throws: DuplicateKeyException - throws: ForeignKeyNotFoundException - |
addMemberForumPermission | public void addMemberForumPermission(String memberName, String permission) throws CreateException, DatabaseException, DuplicateKeyException, ObjectNotFoundException, ForeignKeyNotFoundException(Code) | | Adds a forum-specific permission to a member. In order to know which forum we are
reffering to, this method is supposed to be called after
ForumXML.setForumID(String) or
ForumXML.addForum(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String) have been called. Otherwise, this permission will be simply ignored.
Parameters: memberName - Member we are assigning permissions to. Parameters: permission - Permission to be added. throws: CreateException - throws: DatabaseException - throws: ObjectNotFoundException - throws: DuplicateKeyException - throws: ForeignKeyNotFoundException - |
getForumID | public int getForumID()(Code) | | Returns ForumID of this forum or
-1 if forum is not created yet.
|
getParentCategoryID | public int getParentCategoryID()(Code) | | Returns CategoryID of this forum's parent category or
-1 if this forum is not created yet.
|
setParentCategoryID | public void setParentCategoryID(int value)(Code) | | |
|
|