Service Registry 3 2005Q4 Developer's Guide

Changing the State of Objects in the Registry: Examples

For examples of approving, deprecating, undeprecating objects, see the examples in <INSTALL>/registry/samples/auditable-events/src: JAXRApproveObject.java, JAXRDeprecateObject.java, and JAXRUndeprecateObject.java. Each example performs an action on an object whose unique identifier you specify, then displays the object’s audit trail so that you can see the effect of the example.

For all examples, the object that you specify must be one that you created.

ProcedureTo Run the JAXRApproveObject, JAXRDeprecateObject, and JAXRUndeprecateObject Examples

Steps
  1. Go to the directory <INSTALL>/registry/samples/auditable-events.

  2. Type the following command:


    asant approve-obj -Did=id_string
    
  3. Type the following command:


    asant deprecate-obj -Did=id_string
    
  4. Type the following command:


    asant undeprecate-obj -Did=id_string