public interface ResourceManager extends ResourceFinder, EntityManager
| Modifier and Type | Method and Description |
|---|---|
EntryReference |
createResource(ResourceEntry resrc)
Create a Resource
|
void |
deleteResource(EntryReference res, boolean cascadeDelete)
Deletes a Resource
|
void |
modifyResource(EntryReference res, javax.naming.directory.ModificationItem[] modItems)
Modifies a Resource
|
getResource, getResources, getSearchableAttributes, initializeresolveReferenceEntryReference createResource(ResourceEntry resrc) throws PolicyStoreException, InvalidArgumentException
resrc - a resourcePolicyObjectAlreadyExistsException - if the resource exists alreadyPolicyStoreException - if there was an error while creating the resource.InvalidArgumentException - if the user input (like resource name) does not follow nameing conventionvoid modifyResource(EntryReference res, javax.naming.directory.ModificationItem[] modItems) throws PolicyStoreException, InvalidArgumentException
res - a resource referencemodItems - an array of modification items.PolicyStoreException - if there was an error while modifying the resource.InvalidArgumentExceptionvoid deleteResource(EntryReference res, boolean cascadeDelete) throws PolicyStoreException, PolicyStoreOperationNotAllowedException, PolicyObjectNotFoundException, InvalidArgumentException
res - a resource referencecascadeDelete - currently a value of true is not supported. If set to true, PolicyStoreOperationNotAllowedException is thrown.PolicyStoreException - if there was an error while deleting thePolicyStoreOperationNotAllowedException - if cascadeDelete is truePolicyObjectNotFoundExceptionInvalidArgumentException