Examples of pageExists()


Examples of org.apache.wiki.WikiEngine.pageExists()

        if( m_pageFormat != null )
        {
            String pagename = m_pageFormat.format( day.getTime() );
           
            if( engine.pageExists( pagename ) )
            {
                if( m_urlFormat != null )
                {
                    String url = m_urlFormat.format( day.getTime() );
View Full Code Here

Examples of org.apache.wiki.WikiEngine.pageExists()

                    td authorinfo = new td();
                    authorinfo.setClass("author");
                   
                    if( author != null )
                    {
                        if( engine.pageExists(author) )
                        {
                            authorinfo.addElement( new a(context.getURL(WikiContext.VIEW, author),author) );
                        }
                        else
                        {
View Full Code Here

Examples of org.apache.wiki.WikiEngine.pageExists()

                    Element authorinfo = XhtmlUtil.element(XHTML.td);
                    authorinfo.setAttribute(XHTML.ATTR_class,"author");
                   
                    if( author != null )
                    {
                        if( engine.pageExists(author) )
                        {
                            authorinfo.addContent(XhtmlUtil.link(context.getURL(WikiContext.VIEW, author),author));
                        }
                        else
                        {
View Full Code Here

Examples of org.olat.modules.wiki.Wiki.pageExists()

      if (!wiki.mediaFileExists(mediaName)) return null;
      topic.setName(mediaName);
      topic.setTopicType(Topic.TYPE_FILE);
      return topic;
    }
    if (wiki.pageExists(wiki.generatePageId(FilterUtil.normalizeWikiLink(decodedName)))) {
      topic.setName(topicName);
      return topic;
    }
    return null;
  }
View Full Code Here

Examples of org.olat.modules.wiki.Wiki.pageExists()

//      throw new OLATRuntimeException(this.getClass(), "invalid topic name!", e);
//    }
   
    Wiki wiki = WikiManager.getInstance().getOrLoadWiki(ores);
    if (topic.startsWith(IMAGE_NAMESPACE) || topic.startsWith(MEDIA_NAMESPACE)) {
      return wiki.pageExists(topic);
    }
    String pageId = WikiManager.generatePageId(FilterUtil.normalizeWikiLink(topic));
    return wiki.pageExists(pageId);
  }
View Full Code Here

Examples of org.olat.modules.wiki.Wiki.pageExists()

    Wiki wiki = WikiManager.getInstance().getOrLoadWiki(ores);
    if (topic.startsWith(IMAGE_NAMESPACE) || topic.startsWith(MEDIA_NAMESPACE)) {
      return wiki.pageExists(topic);
    }
    String pageId = WikiManager.generatePageId(FilterUtil.normalizeWikiLink(topic));
    return wiki.pageExists(pageId);
  }

}
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.