Spenser Shumaker has uploaded a new change for review.

Change subject: webadmin: Expose additional AuditLog fields so they are visible 
in the plugin API.
......................................................................

webadmin: Expose additional AuditLog fields so they are
visible in the plugin API.

This change will allow additional fields in the
AuditLog(Event) object to be accessible by the plugin
API.  The new fields are as follows:
correlationId
message
callStack
customEventId
toString

Change-Id: I846b1e46e26dbff0d6b8c62eee0471555edc9bbf
Signed-off-by: Spenser Shumaker <[email protected]>
---
M 
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/50/19150/1

diff --git 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
index 0828cb9..237ab6c 100644
--- 
a/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
+++ 
b/frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/entity/EntityObject.java
@@ -123,7 +123,11 @@
 
         // Event
         else if (businessEntity instanceof AuditLog) {
-            // No custom properties for now
+            obj.setProperty("correlationId", ((AuditLog) 
businessEntity).getCorrelationId()); //$NON-NLS-1$
+            obj.setProperty("message", ((AuditLog) 
businessEntity).getmessage()); //$NON-NLS-1$
+            obj.setProperty("callStack", ((AuditLog) 
businessEntity).getCallStack()); //$NON-NLS-1$
+            obj.setProperty("customEventId", String.valueOf(((AuditLog) 
businessEntity).getCustomEventId())); //$NON-NLS-1$
+            obj.setProperty("toString", ((AuditLog) 
businessEntity).toStringForLogging()); //$NON-NLS-1$
         }
 
         return obj;


-- 
To view, visit http://gerrit.ovirt.org/19150
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I846b1e46e26dbff0d6b8c62eee0471555edc9bbf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Spenser Shumaker <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to