Package org.glite.authz.pap.common.xacml.wizard

Examples of org.glite.authz.pap.common.xacml.wizard.ObligationWizard


  }
 
 
  protected ObligationType buildObligation(){
   
    ObligationWizard owiz = new ObligationWizard(obligationId);
    return owiz.getXACML();
  }
View Full Code Here


       
        if (obligationValue!= null){
          if (ObligationScopeType.action.equals(obligationScope)){
           
            if (!PolicyHelper.hasObligationWithId(actionPolicy, obligationValue)){
              ObligationWizard owiz = new ObligationWizard(obligationValue);
              ObligationsType obligations = ObligationsHelper.build();
              obligations.getObligations().add(owiz.getXACML());
              actionPolicy.setObligations(obligations);
            }
           
          }else{
           
            PolicySetType resourcePolicySet = findResourcePolicySet(papContainer);
            if (!PolicySetHelper.hasObligationWithId(resourcePolicySet, obligationValue)){
              ObligationWizard owiz = new ObligationWizard(obligationValue);
              ObligationsType obligations = ObligationsHelper.build();
              obligations.getObligations().add(owiz.getXACML());
              resourcePolicySet.setObligations(obligations);
            }
           
          }
        }
View Full Code Here

    private String createResource(PapContainer papContainer, String resourceValue, boolean bottom) {

      PolicySetWizard psWizard = new PolicySetWizard(new AttributeWizard("resource", resourceValue));
     
      if (obligationValue!= null && obligationScope.equals(ObligationScopeType.resource))
        psWizard.addObligation(new ObligationWizard(obligationValue))
     
        PolicySetType resource = psWizard.getXACML();

        String resourceId = resource.getPolicySetId();
View Full Code Here

            boolean bottom) {

      PolicyWizard pw = new PolicyWizard(new AttributeWizard("action", actionValue));
     
      if (obligationValue != null && obligationScope.equals(ObligationScopeType.action)){
        pw.addObligation(new ObligationWizard(obligationValue));
      }
     
        PolicyType action = pw.getXACML();
       
        papContainer.storePolicy(action);
View Full Code Here

TOP

Related Classes of org.glite.authz.pap.common.xacml.wizard.ObligationWizard

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.