public interface RASPolicySetManager extends EntityManager
2. Modify RASPolicySet
3. Delete RASPolicySet
4. Query RASPolicySets
Modifier and Type | Method and Description |
---|---|
RASPolicySetEntry |
createRASPolicySet(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<RASPolicyEntry> policies)
Creates RAS policy set
|
void |
deleteRASPolicySet(java.lang.String name)
Delete RAS policy set.
|
RASPolicySetEntry |
getRASPolicySet(java.lang.String name)
Gets RAS policy set by its name
|
java.util.List<RASPolicySetEntry> |
getRASPolicySets(RASPolicySetSearchQuery rasPolicySetSearchQuery)
Queries RAS policy set with the criteria
|
void |
modifyRASPolicySet(RASPolicySetEntry rasPolicySetEntry)
Persists a revised in-memory RASPolicySetEntry object.
|
resolveReference
RASPolicySetEntry createRASPolicySet(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<RASPolicyEntry> policies) throws InvalidArgumentException, PolicyObjectAlreadyExistsException, PolicyObjectNotFoundException, PolicyStoreException
name
- RAS policy set 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. Name for a data security policy set must additionally adhere to underlying database naming specifications.displayName
- RAS policy set display name, can be either a String value or null.description
- RAS policy set description, can be either a String value or null.policies
- a list of RAS policies as members of this RAS policy set, could not be null or emptyInvalidArgumentException
- if the values passed in are invalid, throws out InvalidArgumentException, e.g. passing null value to one of name, rasPolicyTypeName, policies triggers the exception.PolicyObjectAlreadyExistsException
- if the same name policy set exists, throws out PolicyObjectAlreadyExistsException.PolicyObjectNotFoundException
- if the RAS policy set components used don't exist.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.void deleteRASPolicySet(java.lang.String name) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
name
- the name of RAS policy set to deleteInvalidArgumentException
- if null/empty name passed in, throws out InvalidArgumentException.PolicyObjectNotFoundException
- if the RAS policy set specified by name doesn't exist, throws out PolicyObjectNotFoundException.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.void modifyRASPolicySet(RASPolicySetEntry rasPolicySetEntry) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
rasPolicySetEntry
- a modified RAS policy set objectInvalidArgumentException
- if null is passed in or the policy set object lacks any of name, rasResourceTypeName and policies.PolicyObjectNotFoundException
- if the policy set doesn't exist in policy repository, or the RAS policy set components used don't exist.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.java.util.List<RASPolicySetEntry> getRASPolicySets(RASPolicySetSearchQuery rasPolicySetSearchQuery) throws InvalidArgumentException, PolicyStoreException
rasPolicySetSearchQuery
-InvalidArgumentException
- if the query is nullPolicyStoreException
- if any internal status error, throws out PolicyStoreException.RASPolicySetEntry getRASPolicySet(java.lang.String name) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
name
-InvalidArgumentException
- if an invalid name is passed in, throws out InvalidArgumentException.PolicyObjectNotFoundException
- if the specified RAS policy set doesn't exist.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.