public interface RASPolicyManager extends EntityManager
Modifier and Type | Method and Description |
---|---|
RASPolicyEntry |
createRASPolicy(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<RASResourceEntry> target, java.util.List<java.lang.String> referredRules, java.util.Set<RASPolicyEntry.RASParameterValue> parameterValues, RASPolicyEntry.ACLMatchType matchType, boolean isStatic)
Create a RAS Policy
|
void |
deleteRASPolicy(java.lang.String name, boolean cascading)
Deletes a RAS policy with the given name
|
java.util.List<RASPolicyEntry> |
getRASPolicies(RASPolicySearchQuery rasPolicySearchQuery)
Gets all RAS policies which satisfy the query
|
RASPolicyEntry |
getRASPolicy(java.lang.String name)
Gets RAS policy by its name
|
void |
modifyRASPolicy(RASPolicyEntry rasPolicyEntry)
Persists a revised in-memory RASPolicyEntry object.
|
resolveReference
RASPolicyEntry createRASPolicy(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<RASResourceEntry> target, java.util.List<java.lang.String> referredRules, java.util.Set<RASPolicyEntry.RASParameterValue> parameterValues, RASPolicyEntry.ACLMatchType matchType, boolean isStatic) throws InvalidArgumentException, PolicyObjectAlreadyExistsException, PolicyObjectNotFoundException, PolicyStoreException
name
- the name of RAS Policy, the parameter should not be null or empty string. A qualified name should start with a letter or underscore and consist of letter, digit and underscore.displayName
- the display name of RAS Policydescription
- the description of RAS Policytarget
- should be a target list only contains RASResourceEntry inforeferredRules
- a list of RAS policyRulesparameterValues
- a collection of ParameterValuesmatchType
- the ACL match typeisStatic
- flag specifying whether the RAS policy is for static realm constraintInvalidArgumentException
PolicyObjectAlreadyExistsException
PolicyObjectNotFoundException
PolicyStoreException
void deleteRASPolicy(java.lang.String name, boolean cascading) throws PolicyObjectNotFoundException, PolicyStoreException
name
- the name of the RAS policy to be removed, the parameter should not be null or empty string. A qualified name should start with a letter or underscore and consist of letter, digit and underscore.cascading
- deletion flag, if the flag is set to false and the RAS Policy is referred by a RAS PolicySet, throws out PolicyStoreOperationNotAllowedException. If the flag is set to true and the RAS Policy is referred by a RAS PolicySet, delete the RAS Policy as well as the reference in that RAS PolicySet. If the particular RAS PolicySet has only one RAS Policy reference, delete the RAS PolicySet too.InvalidArgumentException
- if an invalid value is passed in, throws out InvalidArgumentException.PolicyObjectNotFoundException
- if the RAS policy specified by name doesn't exist, throws out PolicyObjectNotFoundException.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.void modifyRASPolicy(RASPolicyEntry rasPolicyEntry) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
rasPolicyEntry
- a modified RAS policy objectInvalidArgumentException
- if null is passed in or the RAS policy object lacks any of name, RAS policy rule, target.PolicyObjectNotFoundException
- if the RAS policy doesn't exist in policy repository, or the RAS policy components used don't exist, including target and RAS policy rule.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.java.util.List<RASPolicyEntry> getRASPolicies(RASPolicySearchQuery rasPolicySearchQuery) throws PolicyStoreException
rasPolicySearchQuery
- the query object which contains query criteria. The value should not be null.InvalidArgumentException
- the exception is reserved for future use.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.RASPolicyEntry getRASPolicy(java.lang.String name) throws PolicyObjectNotFoundException, PolicyStoreException
name
- RAS policy name, the parameter should not be null or empty string. A qualified name should start with a letter or underscore and consist of letter, digit and underscore.InvalidArgumentException
- if an invalid value is passed in, throws out InvalidArgumentException.PolicyObjectNotFoundException
- if the specified policy doesn't exist.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.