com.bea.ales.management
Class MetaObjectFactory

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

public class MetaObjectFactory
extends java.lang.Object

The MetaObjectFactory can create MetObject root instances. MetaObjects are used to support generic attributable hierarchical objects in ALES. MetaObjectFactory instances can be created through RBAC_Context.

See Also:
MetaObject

Method Summary
 MetaObject createRootObject(java.lang.String rootName, java.lang.String type)
          Return the root object for the type specified.
 MetaObject createRootObject(java.lang.String rootName, java.lang.String type, int inheritanceModel)
          Return the root object for the type specified.
 MetaObject getRootObject(java.lang.String type)
          Return the root object for the type specified.
 void removeRootObject(MetaObject root)
          Remove the root MetaObject and all of its descendants.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRootObject

public MetaObject createRootObject(java.lang.String rootName,
                                   java.lang.String type,
                                   int inheritanceModel)
                            throws ManagementException
Return the root object for the type specified. This method will create a new MetaObject root instance and return it to the caller. All objects of the type specified will conform to the attribute inheritance model specified by the InheritanceModel.

Parameters:
name - the name of the root object to create
type - the type of root object to create
inheritanceModel - the type of inheritance model which the whole tree under the root object will follow.
Returns:
the created root object
Throws:
ManagementException - if the operation fails.
See Also:
InheritanceModel

createRootObject

public MetaObject createRootObject(java.lang.String rootName,
                                   java.lang.String type)
                            throws ManagementException
Return the root object for the type specified. This method will create a new MetaObject root instance and return it to the caller. All objects of the type specified will conform to the attribute inheritance model InheritanceModel.TOP_TO_BOTTOM.

Parameters:
name - the name of the root object to create
type - the type of root object to create
Returns:
the created root object
Throws:
ManagementException - if the operation fails.

getRootObject

public MetaObject getRootObject(java.lang.String type)
                         throws ManagementException
Return the root object for the type specified.

Parameters:
type - the type of the root node to retrieve.
Returns:
the root object if the type already exists, or null.
Throws:
ManagementException - if the operation fails.

removeRootObject

public void removeRootObject(MetaObject root)
                      throws ManagementException
Remove the root MetaObject and all of its descendants.

Parameters:
root - the root MetaObject instance to remove.
Throws:
ManagementException - if the operation fails.


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