Package org.apache.imperius.spl.core

Examples of org.apache.imperius.spl.core.PolicyInfo


          !arrayOfInstancesParamSizeGreaterThanZero)
      {
       
        logger.fine(Thread.currentThread().getName() + "no instances passed evaluating against all");
       
        PolicyInfo policyInfo=this._policyManager.getPolicyInfo(policyRuleName);
       
        Map classQuaifierMap=policyInfo.getClassQualifierMap();
        Iterator classit=classQuaifierMap.keySet().iterator();
       
        if(classQuaifierMap.size()==0 || classQuaifierMap.size()>1)
        {
          logger.severe(Thread.currentThread().getName() + "Multiple Import classes not supported in CIM-SPL");
View Full Code Here


  public PolicyInfo getPolicyInfo(String policyName) throws SPLException
  {
    logger.entering(sourceClass, Thread.currentThread().getName() + " "  + "getPolicyInfo");
   
    PolicyInfo pi = this._policyDataStore.getPolicyInfo(policyName);
   
    logger.exiting(sourceClass, Thread.currentThread().getName() + " " + "getPolicyInfo");

    return pi;
  }
View Full Code Here

        List importStmtList = policyObject.getImportStmtList();

        logger.exiting(sourceClass, Thread.currentThread().getName()
            + " " + "getPolicyInfo");
       
        PolicyInfo pi = new PolicyInfoImpl(importStmtList);
        return pi;
      }
      else if (_policyRepository.policyExists(policyRuleName))
      {
        String PolicyString = _policyRepository.getPolicyString(policyRuleName);

        SPLPolicy internalPolicyObject = _policyParser.createInternalPolicyObject(policyRuleName, PolicyString);
        _policyCache.insertPolicy(policyRuleName, internalPolicyObject);
       
        List importStmtList = internalPolicyObject.getImportStmtList();
        PolicyInfo pi = new PolicyInfoImpl(importStmtList);

        logger.exiting(sourceClass, Thread.currentThread().getName()
            + " " + "getPolicyInfo");

        return pi;
View Full Code Here

    Integer retVal=new Integer(-1);
    System.out.println("executePolicy client SPL policy "+policyName);
     

    System.out.println(" no instances passed in , evaluating against all instances");
    PolicyInfo policyInfo=this._policyManager.getPolicyInfo(policyName);
    Map classQuaifierMap=policyInfo.getClassQualifierMap();
    Iterator classit=classQuaifierMap.keySet().iterator();
    System.out.println("number of classes in policy = "+classQuaifierMap.size());

    if(classQuaifierMap.size()==0 || classQuaifierMap.size()>1)
    {
View Full Code Here

TOP

Related Classes of org.apache.imperius.spl.core.PolicyInfo

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.