|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-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 | |
---|---|
ResourceTypeEntry |
createResourceType(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<java.lang.String> action, java.util.List<AttributeEntry<? extends DataType>> attrs, java.lang.String delimiter) Creates a resource type |
ResourceTypeEntry |
createResourceType(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<java.lang.String> action, java.util.List<AttributeEntry<? extends DataType>> attrs, java.lang.String delimiter, java.lang.String resourceMatcherClass) Creates a resource type |
void |
deleteResourceType(java.lang.String name, 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(ResourceTypeEntry item) Modifies the resource type from the given resourcetype entry. |
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
void deleteResourceType(java.lang.String name, boolean cascadeDelete) throws PolicyObjectNotFoundException, PolicyStoreOperationNotAllowedException, PolicyStoreException
name
- resource type name, 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.cascadeDelete
- 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 an invalide value is passed in, throws out InvalidArgumentException.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 specified by name doesn't existvoid modifyResourceType(ResourceTypeEntry item) throws InvalidArgumentException, PolicyStoreException
item
- the target resource typeInvalidArgumentException
- if null is passed in, throws out InvalidArgumentException.PolicyObjectNotFoundException
- if the resource type doesn't exist, throws out PolicyObjectNotFoundException.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.ResourceTypeEntry createResourceType(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<java.lang.String> action, java.util.List<AttributeEntry<? extends DataType>> attrs, java.lang.String delimiter) throws InvalidArgumentException, PolicyStoreException
name
- the resource type name, 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.displayName
- A resource type name used to show more information, it is optional and can be set to null.description
- A text message to describe the resource type, it is optional and can be set to null.action
- A list of all valid actions. Delimiter should not be a part of any action string. Every individual action string should represent a single action.attrs
- A list of all valid resource attributes. If there are duplicate ones, they will be handled as single one.delimiter
- the delimiter for actionsInvalidArgumentException
- if an invalid value is passed in, throws out InvalidArgumentException.PolicyObjectAlreadyExistsException
- if the resource type already exists, throws out PolicyObjectAlreadyExistsException.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.ResourceTypeEntry createResourceType(java.lang.String name, java.lang.String displayName, java.lang.String description, java.util.List<java.lang.String> action, java.util.List<AttributeEntry<? extends DataType>> attrs, java.lang.String delimiter, java.lang.String resourceMatcherClass) throws InvalidArgumentException, PolicyStoreException
name
- the resource type name, 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.displayName
- A resource type name used to show more information, it is optional and can be set to null.description
- A text message to describe the resource type, it is optional and can be set to null.action
- A list of all valid actions. Delimiter should not be a part of any action string. Every individual action string should represent a single action.attrs
- A list of all valid resource attributes. If there are duplicate ones, they will be handled as single one.delimiter
- the delimiter for actionsresourceMatcherClass
- resource permission matcher class used for target and action matchingInvalidArgumentException
- if an invalid value is passed in, throws out InvalidArgumentException.PolicyObjectAlreadyExistsException
- if the resource type already exists, throws out PolicyObjectAlreadyExistsException.PolicyStoreException
- if any internal status error, throws out PolicyStoreException.
|
Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server 11g Release 2 (11.1.2) E27155-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |