Made implicit tenant meta data creation configurable (#1575)
In hawkBit up to 0.4.1 it was true - getTenantMetadate created implicitly a tenant metadata. It was disable in latest commits - but now it is made optional - disabled by default Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -56,7 +56,7 @@ public class RepositoryProperties {
|
||||
private boolean eagerPollPersistence;
|
||||
|
||||
/**
|
||||
* If an {@link Action} has a weight of null this value is used as weight.
|
||||
* If an {@link org.eclipse.hawkbit.repository.model.Action} has a weight of null this value is used as weight.
|
||||
*/
|
||||
private int actionWeightIfAbsent = 1000;
|
||||
|
||||
@@ -66,6 +66,8 @@ public class RepositoryProperties {
|
||||
*/
|
||||
private long dsInvalidationLockTimeout = 5;
|
||||
|
||||
private boolean implicitTenantCreateAllowed;
|
||||
|
||||
public boolean isEagerPollPersistence() {
|
||||
return eagerPollPersistence;
|
||||
}
|
||||
@@ -122,4 +124,11 @@ public class RepositoryProperties {
|
||||
this.dsInvalidationLockTimeout = dsInvalidationLockTimeout;
|
||||
}
|
||||
|
||||
public boolean isImplicitTenantCreateAllowed() {
|
||||
return implicitTenantCreateAllowed;
|
||||
}
|
||||
|
||||
public void setImplicitTenantCreateAllowed(final boolean implicitTenantCreateAllowed) {
|
||||
this.implicitTenantCreateAllowed = implicitTenantCreateAllowed;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user