Commit f0b16479 authored by Aman Verma's avatar Aman Verma
Browse files

fixing auditlogger

parent a85547c0
Pipeline #49215 passed with stages
in 21 minutes and 23 seconds
......@@ -27,34 +27,34 @@ public class AuditLogger {
}
public void schemaRegisteredSuccess(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaRegistered(AuditStatus.SUCCESS, resources));
//this.writeLog(this.getAuditEvents().getSchemaRegistered(AuditStatus.SUCCESS, resources));
}
public void schemaRegisteredFailure(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaRegistered(AuditStatus.FAILURE, resources));
//this.writeLog(this.getAuditEvents().getSchemaRegistered(AuditStatus.FAILURE, resources));
}
public void schemaRetrievedSuccess(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaRetrieved(AuditStatus.SUCCESS, resources));
//this.writeLog(this.getAuditEvents().getSchemaRetrieved(AuditStatus.SUCCESS, resources));
}
public void schemaRetrievedFailure(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaRetrieved(AuditStatus.FAILURE, resources));
//this.writeLog(this.getAuditEvents().getSchemaRetrieved(AuditStatus.FAILURE, resources));
}
public void searchSchemaSuccess(List<String> resources){
this.writeLog(this.getAuditEvents().getSearchForSchema(AuditStatus.SUCCESS, resources));
//this.writeLog(this.getAuditEvents().getSearchForSchema(AuditStatus.SUCCESS, resources));
}
public void searchSchemaFailure(List<String> resources){
this.writeLog(this.getAuditEvents().getSearchForSchema(AuditStatus.FAILURE, resources));
//this.writeLog(this.getAuditEvents().getSearchForSchema(AuditStatus.FAILURE, resources));
}
public void schemaUpdatedSuccess(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.SUCCESS, resources));
//this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.SUCCESS, resources));
}
public void schemaUpdatedFailure(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.FAILURE, resources));
//this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.FAILURE, resources));
}
public void schemaNotificationSuccess(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.SUCCESS, resources));
//this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.SUCCESS, resources));
}
public void schemaNotificationFailure(List<String> resources){
this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.FAILURE, resources));
//this.writeLog(this.getAuditEvents().getSchemaUpdated(AuditStatus.FAILURE, resources));
}
private void writeLog(AuditPayload log) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment