Package org.dbwiki.data.index

Examples of org.dbwiki.data.index.DatabaseEntry


    // may be unnecessary
    assert(iterator != null);
   
    body.add("<ul CLASS=\"" + CSS.CSSIndexContent + "\">");
   
    DatabaseEntry entry = null;
    while ((entry = iterator.next()) != null) {
      body.add("<li>" + _request.wri().databaseIdentifier().getLink(entry, versionParameter) + "</li>");
    }
   
    body.add("</ul>");
View Full Code Here


    RequestParameterVersion versionParameter = RequestParameter.versionParameter(request.parameters().get(RequestParameter.ParameterVersion));
   
    body.add("<ul CLASS=\"" + CSS.CSSIndexContent + "\">");

    DatabaseEntry entry = null;
    while ((entry = iterator.next()) != null) {
      readCount++;
      if (readCount >= startIndex) {
        body.add("<li>" + databaseIdentifier.getLink(entry, versionParameter) + "</li>");
        outputCount++;
View Full Code Here

   * Public Methods
   */

  public void listContent(DatabaseIdentifier databaseIdentifier, ContentIterator iterator, WikiRequest request, HtmlLinePrinter body) throws org.dbwiki.exception.WikiException {
   
    DatabaseEntry entry = null;
   
    Vector<DatabaseEntry> entries = new Vector<DatabaseEntry>();
    while ((entry = iterator.next()) != null) {
      entries.add(entry);
    }
View Full Code Here

    }
    ContentIndexContainer container = new ContentIndexContainer(nonalphabeticContentKey);
    _containerIndex.put(nonalphabeticContentKey, container);
    _containerList.add(container);
   
    DatabaseEntry entry = null;
   
    while ((entry = iterator.next()) != null) {
      String key = entry.label().substring(0, 1);
      container = _containerIndex.get(key);
      if (container == null) {
        container = _containerList.lastElement();
      }
      container.add(entry);
View Full Code Here

  public void listContent(DatabaseIdentifier databaseIdentifier, ContentIterator iterator, WikiRequest request, HtmlLinePrinter body) throws org.dbwiki.exception.WikiException {
    body.add("<ul CLASS=\"" + CSS.CSSIndexContent + "\">");
   
    RequestParameterVersion versionParameter = RequestParameter.versionParameter(request.parameters().get(RequestParameter.ParameterVersion));

    DatabaseEntry entry = null;
    while ((entry = iterator.next()) != null) {
      body.add("<li>" + databaseIdentifier.getLink( entry, versionParameter) + "</li>");
    }
   
    body.add("</ul>");
View Full Code Here

          entryIdentifier = entryIdentifier.substring(pos + 1);
        } else {
          throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
        }
      }
      DatabaseEntry entry = database.content().get(entryIdentifier);
      if (entry != null) {
        if (url.size() > 1) {
          return this.decode(database, (DatabaseGroupNode)database.get(entry.identifier()), versionParameter, url, 1);
        } else {
          return entry.identifier();
        }
      } else {
        throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
      }
    } else {
View Full Code Here

TOP

Related Classes of org.dbwiki.data.index.DatabaseEntry

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.