IBM Enterprise Records, Version 5.1.+            

RMObjectStore

An RMObjectStore object represents the object store in which all file plans are created and stored. The RMObjectStore interface extends the RMObject interface as well as the ObjectStore interface of the Content Java™ API. The RMObjectStore interface serves as a wrapper class for any RM-enabled object store, and provides all RM-related functionality in a Content Engine object store.

The RMObjectStore interface extends from the Content Java API ObjectStore interface and, as a result, exhibits the same behavior as the ObjectStore interface. However, it overrides the createObject and createAndFileObject methods of the ObjectStore object. This is to ensure that end users declare records only on RM object stores (as opposed to document creation, which is possible on any FileNet P8 object store).

To instantiate an RMObjectStore object, first create an instance of a Content Java API ObjectStore object:
ObjectStore loObjectStore = ObjectFactory.getObjectStore(objectStoreName, loSession);
Once the ObjectStore object is instantiated, you pass it in as a parameter to the getRMObjectStore method of the RMUtil class to instantiate an RMObjectStore object, as shown in the code below:
RMObjectStore loRMObjectStore= new RMUtil().getRMObjectStore(loObjectStore);
The RMObjectStore interface provides the functionality for creating and retrieving all container and custom objects, such as Action and DispositionSchedule objects. For example, you can instantiate a record category by passing the RMType and GUID as parameters to the getObject method, as shown in the following code:
String lsObjectId = "{FDB1E9BF-D30D-4071-A3CC-631EB305A445}";
RecordCategory loCat = 
   (RecordCategory)loRMObjectStore.getObject(RMType.RM_TYPE_RECORDCATEGORY,
   lsObjectId);


Feedback

Last updated: August 2011


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