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).
ObjectStore loObjectStore = ObjectFactory.getObjectStore(objectStoreName, loSession);
RMObjectStore loRMObjectStore= new RMUtil().getRMObjectStore(loObjectStore);
String lsObjectId = "{FDB1E9BF-D30D-4071-A3CC-631EB305A445}"; RecordCategory loCat = (RecordCategory)loRMObjectStore.getObject(RMType.RM_TYPE_RECORDCATEGORY, lsObjectId);