Package org.dbwiki.web.ui.printer.server

Examples of org.dbwiki.web.ui.printer.server.DatabaseWikiFormPrinter


      //
      // If parameter validation results in an error message the create wiki
      // form is re-displayed showing the error message.
      //
      ServerResponseHandler responseHandler = new ServerResponseHandler(request, _wikiTitle + " - Create Database Wiki");
      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter(properties, RequestParameterAction.ActionInsert, "Create Database Wiki", message));
      return responseHandler;
    } else {
      //
      // If the parameter values are valid the database wiki is created
      //
View Full Code Here


    }
   
    // If invalid, pass back appropriate message.
    if (message != DatabaseWikiFormPrinter.MessageNone) {
      ServerResponseHandler responseHandler = new ServerResponseHandler(request, _wikiTitle + " - Edit Database Wiki");
      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter(properties, RequestParameterAction.ActionUpdate, "Edit Database Wiki", message));
      return responseHandler;
    } else {
      // Otherwise, apply the changes.
      if ((request.user() == null) && (_authenticationMode != DatabaseWikiProperties.AuthenticateNever)) {
        throw new WikiFatalException("User information is missing");
View Full Code Here

    if (request.type().isIndex()) {
      responseHandler = this.getHomepageResponseHandler(request);
    } else if (request.type().isCreate()) {
      responseHandler = new ServerResponseHandler(request, _wikiTitle + " - Create Database Wiki");
      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter("Create Database Wiki"));
    } else if (request.type().isEdit()) {
      DatabaseWiki wiki = this.getRequestWiki(request, RequestParameter.ParameterEdit);
      responseHandler = new ServerResponseHandler(request, _wikiTitle + " - Edit Database Wiki");
      responseHandler.put(HtmlContentGenerator.ContentContent, new DatabaseWikiFormPrinter(wiki.getProperties(), RequestParameterAction.ActionUpdate, "Edit Database Wiki"));
    } else if (request.type().isReset()) {
      this.resetWikiConfiguration(this.getRequestWiki(request, RequestParameter.ParameterReset));
      responseHandler = this.getHomepageResponseHandler(request);
    } else if (request.type().isAction()) {
      RequestParameterAction action = RequestParameter.actionParameter(request.parameters().get(RequestParameter.ParameterAction));
View Full Code Here

TOP

Related Classes of org.dbwiki.web.ui.printer.server.DatabaseWikiFormPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.