Examples of versionSingle()


Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

   
    printer.add("\t\t\t\t\t<li><a href=\"" + _request.wri().getURL() + "?" + RequestParameter.ParameterActivate + "\">Activate</a></li>");
   
    RequestParameterVersion version = RequestParameter.versionParameter(_request.parameters().get(RequestParameter.ParameterVersion));
    String target = _request.wri().getURL() + "?" + RequestParameter.ParameterCopy;
    if (version.versionSingle()) {
      target = target + "&" + version.toURLString();
    }
    printer.add("\t\t\t\t\t<li><a href=\"" + target + "\">" + menuLabelCopy + "</a></li>");
   
    printer.add("\t\t\t\t</ul>");
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

    printer.add("\t\t\t<div class=\"" + CSS.CSSMenuSubBox + "\">");
    printer.add("\t\t\t\t<ul>");
   
    RequestParameterVersion version = RequestParameter.versionParameter(_request.parameters().get(RequestParameter.ParameterVersion));
    String target = _request.wri().getURL() + "?" + RequestParameter.ParameterCopy;
    if (version.versionSingle()) {
      target = target + "&" + version.toURLString();
    }
    printer.add("\t\t\t\t\t<li><a href=\"" + target + "\">" + menuLabelCopy + "</a></li>");
   
    printer.add("\t\t\t\t</ul>");
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

    printer.add("\t\t\t\t\t<li><a href=\"" + _request.wri().getURL() + "?" + RequestParameter.ParameterEdit + "\">" + menuLabelEdit + "</a></li>");
   
    RequestParameterVersion version = RequestParameter.versionParameter(_request.parameters().get(RequestParameter.ParameterVersion));
    String target = _request.wri().getURL() + "?" + RequestParameter.ParameterCopy;
    if (version.versionSingle()) {
      target = target + "&" + version.toURLString();
    }
    printer.add("\t\t\t\t\t<li><a href=\"" + target + "\">" + menuLabelCopy + "</a></li>");
   
    this.printPasteSubMenu(printer);
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

      iterator = new FullContentIterator(_content);
    } else if (versionParameter.versionChangesSince()) {
      iterator = new ChangesSinceContentIterator(_content, ((RequestParameterVersionChanges)versionParameter).versionNumber());
    } else if (versionParameter.versionCurrent()) {
      iterator = new CurrentContentIterator(_content);
    } else if (versionParameter.versionSingle()) {
      iterator = new VersionContentIterator(_content, ((RequestParameterVersionSingle)versionParameter).versionNumber());
    }
    // may be unnecessary
    assert(iterator != null);
   
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

      iterator = new FullContentIterator(_content);
    } else if (version.versionChangesSince()) {
      iterator = new ChangesSinceContentIterator(_content, ((RequestParameterVersionChanges)version).versionNumber());
    } else if (version.versionCurrent()) {
      iterator = new CurrentContentIterator(_content);
    } else if (version.versionSingle()) {
      iterator = new VersionContentIterator(_content, ((RequestParameterVersionSingle)version).versionNumber());
    }
   
    if (iterator != null) {
      this.listContent(_request.wri().databaseIdentifier(), iterator, _request, body);
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

        fullHistory = "Full history";
      } else if (versionParameter.versionChangesSince()) {
        changesSince = changesSince + "<br/>" + _request.versionIndex().getByNumber(((RequestParameterVersionChanges)versionParameter).versionNumber()).name();
      } else if (versionParameter.versionCurrent()) {
        currentVersion = "Current version";
      } else if (versionParameter.versionSingle()) {
        previousVersion = previousVersion + "<br/>" + _request.versionIndex().getByNumber(((RequestParameterVersionSingle)versionParameter).versionNumber()).name();
      }
    }

    body.openTABLE(CSS.CSSTimemachineTab);
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

        }
      } else if ((parameters.hasParameter(RequestParameter.ParameterVersion)) && (parameters.hasParameter(RequestParameter.ParameterExportXML))) {
        //?version=x && ?xml
        try {
          RequestParameterVersion version = RequestParameter.versionParameter(parameters.get(RequestParameter.ParameterVersion));
          if (version.versionSingle()) {
            _type = requestTypeExportXML;
          }
        } catch (org.dbwiki.exception.WikiException wikiException) {
          // silently ignore wiki exceptions
          // FIXME #requestparsing: is this really the behaviour we want?
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

        }
      } else if ((parameters.hasParameter(RequestParameter.ParameterVersion)) && (parameters.hasParameter(RequestParameter.ParameterExportJSON))) {
        //?version=x && ?json
        try {
          RequestParameterVersion version = RequestParameter.versionParameter(parameters.get(RequestParameter.ParameterVersion));
          if (version.versionSingle()) {
            _type = requestTypeExportJSON;
          }
        } catch (org.dbwiki.exception.WikiException wikiException) {
          // silently ignore wiki exceptions
          // FIXME #requestparsing: is this really the behaviour we want?
View Full Code Here

Examples of org.dbwiki.web.request.parameter.RequestParameterVersion.versionSingle()

          + exchange.getLocalPort()
          + request.wri().getURL();
      RequestParameterVersion version = RequestParameter
          .versionParameter(request.parameters().get(
              RequestParameter.ParameterVersion));
      if (version.versionSingle()) {
        sourceURL = sourceURL + "?" + version.toURLString();
      } else {
        sourceURL = sourceURL
            + "?"
            + new RequestParameterVersionSingle(this.database()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.