Package org.apache.imperius.spl.parser.statements

Examples of org.apache.imperius.spl.parser.statements.PolicyStatement


    ArrayList list = (ArrayList) al.clone();
    ArrayList result = new ArrayList();
    while (list.size() > 0) {
      int index = 0;
      for(int j = 1; j < list.size(); j++) {
        PolicyStatement pStatement = (PolicyStatement)list.get(0);
        PolicyStatement pStatementNext = (PolicyStatement)list.get(j);
        if(pStatement.getPriority() > pStatementNext.getPriority()) {
          index = j;
        }
      }
      result.add(list.remove(index));
    }
View Full Code Here


    for(int j=0; j<_policyList.size();j++)
    {

//      System.out.println("***********"+"evaluating sub policy number "+(j+1)+"***********");
      auditloggerString+="***********"+"evaluating sub policy number "+(j+1)+"***********"+"\n";
      PolicyStatement pStatement = (PolicyStatement)_policyList.get(j);
      // evaluate each policy 
      EvaluationResults er1 = pStatement.evaluateForResults(dc,ac);
      result.appendResult(er1);
      int result1 = result.getStatusCode(); // pStatement.evaluate(dc,ac);
      auditloggerString+=pStatement.getAuditLogString();

      if(result1 == POLICY_EVALUATION_FAILED) // report failure even if a single policy fails
      {
//        result = result1;
//        System.out.println("     "+"SPLPolicy evaluation failed ");
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.parser.statements.PolicyStatement

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.