|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-03 |
|||||||||
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 |
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 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 PolicyObjectNotFoundException, PolicyStoreException
name
- Name of the resource type to be fetched. Returns null if name is null.PolicyObjectNotFoundException
- if object does not existPolicyStoreException
- in case of any errors in interaction with backend data store.EntryReference createResourceType(ResourceTypeEntry entry) throws java.lang.IllegalArgumentException, PolicyObjectAlreadyExistsException, PolicyObjectNotFoundException, PolicyStoreException
entry
- Resouce type to be created. Cannot be null.java.lang.IllegalArgumentException
- 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, super type or resource matcher class of the resoure type.PolicyStoreException
- in case of any errors in interaction with backend data store.void 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
- if the resource type does not exist
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |