Package org.dbwiki.data.database

Examples of org.dbwiki.data.database.DatabaseElementNode.identifier()


      if (node.parent().isGroup()) {
        DatabaseGroupNode parent = (DatabaseGroupNode)node.parent();
        for (int iChild = 0; iChild < parent.children().size(); iChild++) {
          DatabaseElementNode child = parent.children().get(iChild);
          if (child.schema().equals(node.schema())) {
            if (child.identifier().compareTo(node.identifier()) < 0) {
              nodeIndex++;
            }
          }
        }
      }
View Full Code Here


      assert(targetElement != null);
      if (!targetElement.isAttribute()) {
        throw new WikiDataException(WikiDataException.InvalidPasteTarget, target.toParameterString());
      }
      Update update = new Update();
      update.add(new NodeUpdate(targetElement.identifier(), ((PasteTextNode)pasteNode).getValue()));
      updateNodeWrapped(targetElement, update, _versionIndex.getNextVersion(new ProvenanceCopy(user, targetElement.identifier(), sourceURL)));
    }
  }

  /** Evaluates a wiki query with respect to the database */
 
View Full Code Here

      if (!targetElement.isAttribute()) {
        throw new WikiDataException(WikiDataException.InvalidPasteTarget, target.toParameterString());
      }
      Update update = new Update();
      update.add(new NodeUpdate(targetElement.identifier(), ((PasteTextNode)pasteNode).getValue()));
      updateNodeWrapped(targetElement, update, _versionIndex.getNextVersion(new ProvenanceCopy(user, targetElement.identifier(), sourceURL)));
    }
  }

  /** Evaluates a wiki query with respect to the database */
  public QueryResultSet query(String query) throws org.dbwiki.exception.WikiException {
View Full Code Here

   
    DatabaseNode node = _request.node();
    while (node != null) {
      if (node.isElement()) {
        DatabaseElementNode element = (DatabaseElementNode)node;
        String target = _request.wri().databaseIdentifier().linkPrefix() + element.identifier().toURLString();
        if (!versionParameter.versionCurrent()) {
          target = target + "?" + versionParameter.toURLString();
        }
        String link = _layouter.get(element.schema()).getShortLabel(element, versionParameter);
        link = "<a CLASS=\"" + CSS.CSSObjectPath + "\" HREF=\"" + target + "\">" + link + "</a>";
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.