IBM Enterprise Records, Version 5.1.+            

Creating a record folder

A RecordFolder object represents a container or collection of related records. It is used to manage records according to the specified retention and disposition periods and events. You can create multiple record folders in a record category. However, you can create a record folder only within a record category that does not contain a record category. You can subclass the RecordFolder class as Physical Record Folder, Electronic Record Folder, Hybrid Record Folder , and Physical Container to manage electronic and physical records. These subclasses are described below:

Note: The RecordFolder class is associated with certain default container type properties. Therefore, if the RecordFolder class is subclassed, the container type properties must be the same for the Electronic, Physical, Hybrid, and PhysicalContainer class.
The following topics provide information about creating and retrieving RecordFolder objects.

Creating a default RecordFolder object

To create a RecordFolder object, you call the addRecordFolder method on an RMRecordFolderContainer object. By default, the addRecordFolder method creates an electronic record folder.

The following code fragment shows the creation of a default RecordFolder object using the addRecordFolder method.
//Creates a RecordFolder object
public void createDefaultRecordFolder(String asName, Properties aoProps, Permissions aoACLs,
   RecordCategory aoParentRC)
{
   RecordFolder loRF = aoParentRC.addRecordFolder(asName, aoProps, aoACLs);
}

Creating a specific type of RecordFolder object

To create a specific type of record folder, such as physical or hybrid, you specify the class ID of the type of record folder in the addRecordFolder method, as shown in the following code fragment.
//Creates a specific type of RecordFolder object
public void createSpecificRecordFolder(String asName, String asClassId, Properties aoProps,
   Permissions aoACLs, RecordCategory aoParentRC)
{
   RecordFolder loRF = aoParentRC.addRecordFolder(asName, asClassId, aoProps, aoACLs);
}
To get the class ID of an RM object type, use getClassIDs method in RMUtil class, as shown in the following code fragment.
// Get the class ID of physical record folder 
public String getRMTypeClassId(RMObjectStore aoRMOS) 
{ 
   String lsClassId = new RMUtil().getClassIDs( aoRMOS,
      new int[]{RMType.RM_TYPE_PHYSICALRECORDFOLDER}, 
      false)[0]; 
   return lsClassId; 
} 

Retrieving a RecordFolder object

You can retrieve RecordFolder 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)