com.bea.ales.management
Class ExtensionsManager

java.lang.Object
  |
  +--com.bea.ales.management.ExtensionsManager

public class ExtensionsManager
extends java.lang.Object

This class manages dynamic attribute and evaluation function. Instances of this class can be get from class RBAC_Context.


Method Summary
 AttributeElement createDynamicAttribute(java.lang.String name, AttributeValueType type)
          Create a new dynamic attribute.
 EvaluationFunction createEvaluationFunction(java.lang.String name)
          Create a new evaluation function.
 AttributeElement getDynamicAttribute(java.lang.String attributeName)
          Get a dynamic attribute with the specified name.
 AttributeQueryResult getDynamicAttributesByName(java.lang.String filterPattern)
          Find all dynamic attributes whose names match the specified filter.
 AttributeQueryResult getDynamicAttributesByType(AttributeValueType type)
          Find all dynamic attributes which have the specified type.
 EvaluationFunction getEvaluationFunction(java.lang.String evalFuncName)
          Find an evaluation function with the specified name.
 EvaluationFunctionQueryResult getEvaluationFunctionsByName(java.lang.String filterPattern)
          Find all evaluation functions whose names match the filter.
 void removeDynamicAttribute(java.lang.String name)
          Delete an dynamic attribute with the specified name.
 void removeEvaluationFunction(java.lang.String name)
          Delete an evaluation function with the specified name.
 void renameDynamicAttribute(java.lang.String oldName, java.lang.String newName)
          Rename an dynamic attribute.
 void renameEvaluationFunction(java.lang.String oldName, java.lang.String newName)
          Rename an evaluation function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDynamicAttribute

public AttributeElement createDynamicAttribute(java.lang.String name,
                                               AttributeValueType type)
                                        throws java.lang.IllegalArgumentException,
                                               ManagementException
Create a new dynamic attribute.

Parameters:
name - name of the attribute.
type - type of the attribute.
Returns:
the dynamic attribute instance created.
Throws:
java.lang.IllegalArgumentException - if the name or type is invalid.
ManagementException - if the operation fails.

createEvaluationFunction

public EvaluationFunction createEvaluationFunction(java.lang.String name)
                                            throws java.lang.IllegalArgumentException,
                                                   ManagementException
Create a new evaluation function.

Parameters:
name - name of the evaluation function.
Returns:
the evaluation function instance created.
Throws:
java.lang.IllegalArgumentException - if the name is invalid.
ManagementException - if the operation fails.

getDynamicAttribute

public AttributeElement getDynamicAttribute(java.lang.String attributeName)
                                     throws java.lang.IllegalArgumentException,
                                            ManagementException
Get a dynamic attribute with the specified name.

Parameters:
attributeName - name of the dyanmic attribute.
Returns:
the dynamic attribute which has the specified name; or null if no such dynamic attribute.
Throws:
java.lang.IllegalArgumentException - if name is invalid.
ManagementException - if the operation fails.

getDynamicAttributesByName

public AttributeQueryResult getDynamicAttributesByName(java.lang.String filterPattern)
                                                throws java.lang.IllegalArgumentException,
                                                       ManagementException
Find all dynamic attributes whose names match the specified filter.

Parameters:
filterPattern - name pattern to match.
Returns:
an AttributeQueryResult object which contains the result.
Throws:
java.lang.IllegalArgumentException - if filterPattern is null.
ManagementException - if the operation fails.

getDynamicAttributesByType

public AttributeQueryResult getDynamicAttributesByType(AttributeValueType type)
                                                throws ManagementException
Find all dynamic attributes which have the specified type.

Parameters:
type - the attribute type. null value means for all types.
Returns:
an AttributeQueryResult object which contains the result.
Throws:
ManagementException - if the operation fails.

getEvaluationFunction

public EvaluationFunction getEvaluationFunction(java.lang.String evalFuncName)
                                         throws java.lang.IllegalArgumentException,
                                                ManagementException
Find an evaluation function with the specified name.

Parameters:
evalFuncName - evaluation function name.
Returns:
evaluation function which has the specified name; null if no such function.
Throws:
java.lang.IllegalArgumentException - if evalFuncName is invalid.
ManagementException - if the operation fails.

getEvaluationFunctionsByName

public EvaluationFunctionQueryResult getEvaluationFunctionsByName(java.lang.String filterPattern)
                                                           throws java.lang.IllegalArgumentException,
                                                                  ManagementException
Find all evaluation functions whose names match the filter.

Parameters:
filterPattern - the filter.
Returns:
an EvaluationFunctionQueryResult which contains the result.
Throws:
java.lang.IllegalArgumentException - if filterPattern is null.
ManagementException - if the operation fails.

removeDynamicAttribute

public void removeDynamicAttribute(java.lang.String name)
                            throws java.lang.IllegalArgumentException,
                                   ManagementException
Delete an dynamic attribute with the specified name.

Parameters:
name - name of the dynamic attribute to be deleted.
Throws:
java.lang.IllegalArgumentException - if name is invalid.
ManagementException - if the operation fails.

removeEvaluationFunction

public void removeEvaluationFunction(java.lang.String name)
                              throws java.lang.IllegalArgumentException,
                                     ManagementException
Delete an evaluation function with the specified name.

Parameters:
name - name of the evaluation function to be deleted.
Throws:
java.lang.IllegalArgumentException - if name is invalid.
ManagementException - if the operation fails.

renameEvaluationFunction

public void renameEvaluationFunction(java.lang.String oldName,
                                     java.lang.String newName)
                              throws ManagementException
Rename an evaluation function.

Parameters:
oldName - current name the evaluation function.
newName - new name the evaluation function.
Throws:
ManagementException - if the operation fails.

renameDynamicAttribute

public void renameDynamicAttribute(java.lang.String oldName,
                                   java.lang.String newName)
                            throws ManagementException
Rename an dynamic attribute.

Parameters:
oldName - current name the dynamic attribute.
newName - new name the dynamic attribute.
Throws:
ManagementException - if the operation fails.


Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.