use of org.apache.directory.fortress.core.model.PwPolicy in project directory-fortress-core by apache.
the class PwPolicyMgrImpl method read.
/**
* {@inheritDoc}
*/
@Override
@AdminPermissionOperation
public PwPolicy read(String name) throws SecurityException {
String methodName = "read";
VUtil.assertNotNullOrEmpty(name, GlobalErrIds.PSWD_NAME_NULL, CLS_NM + "." + methodName);
checkAccess(CLS_NM, methodName);
PwPolicy policy = new PwPolicy(name);
policy.setContextId(this.contextId);
return policyP.read(policy);
}
use of org.apache.directory.fortress.core.model.PwPolicy in project directory-fortress-core by apache.
the class PwPolicyMgrImpl method search.
/**
* {@inheritDoc}
*/
@Override
@AdminPermissionOperation
public List<PwPolicy> search(String searchVal) throws SecurityException {
String methodName = "search";
VUtil.assertNotNull(searchVal, GlobalErrIds.PSWD_NAME_NULL, CLS_NM + "." + methodName);
checkAccess(CLS_NM, methodName);
PwPolicy policy = new PwPolicy(searchVal);
policy.setContextId(this.contextId);
return policyP.search(policy);
}
Aggregations