Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


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

All Superinterfaces:
EntityManager

public interface ExtensionManager
extends EntityManager

This class manages OES policy extension objects, including:


Method Summary
<T extends DataType>
AttributeEntry<T>
createAttribute(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.Class<T> type, AttributeEntry.AttributeCategory category, boolean isSingleValue)
          Creates an attribute
 FunctionEntry createFunction(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className, java.lang.Class<? extends DataType> returnType, java.util.List<java.lang.Class<? extends DataType>> inputParameters)
          Create a function.
 FunctionEntry createFunction(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className, java.lang.Class<? extends DataType> returnType, java.util.List<java.lang.Class<? extends DataType>> inputParameters, VarArgsInfo varArgs)
          Create a function.
 FunctionEntry createFunction(java.lang.String name, java.lang.String displayName, java.lang.String description, java.lang.String className, java.lang.Class<? extends DataType> returnType, java.util.List<java.lang.Class<? extends DataType>> inputParameters, VarArgsInfo varArgs, java.util.List<FunctionEntry.ARG_TYPE> paramTypess, FunctionEntry.ARG_TYPE returnValueType)
          Create a function.
 void deleteAttribute(java.lang.String name, boolean cascade)
          Delete an attribute.
 void deleteFunction(java.lang.String name, boolean cascade)
          Remove a function.
 java.lang.String[] getAllDeprecatedBuiltInFunctions()
          Returns supported built-in functions that are deprecated in corresponding policystore version
 AttributeEntry<? extends DataType> getAttribute(java.lang.String attrName)
          Get the attribute entry from the policy given the attribute name
 java.util.List<AttributeEntry<? extends DataType>> getAttributes(AttributeSearchQuery query)
          Returns a list of attributes matches specified query condition
 FunctionEntry getFunction(java.lang.String funcName)
          Get the function entry from the policy given the function name
 java.util.List<FunctionEntry> getFunctions(FunctionSearchQuery query)
          Returns a list of functions currently supported.
 void modifyAttribute(AttributeEntry<? extends DataType> attrEntry)
          Modify the attribute information given the modified attribute object.
 void modifyFunction(FunctionEntry funcEntry)
          Modify the function information given the modified function object.

 

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

 

Method Detail

createAttribute

<T extends DataType> AttributeEntry<T> createAttribute(java.lang.String name,
                                                       java.lang.String displayName,
                                                       java.lang.String description,
                                                       java.lang.Class<T> type,
                                                       AttributeEntry.AttributeCategory category,
                                                       boolean isSingleValue)
                                                   throws InvalidArgumentException,
                                                          PolicyObjectAlreadyExistsException,
                                                          PolicyStoreException
Creates an attribute
Parameters:
name - attribute name
displayName - attribute display name
description - attribute description
type - attribute type
category - attribute category
isSingleValue - indicate the attribute allow single/multiple value
Returns:
an attribute entry object
Throws:
InvalidArgumentException - if one of the parameter name, type and category is null or invalid
PolicyObjectAlreadyExistsException - if the attribute already exists
PolicyStoreException - if failed to create the attribute

getAttribute

AttributeEntry<? extends DataType> getAttribute(java.lang.String attrName)
                                                throws InvalidArgumentException,
                                                       PolicyObjectNotFoundException,
                                                       PolicyStoreException
Get the attribute entry from the policy given the attribute name
Parameters:
attrName - attribute name
Returns:
an attribute entry object
Throws:
InvalidArgumentException - if the attribute name is invalid
PolicyObjectNotFoundException - if the specified attribute does not exist
PolicyStoreException - if failed to get the attribute

getAttributes

java.util.List<AttributeEntry<? extends DataType>> getAttributes(AttributeSearchQuery query)
                                                                 throws PolicyStoreException
Returns a list of attributes matches specified query condition
Parameters:
query - the query criteria
Returns:
a list of attributes
Throws:
PolicyStoreException - if failed to get attributes

modifyAttribute

void modifyAttribute(AttributeEntry<? extends DataType> attrEntry)
                     throws InvalidArgumentException,
                            PolicyStoreException
Modify the attribute information given the modified attribute object.
Parameters:
attrEntry - attribute entry object, the value of the attribute entry is ignored and set to null at modification
Throws:
InvalidArgumentException - if the parameter attrEntry is null
PolicyStoreException - if failed to modify the attribute entry

deleteAttribute

void deleteAttribute(java.lang.String name,
                     boolean cascade)
                     throws InvalidArgumentException,
                            PolicyStoreOperationNotAllowedException,
                            PolicyStoreException
Delete an attribute.
Parameters:
name - attribute name
cascade - only cascade = false supported. If cascade = true, PolicyStoreOperationNotAllowedException will be thrown.
Throws:
InvalidArgumentException - if the attribute name is invalid
PolicyStoreOperationNotAllowedException - if cascade = true, then PolicyStoreOperationNotAllowedException will be thrown because cascade delete is not supported. If cascade = false and the attribute is used by policy or other entities, PolicyStoreOperationNotAllowedException will be thrown because the attribute is being used.
PolicyStoreException - if failed to delete the attribute

getFunctions

java.util.List<FunctionEntry> getFunctions(FunctionSearchQuery query)
                                           throws InvalidArgumentException,
                                                  PolicyStoreException
Returns a list of functions currently supported.
Parameters:
query - the query criteria
Returns:
a list of functions currently supported
Throws:
InvalidArgumentException - if the parameter is invalid
PolicyStoreException - if failed to get functions

createFunction

FunctionEntry createFunction(java.lang.String name,
                             java.lang.String displayName,
                             java.lang.String description,
                             java.lang.String className,
                             java.lang.Class<? extends DataType> returnType,
                             java.util.List<java.lang.Class<? extends DataType>> inputParameters)
                             throws InvalidArgumentException,
                                    PolicyObjectAlreadyExistsException,
                                    PolicyStoreException
Create a function.
Parameters:
name - function name
displayName - function display name
description - function description
className - function class name
returnType - function return type
inputParameters - function input parameters
Returns:
an function entry object
Throws:
InvalidArgumentException - if the parameter name is invalid or className is null or returnType is null
PolicyObjectAlreadyExistsException - if the function already exists
PolicyStoreException - if failed to create function

createFunction

FunctionEntry createFunction(java.lang.String name,
                             java.lang.String displayName,
                             java.lang.String description,
                             java.lang.String className,
                             java.lang.Class<? extends DataType> returnType,
                             java.util.List<java.lang.Class<? extends DataType>> inputParameters,
                             VarArgsInfo varArgs)
                             throws InvalidArgumentException,
                                    PolicyObjectAlreadyExistsException,
                                    PolicyStoreException
Create a function.
Parameters:
name - function name
displayName - function display name
description - function description
className - function class name
returnType - function return type
inputParameters - function input parameters
varArgs - variable input parameters to a function if any
Returns:
an function entry object
Throws:
InvalidArgumentException - if the parameter name is invalid or className is null or returnType is null
PolicyObjectAlreadyExistsException - if the function already exists
PolicyStoreException - if failed to create function

createFunction

FunctionEntry createFunction(java.lang.String name,
                             java.lang.String displayName,
                             java.lang.String description,
                             java.lang.String className,
                             java.lang.Class<? extends DataType> returnType,
                             java.util.List<java.lang.Class<? extends DataType>> inputParameters,
                             VarArgsInfo varArgs,
                             java.util.List<FunctionEntry.ARG_TYPE> paramTypess,
                             FunctionEntry.ARG_TYPE returnValueType)
                             throws InvalidArgumentException,
                                    PolicyObjectAlreadyExistsException,
                                    PolicyStoreException
Create a function.
Parameters:
name - function name
displayName - function display name
description - function description
className - function class name
returnType - function return type
inputParameters - function input parameters
varArgs - variable input parameters to a function if any
paramTypes - types of input parameters to a function (single object, bag of objects/ set of objects). If null, it implies all input parameters to function are single objects.
returnValueType - type of output of function (single object/ bag/ set) If null, it implies function returns a single object of the given data type.
Returns:
an function entry object
Throws:
InvalidArgumentException - if the parameter name is invalid or className is null or returnType is null
PolicyObjectAlreadyExistsException - if the function already exists
PolicyStoreException - if failed to create function

deleteFunction

void deleteFunction(java.lang.String name,
                    boolean cascade)
                    throws InvalidArgumentException,
                           PolicyStoreOperationNotAllowedException,
                           PolicyStoreException
Remove a function.
Parameters:
name - function name
cascade - if set to false, the function is deleted provide it is no referenced in any policy.If cascade set to true, PolicyStoreOperationNotAllowedException will be thrown.
Throws:
InvalidArgumentException - if the function name is invalid
PolicyStoreOperationNotAllowedException - if the function is referenced elsewhere and the cascade parameter is false, or the cascade parameter is true.
PolicyStoreException - if failed to delete the function

getFunction

FunctionEntry getFunction(java.lang.String funcName)
                          throws InvalidArgumentException,
                                 PolicyObjectNotFoundException,
                                 PolicyStoreException
Get the function entry from the policy given the function name
Parameters:
funcName - function name
Returns:
an function entry object
Throws:
InvalidArgumentException - if the function name is invalid
PolicyObjectNotFoundException - if the specified function does not exist
PolicyStoreException - if failed to get the function

modifyFunction

void modifyFunction(FunctionEntry funcEntry)
                    throws InvalidArgumentException,
                           PolicyStoreException
Modify the function information given the modified function object.
Parameters:
funcEntry - function entry object
Throws:
InvalidArgumentException - if the parameter funcEntry is null
PolicyStoreException - if failed to modify function

getAllDeprecatedBuiltInFunctions

java.lang.String[] getAllDeprecatedBuiltInFunctions()
                                                    throws PolicyStoreException
Returns supported built-in functions that are deprecated in corresponding policystore version
Throws:
PolicyStoreException

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.