当前位置: 首页>>代码示例>>Java>>正文


Java PolicyRepository.undeploy方法代码示例

本文整理汇总了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());
    }
}
 
开发者ID:bhits,项目名称:context-handler,代码行数:10,代码来源:PolicyDecisionPointServiceImpl.java

示例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());
	}
}
 
开发者ID:tlin-fei,项目名称:ds4p,代码行数:15,代码来源:PolicyDecisionPointImpl.java

示例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());

}
 
开发者ID:tlin-fei,项目名称:ds4p,代码行数:14,代码来源:PolicyDecisionPointImpl.java

示例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);
}
 
开发者ID:tlin-fei,项目名称:ds4p,代码行数:13,代码来源:PolicyDecisionPointImpl.java


注:本文中的org.herasaf.xacml.core.api.PolicyRepository.undeploy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。