Package info.bliki.api.creator

Examples of info.bliki.api.creator.TopicData


        name = Character.toUpperCase(name.charAt(0)) + name.substring(1);
      }

      String content = null;
      try {
        TopicData topicData = fWikiDB.selectTopic(fTemplateNamespace + ":" + name);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
View Full Code Here


    String templateNS = getTemplateNamespace() + ":";
    String name = articleName;
    if (namespace.equals(getTemplateNamespace())) {
      String content = null;
      try {
        TopicData topicData = fWikiDB.selectTopic(templateNS + name);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
          }
        }

        String[] listOfTitleStrings = { templateNS + name };
        fUser.login();
        List<Page> listOfPages = fUser.queryContent(listOfTitleStrings);
        if (listOfPages.size() > 0) {
          Page page = listOfPages.get(0);
          content = page.getCurrentContent();
          if (content != null) {
            // System.out.println(name);
            // System.out.println(content);
            // System.out.println("-----------------------");
            topicData = new TopicData(templateNS + name, content);
            fWikiDB.insertTopic(topicData);
            content = getRedirectedWikiContent(content, templateParameters);
            if (content != null) {
              content = content.length() == 0 ? null : content;
            }
View Full Code Here

        name = Character.toUpperCase(name.charAt(0)) + name.substring(1);
      }

      String content = null;
      try {
        TopicData topicData = fWikiDB.selectTopic(fTemplateNamespace + ":" + name);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
View Full Code Here

    if (parsedPagename.namespace.isType(NamespaceCode.TEMPLATE_NAMESPACE_KEY)) {
      String content = null;
      String fullPageName = parsedPagename.namespace.makeFullPagename(parsedPagename.pagename);
      try {
        TopicData topicData = fWikiDB.selectTopic(fullPageName);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
          }
        }

        String[] listOfTitleStrings = { fullPageName };
        fUser.login();
        List<Page> listOfPages = fUser.queryContent(listOfTitleStrings);
        if (listOfPages.size() > 0) {
          Page page = listOfPages.get(0);
          content = page.getCurrentContent();
          if (content != null) {
            // System.out.println(name);
            // System.out.println(content);
            // System.out.println("-----------------------");
            topicData = new TopicData(fullPageName, content);
            fWikiDB.insertTopic(topicData);
            content = getRedirectedWikiContent(content, templateParameters);
            if (content != null) {
              content = content.length() == 0 ? null : content;
            }
View Full Code Here

        name = Character.toUpperCase(name.charAt(0)) + name.substring(1);
      }

      String content = null;
      try {
        TopicData topicData = fWikiDB.selectTopic(fTemplateNamespace + ":" + name);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
View Full Code Here

    if (parsedPagename.namespace.isType(NamespaceCode.TEMPLATE_NAMESPACE_KEY)) {
      String content = null;
      String fullPageName = parsedPagename.namespace.makeFullPagename(parsedPagename.pagename);
      try {
        TopicData topicData = fWikiDB.selectTopic(fullPageName);
        if (topicData != null) {
          content = topicData.getContent();
          content = getRedirectedWikiContent(content, templateParameters);
          if (content != null) {
            return content.length() == 0 ? null : content;
          } else {
            return null;
          }
        }
        String[] listOfTitleStrings = { fullPageName };
        fUser.login();
        List<Page> listOfPages = fUser.queryContent(listOfTitleStrings);
        if (listOfPages.size() > 0) {
          Page page = listOfPages.get(0);
          content = page.getCurrentContent();
          if (content != null) {
            // System.out.println(name);
            // System.out.println(content);
            // System.out.println("-----------------------");
            topicData = new TopicData(fullPageName, content);
            fWikiDB.insertTopic(topicData);
            content = getRedirectedWikiContent(content, templateParameters);
            if (content != null) {
              content = content.length() == 0 ? null : content;
            }
View Full Code Here

                name = Character.toUpperCase(name.charAt(0)) + name.substring(1);
            }

            String content = null;
            try {
                TopicData topicData = fWikiDB.selectTopic(fTemplateNamespace + ":" + name);
                if (topicData != null) {
                    content = topicData.getContent();
                    content = getRedirectedWikiContent(content, templateParameters);
                    if (content != null) {
                        return content.length() == 0 ? null : content;
                    } else {
                        return null;
View Full Code Here

            if (isTemplate) {
                setFrame(new Frame(templateParameters, getFrame()));
            }

            try {
                TopicData topicData = fWikiDB.selectTopic(fullPageName);
                if (topicData != null) {
                    content = topicData.getContent();
                    content = getRedirectedWikiContent(content, templateParameters);
                    if (content != null) {
                        return content.length() == 0 ? null : content;
                    } else {
                        return null;
                    }
                }
                String[] listOfTitleStrings = { fullPageName };
                fUser.login();
                List<Page> listOfPages = fUser.queryContent(listOfTitleStrings);
                if (listOfPages.size() > 0) {
                    Page page = listOfPages.get(0);
                    content = page.getCurrentContent();
                    if (content != null) {
                        // System.out.println(name);
                        // System.out.println(content);
                        // System.out.println("-----------------------");
                        topicData = new TopicData(fullPageName, content);
                        fWikiDB.insertTopic(topicData);
                        content = getRedirectedWikiContent(content, templateParameters);
                        if (content != null) {
                            content = content.length() == 0 ? null : content;
                        }
View Full Code Here

TOP

Related Classes of info.bliki.api.creator.TopicData

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.