Package jease.cms.domain

Examples of jease.cms.domain.Linkcheck


    }
    super.refresh();
  }

  protected void onSelect(Object obj) {
    final Linkcheck linkcheck = (Linkcheck) obj;
    final Content content = (Content) Nodes.getByPath(linkcheck.getPath());
    if (content != null) {
      NodeEditor editor = Registry.getEditor(content);
      editor.addChangeListener(new ActionListener() {
        public void actionPerformed(Event event) {
          Linkchecker.clear(linkcheck.getPath());
          Linkchecker.check(content);
          refresh();
        }
      });
      setEditor(editor);
View Full Code Here


          status = linkStates.get(url);
        } else {
          status = getStatus(content, url);
          linkStates.put(url, status);
        }
        Database.save(new Linkcheck(content.getPath(), url, status));
      }
    }
  }
View Full Code Here

   * to the database.
   */
  public static void check(Content content) {
    String fulltext = content.getFulltext().toString();
    for (String url : extractUrls(fulltext)) {
      Database.save(new Linkcheck(content.getPath(), url, getStatus(
          content, url)));
    }
  }
View Full Code Here

TOP

Related Classes of jease.cms.domain.Linkcheck

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.