Examples of updatePolicy()


Examples of com.comcast.cqs.persistence.CQSQueueCassandraPersistence.updatePolicy()

      persistence.createQueue(queue1);
     
        String queueName2 = QUEUE_PREFIX + randomGenerator.nextLong();
      CQSQueue queue2 = new CQSQueue(queueName2, user.getUserId());
      persistence.createQueue(queue2);
      persistence.updatePolicy(queue2.getRelativeUrl(), policy);
     
      for (CQSQueue e: persistence.listQueues(user.getUserId(), QUEUE_PREFIX, false)) {
        CQSQueue q = persistence.getQueue(e.getRelativeUrl());
        assertTrue(policy.equals(q.getPolicy()));
        persistence.deleteQueue(e.getRelativeUrl());
View Full Code Here

Examples of com.comcast.cqs.persistence.ICQSQueuePersistence.updatePolicy()

      persistence.createQueue(queue1);
     
        String queueName2 = QUEUE_PREFIX + randomGenerator.nextLong();
      CQSQueue queue2 = new CQSQueue(queueName2, user.getUserId());
      persistence.createQueue(queue2);
      persistence.updatePolicy(queue2.getRelativeUrl(), policy);
     
      for (CQSQueue e: persistence.listQueues(user.getUserId(), QUEUE_PREFIX, false)) {
        CQSQueue q = persistence.getQueue(e.getRelativeUrl());
        assertTrue(policy.equals(q.getPolicy()));
        persistence.deleteQueue(e.getRelativeUrl());
View Full Code Here

Examples of org.glite.authz.pap.papmanagement.PapContainer.updatePolicy()

        }

        if (updateOperationForPolicy) {
            String oldVersion = targetPolicyWizard.getVersionString();
            targetPolicyWizard.increaseVersion();
            papContainer.updatePolicy(oldVersion, targetPolicyWizard.getXACML());
        } else {
            papContainer.storePolicy(targetPolicyWizard.getXACML());
        }

        targetPolicyWizard.releaseChildrenDOM();
View Full Code Here

Examples of org.glite.authz.pap.papmanagement.PapContainer.updatePolicy()

        if (!(papContainer.hasPolicy(policy.getPolicyId()))) {
            return false;
        }

        papContainer.updatePolicy(version, policy);

        return true;
    }

    @Override
View Full Code Here

Examples of org.glite.authz.pap.papmanagement.PapContainer.updatePolicy()

               
            } else {

                String oldVersion = policyWizard.getVersionString();
                policyWizard.increaseVersion();
                papContainer.updatePolicy(oldVersion, policyWizard.getXACML());
            }

            unbanResult.setStatusCode(0);
            return unbanResult;
        }
View Full Code Here

Examples of org.glite.authz.pap.papmanagement.PapContainer.updatePolicy()

        PolicyWizard.increaseVersion(actionPolicy);
       

        TypeStringUtils.releaseUnneededMemory(actionPolicy);

        papContainer.updatePolicy(version, actionPolicy);

        return ruleWizard.getRuleId();
    }
   
View Full Code Here

Examples of org.jahia.services.pwdpolicy.JahiaPasswordPolicyService.updatePolicy()

          try {
            BeanUtils.populate(pwdPolicy, WebUtils.getParametersStartingWith(request, ""));
          } catch (Exception e) {
              throw new ServletException("BeanUtils.populate", e);
          }
      service.updatePolicy(pwdPolicy);
      request.setAttribute("confirmationMessage",
              "label.changeSaved");
    }

    request.setAttribute("policy", pwdPolicy);
View Full Code Here

Examples of org.wso2.carbon.governance.api.policies.PolicyManager.updatePolicy()

        String oldPolicyPath = newPolicy.getPath();
        assertEquals(oldPolicyPath, "/policies/policy.xml");
        assertTrue(registry.resourceExists("/policies/policy.xml"));

        newPolicy.setName("my-policy.xml");
        policyManager.updatePolicy(newPolicy);

        assertEquals("/policies/my-policy.xml", newPolicy.getPath());
        assertFalse(registry.resourceExists("/policies/policy.xml"));

        // doing an update without changing anything.
View Full Code Here

Examples of org.wso2.carbon.governance.api.policies.PolicyManager.updatePolicy()

        assertEquals("/policies/my-policy.xml", newPolicy.getPath());
        assertFalse(registry.resourceExists("/policies/policy.xml"));

        // doing an update without changing anything.
        policyManager.updatePolicy(newPolicy);

        assertEquals("/policies/my-policy.xml", newPolicy.getPath());
        assertEquals("0.01", newPolicy.getAttribute("version"));

        newPolicy = policyManager.getPolicy(policy.getId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.