IBM Enterprise Records, Version 5.1.+            

RMCustomObject

RMCustomObject is the base object for all RM custom objects. A custom object is a general object with no inherent semantics, but independently securable and can be persisted to an object store. RMCustomObject wraps the functionality of the Content Java™ API CustomObject interface. You can create and retrieve custom objects by using the methods provided by the RMObjectStore interface. The types of RM custom objects are:

To create a custom object, call the createRMCustomObject method on the RMObjectStore object. In this method, you pass the following as input parameters: an integer that specifies the type of custom object to be created; a property collection containing the values for all the required properties; and a permission collection for the custom object, as shown in the following code snippet:
// Creates an Action object 
void createCustomObject() 
{ 
   Properties loProperties = ObjectFactory.getPropeties();
      Property loProperty = ObjectFactory.getProperty(RMProperty.ACTION_NAME); 
      loProperty.setValue("Action"); 
      loProperties.add(loProperty); 
      RMCustomObject loObject = moRMOS.createRMCustomObject(RMType.RM_TYPE_ACTION, 
      loProperties, null); 
}
To instantiate a custom object, call the getObject method on an instance of RMObjectStore.
String lsObjectId = "{FDB1E9BF-D30D-4071-A3CC-631EB305A445}"; 
RMCustomObject loRMCustObj = 
   (RMCustomObject)loRMObjectStore.getObject(RMType.RM_TYPE_ACTION, lsObjectId);


Feedback

Last updated: August 2011


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