Skip to content
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.

Commit

Permalink
feat: Change ES mapping (request) to store security type / token inst…
Browse files Browse the repository at this point in the history
…ead of api key

This closes gravitee-io/issues#1994
  • Loading branch information
aelamrani authored and brasseld committed Apr 19, 2019
1 parent 9fb6a72 commit f6db3e9
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/main/java/io/gravitee/repository/log/model/Log.java
Expand Up @@ -37,7 +37,6 @@ public enum AuditEvent implements Audit.AuditEvent {
private long apiResponseTime;
private long requestContentLength;
private long responseContentLength;
private String apiKey;
private String plan;
private String api;
private String application;
Expand All @@ -49,6 +48,8 @@ public enum AuditEvent implements Audit.AuditEvent {
private String gateway;
private String host;
private String user;
private String securityType;
private String securityToken;

public String getId() {
return id;
Expand Down Expand Up @@ -138,14 +139,6 @@ public void setPlan(String plan) {
this.plan = plan;
}

public String getApiKey() {
return apiKey;
}

public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}

public String getApi() {
return api;
}
Expand Down Expand Up @@ -226,6 +219,22 @@ public void setUser(String user) {
this.user = user;
}

public String getSecurityType() {
return securityType;
}

public void setSecurityType(String securityType) {
this.securityType = securityType;
}

public String getSecurityToken() {
return securityToken;
}

public void setSecurityToken(String securityToken) {
this.securityToken = securityToken;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down

0 comments on commit f6db3e9

Please sign in to comment.