Examples of SiteNode


Examples of org.apache.lenya.cms.site.SiteNode

           
            if (this.path.equals("/")) {
                children = site.getTopLevelNodes();
            }
            else {
                SiteNode node = site.getNode(this.path);
                children = node.getChildren();
            }

            addNodes(children);
        } catch (PublicationException e) {
            throw new ProcessingException(e);
View Full Code Here

Examples of org.apache.lenya.cms.site.SiteNode

        if (true) {
            return;
        }
        for (Iterator paths = this.path2node.keySet().iterator(); paths.hasNext();) {
            String path = (String) paths.next();
            SiteNode node = (SiteNode) this.path2node.get(path);
            String uuid = node.getUuid();
            if (uuid != null) {
                String[] langs = node.getLanguages();
                for (int i = 0; i < langs.length; i++) {
                    String key = getKey(uuid, langs[i]);
                    Assert.isTrue("contains link for [" + key + "]", this.uuidLanguage2link
                            .containsKey(key));
                }
View Full Code Here

Examples of org.apache.lenya.cms.site.SiteNode

        return parent;
    }

    public boolean contains(String path, String language) {
        if (contains(path)) {
            SiteNode node;
            try {
                node = getNode(path);
            } catch (SiteException e) {
                throw new RuntimeException(e);
            }
            return node.hasLink(language);
        }
        return false;
    }
View Full Code Here

Examples of org.infoglue.cms.entities.structure.SiteNode

    oql.bind(limit);
     
      QueryResults results = oql.execute(Database.READONLY);
    while (results.hasMore())
        {
      SiteNode siteNode = (SiteNode)results.next();
      siteNodeList.add(siteNode);
        }
   
    results.close();
    oql.close();
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

                    return;
                }
               
                try {
                    HistoryReference ref = (HistoryReference) obj[0];
                    SiteNode siteNode = ref.getSiteNode();
                    extension.startScan(siteNode);
                } catch (Exception e1) {
                    extension.getView().showWarningDialog("Error getting History.");
                }
          }
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

      menuItemScan.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {   

            JTree siteTree = getView().getSiteTreePanel().getTreeSite();
                SiteNode node = (SiteNode) siteTree.getLastSelectedPathComponent();
                if (node == null) {
                    getView().showWarningDialog("Please select a site/folder/URL in Sites panel.");
                    return;
                }
            menuItemScan.setEnabled(false);
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

  */
  private String getChildSuffix(SiteNode node, boolean performRecursiveCheck) {

    String resultSuffix = "";
    String suffix = null;
    SiteNode child = null;
        HistoryReference ref = null;
    HttpMessage msg = null;
    try {

      for (int i=0; i<staticSuffixList.length; i++) {
        suffix = staticSuffixList[i];
        for (int j=0; j<node.getChildCount(); j++) {
          child = (SiteNode) node.getChildAt(j);
                    ref = child.getHistoryReference();
          try {
              msg = ref.getHttpMessage();
                        if (msg.getRequestHeader().getURI().getPath().endsWith(suffix)) {
                  return suffix;
              }
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

  /**
  Analyse node (should be a folder unless it is host level) in-order.
  */
  private void inOrderAnalyse(SiteNode node) {
     
    SiteNode tmp = null;
   
    if (isStop) {
        return;
    }
   
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

      HostProcess hostProcess = null;
      Thread thread = null;
     
      if (node.isRoot()) {
          for (int i=0; i<node.getChildCount() && !isStop(); i++) {
              SiteNode child = (SiteNode) node.getChildAt(i);
              String hostAndPort = getHostAndPort(child);
              hostProcess = new HostProcess(hostAndPort, this, scannerParam, connectionParam);
              hostProcess.setStartNode(child);
              do {
                  thread = pool.getFreeThreadAndRun(hostProcess);
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

      return isStop;
  }
 
  private String getHostAndPort(SiteNode node) {
      String result = "";
      SiteNode parent = null;
      if (node == null || node.isRoot()) {
          result = "";
      } else {
          SiteNode curNode = node;
          parent = (SiteNode) node.getParent();
          while (!parent.isRoot()) {
              curNode = parent;
              parent = (SiteNode) curNode.getParent();
          }
          result = curNode.toString();
      }
      return result;
  }
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.