public interface RASAttributeCollectionManager extends EntityManager
Modifier and Type | Method and Description |
---|---|
RASAttributeCollectionEntry |
createRASAttributeCollection(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String handlerSchemaName, java.lang.String handlerPackageName, java.lang.String handlerFunctionName, java.util.List<RASAttributeEntry> attrList, java.util.List<java.lang.String> policyRuleRefs)
Creates a new RAS attribute collection with given parameters.
|
void |
deleteRASAttributeCollection(java.lang.String name)
Deletes the RAS attribute collection with the given name.
|
RASAttributeCollectionEntry |
getRASAttributeCollection(java.lang.String name)
Get the RAS attribute collection entry with the given name.
|
java.util.List<RASAttributeCollectionEntry> |
getRASAttributeCollections(RASAttributeCollectionSearchQuery query)
Gets all the RAS attribute collections satisfying the query in the current scope (system/ application).
|
void |
modifyRASAttributeCollection(RASAttributeCollectionEntry item)
Modifies the RAS attribute collection from the given RAS attributeCollection entry.
|
resolveReference
RASAttributeCollectionEntry createRASAttributeCollection(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String handlerSchemaName, java.lang.String handlerPackageName, java.lang.String handlerFunctionName, java.util.List<RASAttributeEntry> attrList, java.util.List<java.lang.String> policyRuleRefs) throws InvalidArgumentException, PolicyStoreException, PolicyObjectAlreadyExistsException
The attributes in the collection must be of category DYNAMIC. If the definition of an attribute does not exist with ExtensionManager, one is created.
name
- the RAS attribute collection name, the name should not be null or empty string. Name must adhere to underlying database naming specifications.displayName
- a RAS attribute collection name used to show more information, it is optional and can be set to null.description
- a text message to describe the RAS attribute collection, it is optional and can be set to null.handlerSchemaName
- schema name for the handler function, it is optional and can be set to null. If non-null, handlerPackageName
and handlerFunctionName
must also be non-null.handlerPackageName
- package name for the handler function, it is optional and can be set to null. If non-null, handlerSchemaName
and handlerFunctionName
must also be non-null.handlerFunctionName
- name of the handler function, it is optional and can be set to null. If non-null, handlerSchemaName
and handlerPackageName
must also be non-null.attrList
- list of attributes to add in the attribute collection, it is optional and can be set to null. All attributes in the list must be of category DYNAMIC
. If the attribute definition does not exist with ExtensionManager, one is created.policyRuleRefs
- list of the name of the policy rules protecting operations on this RAS AttributeCollection. If null, a default acl is assigned by the underlying database. Can only be set at creation time.InvalidArgumentException
- if an invalid value is passed in.PolicyStoreException
- if any internal status error.PolicyObjectAlreadyExistsException
- if the attribute collection already exists and if attribute in collection has different definition than one in the policy store.java.util.List<RASAttributeCollectionEntry> getRASAttributeCollections(RASAttributeCollectionSearchQuery query) throws PolicyStoreException
query
- Query to be applied. Cannot be null.PolicyStoreException
- in case of any errors in interaction with backend data store.RASAttributeCollectionEntry getRASAttributeCollection(java.lang.String name) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
name
- name of the RAS attribute collection to be fetched. the name should not be null or empty string. Name must adhere to underlying database naming specifications.InvalidArgumentException
- if name
is null
.PolicyObjectNotFoundException
- if RAS attribute collection with the given name does not exist.PolicyStoreException
- in case of any errors in interaction with backend data store.void deleteRASAttributeCollection(java.lang.String name) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
name
- RAS attribute collection name, the name should not be null or empty string. Name must adhere to underlying database naming specifications.InvalidArgumentException
- if name
is null
.PolicyStoreException
- in case of any errors in interaction with backend data store.PolicyObjectNotFoundException
- if the RAS attribute collection specified by name doesn't existvoid modifyRASAttributeCollection(RASAttributeCollectionEntry item) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyObjectAlreadyExistsException, PolicyStoreException
The attributes in the collection must be of category DYNAMIC. If the definition of an attribute does not exist with ExtensionManager, one is created.
item
- the target RAS attribute collectionInvalidArgumentException
- if null is passed in or the passed AttributeCollectionEntry is invalid.PolicyObjectNotFoundException
- if the RAS attribute collection doesn't exist.PolicyObjectAlreadyExistsException
- if attribute added has definition different than one in the policy storePolicyStoreException
- if any internal status error.