IBM Enterprise Records, Version 5.1.+            

Inactivate/Activate

The Inactivate operation temporarily disables the state of a container object to ensure that any type of operation cannot be performed on the object. You can inactivate an object using the ActivableObject interface, which defines the behavior of any container object that can be activated or inactivated. To inactivate or activate an ActivableObject object, call the inActivate method on an ActivableObject object. Pass in true to the abInactive parameter to inactivate the object and false to activate the object. You must specify a reason for inactivating an object, as shown in the code snippet below:
// Inactivates or activates a record category
public void inActivate(ActivableObject aoObj, boolean abInactive, String asReasonForInactivate) 
{
   aoObj.inActivate(abInactive, asReasonForInactivate);
}

When a container object is in an inactive state, you cannot add child objects to the container object. For example, if a RecordCategory object is inactivated, you cannot add child record categories, record folders, or records to the object. Additionally, if a parent object is inactivated, all the child objects within the parent object are also inactivated. For example, if you inactivate a RecordCategory object, all the RecordFolder and Volume objects present within the record category are also inactivated. To add child objects to an inactive object, you must first activate it.

Note: Even if an inactive parent object is activated, all the child objects within the parent object remain inactive.

For information about simultaneously inactivating multiple objects, refer to Performing bulk operations.



Feedback

Last updated: August 2011


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