| java.lang.Object com.mvnforum.admin.CategoryXML
CategoryXML | public class CategoryXML (Code) | | author: Igor Manic version: $Revision: 1.13 $, $Date: 2007/10/09 11:09:12 $ version:
version: CategoryXML todo Igor: enter description |
Method Summary | |
public void | addCategory(String categoryName, String categoryDesc, String categoryCreationDate, String categoryModifiedDate, String categoryOrder, String categoryOption, String categoryStatus) Creates a category. | public void | addCategoryWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) Creates a category watch for this category. | public static void | exportCategory(XMLWriter xmlWriter, int categoryID) | public static void | exportCategoryList(XMLWriter xmlWriter) | public static void | exportCategoryWatchesForCategory(XMLWriter xmlWriter, int categoryID) | public static void | exportSubCategoryList(XMLWriter xmlWriter, int parentCategoryID) | public int | getCategoryID() Returns CategoryID of this category or
-1 if category is not created yet. | public int | getParentCategoryID() Returns ThreadID of this category's parent category or
0 if this category is not created yet or has no parent category. | public void | setCategoryID(String id) | public void | setParentCategory(CategoryXML parentCategory) | public void | setParentCategoryID(int value) |
CategoryXML | public CategoryXML()(Code) | | |
addCategory | public void addCategory(String categoryName, String categoryDesc, String categoryCreationDate, String categoryModifiedDate, String categoryOrder, String categoryOption, String categoryStatus) throws CreateException, DuplicateKeyException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a category. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: categoryName - Name of a category to be created. Parameters: categoryDesc - Can be null. Parameters: categoryCreationDate - Can be null. Parameters: categoryModifiedDate - Can be null. Parameters: categoryOrder - Can be null. Parameters: categoryOption - Can be null. Parameters: categoryStatus - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addCategoryWatch | public void addCategoryWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) throws CreateException, DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException(Code) | | Creates a category watch for this category. In order to know which category we are
reffering to, this method is supposed to be called after
CategoryXML.setCategoryID(String) or
CategoryXML.addCategory(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 - |
getCategoryID | public int getCategoryID()(Code) | | Returns CategoryID of this category or
-1 if category is not created yet.
|
getParentCategoryID | public int getParentCategoryID()(Code) | | Returns ThreadID of this category's parent category or
0 if this category is not created yet or has no parent category.
|
setParentCategoryID | public void setParentCategoryID(int value)(Code) | | |
|
|