Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


oracle.security.jps.service.policystore.entitymanager
Interface ResourceManager

All Superinterfaces:
EntityManager, ResourceFinder

public interface ResourceManager
extends ResourceFinder, EntityManager

An Entity Manager to create, read, update and delete a Resource (instance).


Method Summary
 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

 

Methods inherited from interface oracle.security.jps.service.policystore.entitymanager.ResourceFinder
getResource, getResources, getSearchableAttributes, initialize

 

Methods inherited from interface oracle.security.jps.service.policystore.entitymanager.EntityManager
resolveReference

 

Method Detail

createResource

EntryReference createResource(ResourceEntry resrc)
                              throws PolicyObjectAlreadyExistsException,
                                     PolicyStoreException
Create a Resource
Parameters:
resrc - a resource
Returns:
an EntryReference
Throws:
PolicyObjectAlreadyExistsException - if the resource exists already
PolicyStoreException - if there was an error while creating the resource.
InvalidArgumentException - if the user input (like resource name) do not follow naming convention.

modifyResource

void modifyResource(EntryReference res,
                    javax.naming.directory.ModificationItem[] modItems)
                    throws PolicyStoreException
Modifies a Resource
Parameters:
res - a resource reference
modItems - an array of modification items.
Throws:
PolicyStoreException - if there was an error while modifying the resource.

deleteResource

void deleteResource(EntryReference res,
                    boolean cascadeDelete)
                    throws PolicyStoreException,
                           PolicyStoreOperationNotAllowedException
Deletes a Resource
Parameters:
res - a resource reference
cascadeDelete - currently a value of true is not supported. If set to true, PolicyStoreOperationNotAllowedException is thown.
Throws:
PolicyStoreException - if there was an error while deleting the
PolicyStoreOperationNotAllowedException - if cascadeDelete is true

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-03


Copyright © 2010, Oracle. All rights reserved.