SOAP renderContent needs to support storage format content

XMLWordPrintable

      Current support assumes the content is wiki and there is no option for storage format. This must have been missed when 4.0 was done. Need option for either wiki or storage format. Need to leave the wiki option as default so it doesn't cause a compatibility problem.

      Suggest adding an option in the extended service API that has the parameters parameter: String renderContent(String token, String spaceKey, String pageId, String content, Hashtable parameters). Something like this:

      PagesSoapService
      public String renderContent(String spaceKey, long pageId, String newContent, Map parameters) throws RemoteException
          {
              ...
              if (StringUtils.isNotBlank(newContent))
              {
                  String renderedContent;
                  if ((parameters.containsKey("format") && "storage".equalsIgnoreCase((String parameters.get("format")) {
                      renderedContent = renderContent(page.getSpaceKey(), page.getId(), newContent); 
                  } else { 
                      renderedContent = wikiStyleRenderer.convertWikiToXHtml(pageContext, newContent);
                  }
              }
              ...
      

            Assignee:
            Unassigned
            Reporter:
            Bob Swift
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: