IBM Enterprise Records, Version 5.1.+            

Creating a record category

A RecordCategory object represents a container object that can contain record categories and record folders. A RecordCategory object is created under a classification scheme to extend the file plan hierarchy by adding levels to the classification scheme and by defining a set of records within the file plan. This object can contain a record category or a record folder as its first-level child object. However, you cannot create a record folder and a record category at the same level.

To create a RecordCategory object, you use the RMRecordCategoryContainer interface. This interface defines the behavior of any RMFolder instance that can contain a record category in the file plan hierarchy. An instance of RMRecordCategoryContainer can either be a classification scheme or a record category, which does not contain a record folder. To create a RecordCategory object, call the addRecordCategory method on an RMRecordCategoryContainer object. You should specify a unique name for the RecordCategory object and pass in the properties and permissions collection. The following code shows the creation of a RecordCategory object using the addRecordCategory method.
//Creates a RecordCategory object 
public void createRecordCategory( String asName, Properties aoProps, 
   Permissions aoACLs, ClassificationScheme aoParentCS)

{
   RecordCategory loRC = aoParentCS.addRecordCategory(asName, aoProps, aoACLs); 

} 
 

Retrieving RecordCategory objects

You can retrieve RecordCategory objects in the following ways:



Feedback

Last updated: August 2011


© Copyright IBM Corporation 2011.
This information center is powered by Eclipse technology. (http://www.eclipse.org)