|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceTypeManager
An entity manager that creates, reads, updates and modifies a ResourceType
Method Summary | |
---|---|
EntryReference |
createResourceType(ResourceTypeEntry entry) Validates and creates the given resource type in the backend data store. |
void |
deleteResourceType(EntryReference rtRef, boolean cascadeDelete) Deletes the resource type. |
ResourceTypeEntry |
getResourceType(java.lang.String name) Get the resource type entry given name of the resource type. |
java.util.List<ResourceTypeEntry> |
getResourceTypes(ResourceTypeSearchQuery query) Gets all the resource types satisfying the query in the current scope (system/ application). |
void |
modifyResourceType(EntryReference rtRef, javax.naming.directory.ModificationItem[] modItems) Modifies the resource type referred by rtRef. |
Methods inherited from interface oracle.security.jps.service.policystore.entitymanager.EntityManager |
---|
resolveReference |
Method Detail |
---|
java.util.List<ResourceTypeEntry> getResourceTypes(ResourceTypeSearchQuery query) throws PolicyStoreException
query
- Query to be applied. Cannot be null.PolicyStoreException
- in case of any errors in interaction with backend data store.InvalidArgumentException
- if query is null.ResourceTypeEntry getResourceType(java.lang.String name) throws InvalidArgumentException, PolicyObjectNotFoundException, PolicyStoreException
name
- Name of the resource type to be fetched. the name should not be null or empty string. A qualified name should start with a letter or underscore and consist of letter, digit and underscore.PolicyObjectNotFoundException
- if resource type with the name does not existPolicyStoreException
- in case of any errors in interaction with backend data store.InvalidArgumentException
EntryReference createResourceType(ResourceTypeEntry entry) throws InvalidArgumentException, PolicyObjectAlreadyExistsException, PolicyObjectNotFoundException, PolicyStoreException
entry
- Resouce type to be created. Cannot be null.InvalidArgumentException
- if entry is null.PolicyObjectAlreadyExistsException
- if a resource type with the same name already exists.PolicyObjectNotFoundException
- if a super type is given abd it doesn't exist in the data store.PolicyStoreException
- in case of any errors in interaction with backend data store.void modifyResourceType(EntryReference rtRef, javax.naming.directory.ModificationItem[] modItems) throws InvalidArgumentException, PolicyStoreOperationNotAllowedException, PolicyStoreException
rtRef
- Reference to the resource type that is to be modified. Cannot be null.modItems
- Modifications to be made to the resource type. Can be null.InvalidArgumentException
- if 1. rtRef is null OR 2. points to invalid data OR 3. if an invalid property name is given for any modItem OR 4. if more than one value is given for description/ display name OR 5. modop is not REMOVE and no value is given for description/ display name OR 6. description/ display name is not of type String OR 7. values passed for allowed resource or actions attributtes are not of type JpsAttribute OR 8. values passed for allowed actions IDs are not of type String.PolicyStoreOperationNotAllowedException
- if trying to change name, actions, super type or resource matcher class of the resoure type.PolicyStoreException
- in case of any errors in interaction with backend data store.PolicyObjectNotFoundException
- if the resource type doesn't existvoid deleteResourceType(EntryReference rtRef, boolean cascadeDelete) throws PolicyObjectNotFoundException, PolicyStoreOperationNotAllowedException, PolicyStoreException
rtRef
- Reference to resource typecascadeDelete
- indicates whether all associated data should be cleaned up or not. Think twice before setting it to true. Suddenly, a lot of your real life resources will have no access contorl, if used carelessly. CURRENTLY NOT SUPPORTED.InvalidArgumentException
- if rtRef is null OR points to invalid data.PolicyStoreOperationNotAllowedException
- if cascadeDelete is set to true or see above description.PolicyStoreException
- in case of any errors in interaction with backend data store.PolicyObjectNotFoundException
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |