Package org.archive.accesscontrol.model

Examples of org.archive.accesscontrol.model.Rule


    if((e instanceof ResourceNotInArchiveException)
        && wbRequest.isReplayRequest()) {
      String url = wbRequest.getRequestUrl();
      Date captureDate = wbRequest.getReplayDate();
      try {
        Rule rule = client.getRule(url,captureDate,new Date(),who);
        jspPath = ruleToJspPath(rule);
      } catch (RuleOracleUnavailableException e1) {
        e1.printStackTrace();
      }
    }
View Full Code Here


  public int filterObject(CaptureSearchResult o) {
    if(client != null) {
      String url = o.getOriginalUrl();
      Date capDate = o.getCaptureDate();
      try {
        Rule r = client.getRule(url, capDate, new Date(), who);
        if(r != null) {
          String publicComment = r.getPublicComment();
          o.putCustom("ANOTATION", publicComment);
        }
      } catch (RuleOracleUnavailableException e) {
        e.printStackTrace();
        // should not happen: we forcibly disable robots retrievals
View Full Code Here

TOP

Related Classes of org.archive.accesscontrol.model.Rule

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.