Package com.i2group.disco.audit
Interface IWebChartSharingChangeAuditEvent
- All Superinterfaces:
IAuditEvent
An event that was generated when a web chart's sharing permissions or identifying metadata (name,
description, owner) changed.
IWebChartSharingChangeAuditEvent makes information about the
operation available to the audit logging mechanism.
One event type covers all three WebChartChangeTypes, and which accessors return a
present value depends on the type:
WebChartChangeType.SHARINGpopulates exactly the old/new pair(s) for the fields the PATCH actually changed (comparing sharing permissions by subject-to-access-level assignment, not list order), and leaves every other pair empty. The one exception isgetDescription()/getOldDescription(): because a chart's description is itself optional, a description that changed to absent reports an emptygetDescription()with a populatedgetOldDescription()— the same shape as a field that did not change at all. Callers that need to distinguish the two must comparegetOldDescription()againstgetDescription()rather than testinggetDescription()alone.WebChartChangeType.NAMEpopulates onlygetName()andgetOldName().WebChartChangeType.METADATAleaves every accessor below empty, regardless of which underlying fields aneditChartMetadataaction actually changed: perdefine-chart-audit-granularity, a metadata change is audited as a single category, not per-field, sogetChangeType()returningMETADATAis itself the only signal this event type carries.
- Since:
- 13.8
-
Method Summary
Modifier and TypeMethodDescriptionGets the web chart's access control list after the change, if this change modified it.Gets theWebChartChangeTypethat generated this event.Gets the identifier of the web chart session that changed.Gets the web chart's description after the change, if this change modified it and the description is present.Gets the web chart's sharing location ("path") after the change, if this change modified it.getName()Gets the web chart's name after the change, if this change modified it.Gets the web chart's access control list before the change, if this change modified it.Gets the web chart's description before the change, if this change modified it.Gets the web chart's sharing location ("path") before the change, if this change modified it.Gets the web chart's name before the change, if this change modified it.Methods inherited from interface com.i2group.disco.audit.IAuditEvent
getClientIPAddress, getClientUserAgent, getTimestamp, getUser, getUserId, getUserSecurityGroups, getUserSecurityPermissions, toString
-
Method Details
-
getChartId
String getChartId()Gets the identifier of the web chart session that changed.- Returns:
- See above.
-
getChangeType
WebChartChangeType getChangeType()Gets theWebChartChangeTypethat generated this event.- Returns:
- See above.
-
getName
Gets the web chart's name after the change, if this change modified it.- Returns:
- See above.
-
getOldName
Gets the web chart's name before the change, if this change modified it.- Returns:
- See above.
-
getDescription
Gets the web chart's description after the change, if this change modified it and the description is present.An empty
Optionalis ambiguous by itself: it is returned both when this change did not touch the description, and when it changed the description to absent. Compare againstgetOldDescription()to tell the two apart — see the class-level note.- Returns:
- See above.
-
getOldDescription
Gets the web chart's description before the change, if this change modified it.- Returns:
- See above.
-
getLocation
Gets the web chart's sharing location ("path") after the change, if this change modified it.- Returns:
- See above.
-
getOldLocation
Gets the web chart's sharing location ("path") before the change, if this change modified it.- Returns:
- See above.
-
getAccessControl
Optional<List<IAccessControl>> getAccessControl()Gets the web chart's access control list after the change, if this change modified it.- Returns:
- See above.
-
getOldAccessControl
Optional<List<IAccessControl>> getOldAccessControl()Gets the web chart's access control list before the change, if this change modified it.- Returns:
- See above.
-