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.
Go to the directory install/registry-samples/auditable-events.
Type the following command:
Ant-base/ant approve-obj -Did=id-string |
For example, if you specify the unique identifier of the RegistryPackage object you created in Organizing Objects Within Registry Packages: Examples, the output of the approve-obj target looks something like this:
approve-obj: [java] ID string is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and life cycle manager [java] Object type is RegistryPackage [java] Object name is FreePackage [java] Object description is Package with objects named free [java] Object key id is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Current audit trail: [java] FreePackage created 2007-07-23 01:21:40.0 [java] Approved the object [java] Object saved [java] Audit trail for approved object: [java] FreePackage created 2007-07-23 01:21:40.0 [java] FreePackage approved 2007-07-23 01:28:26.0 |
Type the following command:
Ant-base/ant deprecate-obj -Did=id-string |
The output of the deprecate-obj target for the same object looks something like this:
deprecate-obj: [java] ID string is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and life cycle manager [java] Object type is RegistryPackage [java] Object name is FreePackage [java] Object description is Package with objects named free [java] Object key id is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Current audit trail: [java] FreePackage created 2007-07-23 01:21:40.0 [java] FreePackage approved 2007-07-23 01:28:26.0 [java] Deprecated the object [java] Object saved [java] Audit trail for deprecated object: [java] FreePackage created 2007-07-23 01:21:40.0 [java] FreePackage approved 2007-07-23 01:28:26.0 [java] FreePackage deprecated 2007-07-23 01:30:47.0 |
Type the following command:
Ant-base/ant undeprecate-obj -Did=id-string |
The output of the undeprecate-obj target for the same object looks something like this:
undeprecate-obj: [java] ID string is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and life cycle manager [java] Object type is RegistryPackage [java] Object name is FreePackage [java] Object description is Package with objects named free [java] Object key id is urn:uuid:182e383b-1244-4e9f-9439-bddac093ebe7 [java] Current audit trail: [java] FreePackage created 2007-07-23 01:21:40.0 [java] FreePackage approved 2007-07-23 01:28:26.0 [java] FreePackage deprecated 2007-07-23 01:30:47.0 [java] Undeprecated the object [java] Object saved [java] Audit trail for undeprecated object: [java] FreePackage created 2007-07-23 01:21:40.0 [java] FreePackage approved 2007-07-23 01:28:26.0 [java] FreePackage deprecated 2007-07-23 01:30:47.0 [java] FreePackage undeprecated 2007-07-23 01:32:05.0 |