Package io.tesler.model.core.service
Class SystemSettingsImpl
- java.lang.Object
-
- io.tesler.model.core.service.SystemSettingsImpl
-
- All Implemented Interfaces:
SystemSettings
@DependsOn("deploymentTransactionSupport") @Service("systemSettings") public class SystemSettingsImpl extends Object implements SystemSettings
-
-
Field Summary
-
Fields inherited from interface io.tesler.api.system.SystemSettings
instance, SERVICE_NAME
-
-
Constructor Summary
Constructors Constructor Description SystemSettingsImpl(JpaDao jpaDao, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBooleanValue(LOV key)
int
getIntegerValue(LOV key, int defaultValue)
List<String>
getListValue(LOV key)
long
getLongValue(LOV key, long defaultValue)
String
getValue(LOV key)
String
getValue(LOV key, String defaultValue)
void
reload()
Stream<? extends org.apache.commons.lang3.tuple.Pair<String,String>>
select(Predicate<String> predicate)
-
-
-
Constructor Detail
-
SystemSettingsImpl
public SystemSettingsImpl(JpaDao jpaDao, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Detail
-
getValue
public String getValue(LOV key)
- Specified by:
getValue
in interfaceSystemSettings
-
getValue
public String getValue(LOV key, String defaultValue)
- Specified by:
getValue
in interfaceSystemSettings
-
getBooleanValue
public boolean getBooleanValue(LOV key)
- Specified by:
getBooleanValue
in interfaceSystemSettings
-
getIntegerValue
public int getIntegerValue(LOV key, int defaultValue)
- Specified by:
getIntegerValue
in interfaceSystemSettings
-
getLongValue
public long getLongValue(LOV key, long defaultValue)
- Specified by:
getLongValue
in interfaceSystemSettings
-
getListValue
public List<String> getListValue(LOV key)
- Specified by:
getListValue
in interfaceSystemSettings
-
reload
public void reload()
- Specified by:
reload
in interfaceSystemSettings
-
-