Package org.jamwiki.model

Examples of org.jamwiki.model.VirtualWiki


  /**
   *
   */
  private static void setupDefaultVirtualWiki() throws DataAccessException,
      WikiException {
    VirtualWiki virtualWiki = new VirtualWiki();
    virtualWiki.setName(WikiBase.DEFAULT_VWIKI);
    virtualWiki.setDefaultTopicName(Environment
        .getValue(Environment.PROP_BASE_DEFAULT_TOPIC));
    WikiBase.getDataHandler().writeVirtualWiki(virtualWiki);
  }
View Full Code Here


    for (VirtualWiki virtualWiki : results) {
      list.add(virtualWiki);
    }
    if (list.size() == 0) {
      // TODO allow multiple virtual wikis
      VirtualWiki vw = new VirtualWiki(WikiBase.DEFAULT_VWIKI, Environment.getValue(Environment.PROP_BASE_DEFAULT_TOPIC));
      list.add(vw);
      return list;
    }
    return list;
  }
View Full Code Here

  }

  @Override
  public VirtualWiki lookupVirtualWiki(String virtualWikiName) throws DataAccessException {
    // TODO allow multiple virtual wikis
    return new VirtualWiki(WikiBase.DEFAULT_VWIKI, Environment.getValue(Environment.PROP_BASE_DEFAULT_TOPIC));
  }
View Full Code Here

TOP

Related Classes of org.jamwiki.model.VirtualWiki

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.