Network and Security Manager 2010.4 API Guide
104
//creates an object of UpdateObjectViewType:
UpdateObjectViewType updateObject = new UpdateObjectViewType();
updateObject.addObjectIdentifier(objectId);
modifyCmd.setUpdateObject(updateObject);
NodeModificationType nodeModificationType = new NodeModificationType();
nodeModificationType.setDeleteNode("./nsmpolicy-id");
updateObject.setObjectModification(new ObjectModificationType());
updateObject.getObjectModification().addModification(nodeModificationType);
request.addCommand(modifyCmd);
//invokes the service:
ModifyObjectViewResponse response =
PolicyUnAssignmentTest.stub.ModifyObjectViewRequest(request);
assertTrue(response.getStatus() == StatusCodeType.Success);
} catch (Exception e) {
e.printStackTrace();
}
}
Copyright © 2010, Juniper Networks, Inc.
Need help?
Do you have a question about the NETWORK AND SECURITY MANAGER 2010.4 - API GUIDE REV 1 and is the answer not in the manual?
Questions and answers