|
|
|
@ -21,22 +21,34 @@ package io.entgra.device.mgt.core.notification.logger;
|
|
|
|
|
import io.entgra.device.mgt.core.device.mgt.extensions.logger.LogContext;
|
|
|
|
|
|
|
|
|
|
public class AppInstallLogContext extends LogContext {
|
|
|
|
|
private final String appId;
|
|
|
|
|
private final String appName;
|
|
|
|
|
private final String tenantId;
|
|
|
|
|
private final String device;
|
|
|
|
|
private final String userName;
|
|
|
|
|
private final String action;
|
|
|
|
|
|
|
|
|
|
private AppInstallLogContext(Builder builder) {
|
|
|
|
|
this.appId = builder.appId;
|
|
|
|
|
this.appName = builder.appName;
|
|
|
|
|
this.tenantId = builder.tenantId;
|
|
|
|
|
this.device = builder.device;
|
|
|
|
|
this.userName = builder.userName;
|
|
|
|
|
this.action = builder.action;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAppId() {
|
|
|
|
|
return appId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAppName() {
|
|
|
|
|
return appName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTenantId() {
|
|
|
|
|
return tenantId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDevice() {
|
|
|
|
|
return device;
|
|
|
|
|
}
|
|
|
|
@ -50,7 +62,9 @@ public class AppInstallLogContext extends LogContext {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class Builder {
|
|
|
|
|
private String appId;
|
|
|
|
|
private String appName;
|
|
|
|
|
private String tenantId;
|
|
|
|
|
private String device;
|
|
|
|
|
private String userName;
|
|
|
|
|
private String action;
|
|
|
|
@ -67,6 +81,15 @@ public class AppInstallLogContext extends LogContext {
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAppId() {
|
|
|
|
|
return appId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setAppId(String appId) {
|
|
|
|
|
this.appId = appId;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getAppName() {
|
|
|
|
|
return appName;
|
|
|
|
|
}
|
|
|
|
@ -76,6 +99,15 @@ public class AppInstallLogContext extends LogContext {
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getTenantId() {
|
|
|
|
|
return tenantId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Builder setTenantId(String tenantId) {
|
|
|
|
|
this.tenantId = tenantId;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDevice() {
|
|
|
|
|
return device;
|
|
|
|
|
}
|
|
|
|
|