Oracle Waveset 8.1.1 Deployment Guide

Defining Resource ObjectTypes

Resource Object types uniquely define a specific type of resource, and you define object types in the adapter’s prototypeXML string.

The XML <ObjectTypes> element is a container within the adapter’s prototypeXML string that contains one or more object type definitions to be managed on that resource. This <ObjectTypes> element fully describes the resource-specific object to Waveset, including the following:

The following table describes the supported attributes of the <ObjectType> element.

Table 10–27 Supported <ObjectType> Element Attributes

Attribute 

Description 

name

Defines the name by which this object type is displayed and referred to within Waveset (required). 

icon

Defines the name of the .gif file to display in the Waveset interface for objects of this type. You must install this .gif file in idm/applet/images for use by Waveset.

container

Defines whether this type of resource object can contain other resource objects of the same type or of a different type. 

  • If true, this resource object type can contain other resource objects.

  • If false, this resource object type cannot contain other resource objects.

The following example shows ObjectType definitions:


Example 10–9 Example ObjectType Definitions


static final String prototypeXml =
"<Resource name=’Skeleton’ class= ’com.waveset.adapter.sample.SkeletonStandardResourceAdapter’
typeString=’Skeleton of a resource adapter’ typeDisplayString=’"+Messages.RESTYPE_SKELETON+"’>\n"+
  " <ObjectTypes>\n"+ 
  " <ObjectType name=’Group’ icon=’group’>\n"+ 
… other content defined below will go here … 
  " </ObjectType>\n"+ 
  " <ObjectType name=’Role’ icon=’ldap_role’>\n"+ 
… other content defined below will go here … 
  " </ObjectType>\n"+ 
  " <ObjectType name=’Organization’ icon=’folder_with_org’ container=’true’>\n"+ 
… other content defined below will go here … 
  "</ObjectType>\n"+ 
" </ObjectTypes>\n”+