Skip to content

Commit

Permalink
commenting part of code for table of audit events with same task id (…
Browse files Browse the repository at this point in the history
…audit details page)
  • Loading branch information
skublik committed Mar 26, 2021
1 parent 1fb2a7f commit 1fb197f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
Expand Up @@ -119,14 +119,14 @@
<div wicket:id="delta"></div>
</div>
</div>
<div class="col-md-12">
<div class="box" style="border-top: none; display: inline-block;">
<h3 style="font-size: 18px; display: inline-block; line-height: 1; margin: 0; padding: 10px; border-top: none;">
<span><wicket:message key="PageAuditLogDetails.auditLogsSameTaskId"/></span>
</h3>
<div wicket:id="historyPanel" class="col-md-12" />
</div>
</div>
<!-- <div class="col-md-12">-->
<!-- <div class="box" style="border-top: none; display: inline-block;">-->
<!-- <h3 style="font-size: 18px; display: inline-block; line-height: 1; margin: 0; padding: 10px; border-top: none;">-->
<!-- <span><wicket:message key="PageAuditLogDetails.auditLogsSameTaskId"/></span>-->
<!-- </h3>-->
<!-- <div wicket:id="historyPanel" class="col-md-12" />-->
<!-- </div>-->
<!-- </div>-->
</div>
<div class="row">
<div class="main-button-bar" style="padding-left: 15px;">
Expand Down
Expand Up @@ -116,7 +116,7 @@ public class PageAuditLogDetails extends PageBase {
private static final String ID_ADDITIONAL_ITEM_LINE = "additionalItemLine";
private static final String ID_ITEM_NAME = "itemName";
private static final String ID_ITEM_VALUE = "itemValue";
private static final String ID_HISTORY_PANEL = "historyPanel";
// private static final String ID_HISTORY_PANEL = "historyPanel";

private static final String ID_BUTTON_BACK = "back";
private static final int TASK_EVENTS_TABLE_SIZE = 10;
Expand Down Expand Up @@ -202,37 +202,37 @@ private void initLayout() {
WebMarkupContainer eventPanel = new WebMarkupContainer(ID_EVENT_PANEL);
eventPanel.setOutputMarkupId(true);
add(eventPanel);
initAuditLogHistoryPanel(eventPanel);
// initAuditLogHistoryPanel(eventPanel);
initEventPanel(eventPanel);
initDeltasPanel(eventPanel);
initLayoutBackButton();
}

private void initAuditLogHistoryPanel(WebMarkupContainer eventPanel) {

AuditLogViewerPanel panel = new AuditLogViewerPanel(ID_HISTORY_PANEL) {
private static final long serialVersionUID = 1L;

@Override
protected ObjectQuery getCustomizeContentQuery(){
return getPageBase().getPrismContext().queryFor(AuditEventRecordType.class)
.item(AuditEventRecordType.F_TASK_IDENTIFIER)
.eq(recordModel.getObject().getTaskIdentifier())
.build();
}

@Override
protected String getAuditStorageKey(String collectionNameValue) {
if (StringUtils.isNotEmpty(collectionNameValue)) {
return SessionStorage.KEY_EVENT_DETAIL_AUDIT_LOG + "." + collectionNameValue;
}
return SessionStorage.KEY_EVENT_DETAIL_AUDIT_LOG;
}
};
panel.setOutputMarkupId(true);
panel.add(new VisibleBehaviour(() -> recordModel.getObject() != null && recordModel.getObject().getTaskIdentifier() != null));
eventPanel.addOrReplace(panel);
}
// private void initAuditLogHistoryPanel(WebMarkupContainer eventPanel) {
//
// AuditLogViewerPanel panel = new AuditLogViewerPanel(ID_HISTORY_PANEL) {
// private static final long serialVersionUID = 1L;
//
// @Override
// protected ObjectQuery getCustomizeContentQuery(){
// return getPageBase().getPrismContext().queryFor(AuditEventRecordType.class)
// .item(AuditEventRecordType.F_TASK_IDENTIFIER)
// .eq(recordModel.getObject().getTaskIdentifier())
// .build();
// }
//
// @Override
// protected String getAuditStorageKey(String collectionNameValue) {
// if (StringUtils.isNotEmpty(collectionNameValue)) {
// return SessionStorage.KEY_EVENT_DETAIL_AUDIT_LOG + "." + collectionNameValue;
// }
// return SessionStorage.KEY_EVENT_DETAIL_AUDIT_LOG;
// }
// };
// panel.setOutputMarkupId(true);
// panel.add(new VisibleBehaviour(() -> recordModel.getObject() != null && recordModel.getObject().getTaskIdentifier() != null));
// eventPanel.addOrReplace(panel);
// }

private void initEventPanel(WebMarkupContainer eventPanel) {

Expand Down

0 comments on commit 1fb197f

Please sign in to comment.