| java.lang.Object com.mvnforum.admin.ImportWebHandler
ImportWebHandler | public class ImportWebHandler (Code) | | author: Igor Manic version: $Revision: 1.18 $, $Date: 2007/10/09 11:09:13 $ version:
version: ImportWebHandler class implements methods that process HTTP version: requests for import. Data could be imported from MVN Forum XML file conforming version: http://www.mvnforum.com/mvn.dtd, version: or from MVN Forum backup ZIP file. Data can also be migrated from other sources version: (for now, it's only available for Jive Forums ). |
addErrorMessage | public static void addErrorMessage(String message)(Code) | | |
addFinalErrorHandling | public static void addFinalErrorHandling(HttpServletRequest request, boolean resetAllData)(Code) | | Adds warning that the process contained some errors, and the database
might be inconsistent now. It also tries to clear the database and
create default entries, including "admin" member.
|
addImportantMessage | public static void addImportantMessage(String message)(Code) | | |
addMessage | public static void addMessage(String message)(Code) | | |
endHtml | public static void endHtml()(Code) | | |
getBackupFilesOnServer | public static Vector getBackupFilesOnServer()(Code) | | |
importXmlZip | public static void importXmlZip(HttpServletRequest request, HttpServletResponse response) throws ImportException, AuthenticationException, DatabaseException(Code) | | This is the main import request dispatcher. It parses request
parameters, and decides what is the type of file used and what procedure
to call (restore from mvnForum XML, or mvnForum ZIP, or migrate from Jive XML, ...).
It also extracts additional request parameters, if they exist. Then it calls
the desired procedure and gives it all parameters it extracted from the request.
//todo Igor: add @see tags for all importXml/Zip methods
Parameters: request - HttpServletRequest object of the request. Parameters: response - HttpServletResponse object of the request. throws: ImportException - throws: AuthenticationException - throws: DatabaseException - |
setMessageOutputLevel | public static void setMessageOutputLevel(int messageLevel)(Code) | | |
setOutputHtmlWriter | public static void setOutputHtmlWriter(PrintWriter outHtml)(Code) | | All output messages (status, informational and error) will be written
to outHtml .
Parameters: outHtml - PrintWriter to write all output to. If it isnull , there will be no output messages. |
|
|