本文整理汇总了Java中org.herasaf.xacml.core.api.PolicyRepository.undeploy方法的典型用法代码示例。如果您正苦于以下问题:Java PolicyRepository.undeploy方法的具体用法?Java PolicyRepository.undeploy怎么用?Java PolicyRepository.undeploy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.herasaf.xacml.core.api.PolicyRepository
的用法示例。
在下文中一共展示了PolicyRepository.undeploy方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: undeployAllPolicies
import org.herasaf.xacml.core.api.PolicyRepository; //导入方法依赖的package包/类
private void undeployAllPolicies(PDP pdp) {
final PolicyRepository repo = (PolicyRepository) pdp
.getPolicyRepository();
final List<Evaluatable> policies = new LinkedList<>(
repo.getDeployment());
for (final Evaluatable policy : policies) {
repo.undeploy(policy.getId());
}
}
示例2: undeployPolicies
import org.herasaf.xacml.core.api.PolicyRepository; //导入方法依赖的package包/类
/**
* Undeploy policies.
*
* @param pdp
* the pdp
* @param policies
* the policies
*/
public void undeployPolicies(PDP pdp, List<Evaluatable> policies) {
PolicyRepository repo = (PolicyRepository) pdp.getPolicyRepository();
for (Evaluatable policy : policies) {
repo.undeploy(policy.getId());
}
}
示例3: undeployPolicy
import org.herasaf.xacml.core.api.PolicyRepository; //导入方法依赖的package包/类
/**
* Undeploy multiple policies on the policy repository.
*
* @param pdp
* the pdp
* @param policy
* the policy
*/
public void undeployPolicy(PDP pdp, Evaluatable policy) {
PolicyRepository repo = (PolicyRepository) pdp.getPolicyRepository();
repo.undeploy(policy.getId());
}
示例4: undeployPoliciesById
import org.herasaf.xacml.core.api.PolicyRepository; //导入方法依赖的package包/类
/**
* Undeploy multiple policies on the policy repository.
*
* @param pdp
* the pdp
* @param policyIds
* the policy ids
*/
public void undeployPoliciesById(PDP pdp, List<EvaluatableID> policyIds) {
PolicyRepository repo = (PolicyRepository) pdp.getPolicyRepository();
repo.undeploy(policyIds);
}