Moved tenant configuration functions to new management class
- moved fucntions to TenantConfigurationManagement, for better function capseling - updated references - updated references in tests, tests were succesfully Signed-off-by: Nonnenmacher Fabian <fabian.nonnenmacher@bosch-si.com>
This commit is contained in:
committed by
Nonnenmacher Fabian
parent
b56477191a
commit
6cef6aed1a
@@ -17,16 +17,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
public class SystemConfigurationRest {
|
||||
|
||||
@JsonProperty
|
||||
private Map<String, Object> configuration;
|
||||
private Map<String, TenantConfigurationValueRest> configuration;
|
||||
|
||||
/**
|
||||
* Sets the authentication configuration.
|
||||
*
|
||||
* @param authenticationConfiguration
|
||||
* @param configuration
|
||||
* the authentication configuration
|
||||
*/
|
||||
public void setAuthenticationConfiguration(Map<String, Object> authenticationConfiguration) {
|
||||
this.configuration = authenticationConfiguration;
|
||||
public void setConfiguration(final Map<String, TenantConfigurationValueRest> configuration) {
|
||||
this.configuration = configuration;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -34,7 +34,7 @@ public class SystemConfigurationRest {
|
||||
*
|
||||
* @return the authentication configuration
|
||||
*/
|
||||
public Map<String, Object> getAuthenticationConfiguration() {
|
||||
public Map<String, TenantConfigurationValueRest> getConfiguration() {
|
||||
return this.configuration;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package org.eclipse.hawkbit.rest.resource.model.system;
|
||||
|
||||
public class TenantConfigurationValueRest {
|
||||
|
||||
private Object value = null;
|
||||
private boolean isGlobal = true;
|
||||
private Long lastModifiedAt = null;
|
||||
private String lastModifiedBy = null;
|
||||
private Long createdAt = null;
|
||||
private String createdBy = null;
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(final Object value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public boolean isGlobal() {
|
||||
return isGlobal;
|
||||
}
|
||||
|
||||
public void setGlobal(final boolean isGlobal) {
|
||||
this.isGlobal = isGlobal;
|
||||
}
|
||||
|
||||
public Long getLastModifiedAt() {
|
||||
return lastModifiedAt;
|
||||
}
|
||||
|
||||
public void setLastModifiedAt(final Long lastModifiedAt) {
|
||||
this.lastModifiedAt = lastModifiedAt;
|
||||
}
|
||||
|
||||
public String getLastModifiedBy() {
|
||||
return lastModifiedBy;
|
||||
}
|
||||
|
||||
public void setLastModifiedBy(final String lastModifiedBy) {
|
||||
this.lastModifiedBy = lastModifiedBy;
|
||||
}
|
||||
|
||||
public Long getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setCreatedAt(final Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(final String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user