001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/service/CategoryService.java,v 1.21 2007/10/09 11:09:21 lexuanttkhtn Exp $
003: * $Author: lexuanttkhtn $
004: * $Revision: 1.21 $
005: * $Date: 2007/10/09 11:09:21 $
006: *
007: * ====================================================================
008: *
009: * Copyright (C) 2002-2007 by MyVietnam.net
010: *
011: * All copyright notices regarding mvnForum MUST remain
012: * intact in the scripts and in the outputted HTML.
013: * The "powered by" text/logo with a link back to
014: * http://www.mvnForum.com and http://www.MyVietnam.net in
015: * the footer of the pages MUST remain visible when the pages
016: * are viewed on the internet or intranet.
017: *
018: * This program is free software; you can redistribute it and/or modify
019: * it under the terms of the GNU General Public License as published by
020: * the Free Software Foundation; either version 2 of the License, or
021: * any later version.
022: *
023: * This program is distributed in the hope that it will be useful,
024: * but WITHOUT ANY WARRANTY; without even the implied warranty of
025: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
026: * GNU General Public License for more details.
027: *
028: * You should have received a copy of the GNU General Public License
029: * along with this program; if not, write to the Free Software
030: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
031: *
032: * Support can be obtained from support forums at:
033: * http://www.mvnForum.com/mvnforum/index
034: *
035: * Correspondence and Marketing Questions can be sent to:
036: * info at MyVietnam net
037: *
038: * @author: Phuong, Pham Dinh Duy
039: */
040: package com.mvnforum.service;
041:
042: import net.myvietnam.mvncore.exception.DatabaseException;
043: import net.myvietnam.mvncore.web.GenericRequest;
044: import net.myvietnam.mvncore.web.GenericResponse;
045:
046: import com.mvnforum.auth.AuthenticationException;
047:
048: import com.mvnforum.categorytree.CategoryTreeListener;
049: import com.mvnforum.categorytree.impl.ViewMemberPermissionsImpl;
050: import com.mvnforum.db.CategoryBean;
051: import com.mvnforum.db.ForumBean;
052:
053: public interface CategoryService {
054:
055: // return content of table
056: public CategoryTreeListener getManagementCategoryTree(
057: GenericRequest request, GenericResponse response)
058: throws AuthenticationException, DatabaseException;
059:
060: // return content of select-option
061: public CategoryTreeListener getManagementCategorySelector(
062: GenericRequest request, GenericResponse response)
063: throws AuthenticationException, DatabaseException;
064:
065: public CategoryTreeListener getManagementCategorySelector(
066: GenericRequest request, GenericResponse response,
067: boolean addForum, String selectName)
068: throws AuthenticationException, DatabaseException;
069:
070: // return content of list all forum on index page
071: public CategoryTreeListener getManagementListAllForum(
072: GenericRequest request, GenericResponse response)
073: throws AuthenticationException, DatabaseException;
074:
075: public CategoryTreeListener getManagementCategorySelector(
076: GenericRequest request, GenericResponse response,
077: String page, int forumID) throws AuthenticationException,
078: DatabaseException;
079:
080: public CategoryTreeListener getManagementCategorySelector(
081: GenericRequest request, GenericResponse response,
082: String page) throws AuthenticationException,
083: DatabaseException;
084:
085: public CategoryTreeListener getManagementCategorySelector(
086: GenericRequest request, GenericResponse response,
087: String page, int forum, int category)
088: throws AuthenticationException, DatabaseException;
089:
090: public CategoryTreeListener getManagementCategorySelector(
091: GenericRequest request, GenericResponse response,
092: ForumBean forumBean) throws AuthenticationException,
093: DatabaseException;
094:
095: public ViewMemberPermissionsImpl getManagementViewMemberPermissions(
096: GenericRequest request) throws AuthenticationException,
097: DatabaseException;
098:
099: public CategoryTreeListener getManagementRSS(
100: GenericRequest request, GenericResponse response,
101: String sort, String order) throws DatabaseException,
102: AuthenticationException;
103:
104: public CategoryTreeListener getManagementModcp(
105: GenericRequest request, GenericResponse response)
106: throws DatabaseException, AuthenticationException;
107:
108: public CategoryTreeListener getManagementListForums(
109: GenericRequest request, GenericResponse response,
110: CategoryBean rootCategory, boolean otherInvisible,
111: boolean show_sub_category) throws DatabaseException,
112: AuthenticationException;
113:
114: }
|