Class HvlOAuthSettingIntegrationProviderImpl
java.lang.Object
tr.com.havelsan.javarch.oauth.setting.integration.provider.HvlOAuthSettingIntegrationProviderImpl
- All Implemented Interfaces:
HvlOAuthSettingIntegrationProvider
@ConditionalOnProperty(prefix="hvl.oauth.setting",
name="circuit-breaker-enabled",
havingValue="false")
@Service("settingService")
public class HvlOAuthSettingIntegrationProviderImpl
extends Object
implements HvlOAuthSettingIntegrationProvider
The class which implements
HvlOAuthSettingIntegrationProvider
.-
Constructor Summary
ConstructorDescriptionHvlOAuthSettingIntegrationProviderImpl
(tr.com.havelsan.javarch.system.setting.cloud.client.service.HvlSettingRestService settingRestService) Instantiates a new HvlOAuthSettingIntegrationProvider. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanSettingByCode
(@NotBlank @Size(max=200) String code) Method that returns boolean setting data by codeboolean
getBooleanSettingByCodeAndTenant
(@NotBlank @Size(max=200) String code, @Size(max=100) String tenant) Method that returns boolean setting data by code and tenantlong
getNumberSettingByCode
(@NotBlank @Size(max=200) String code) Method that returns number setting data by codelong
getNumberSettingByCodeAndTenant
(@NotBlank @Size(max=200) String code, @Size(max=100) String tenant) Method that returns number setting data by code and tenantgetStringSettingByCode
(@NotBlank @Size(max=200) String code) Method that returns string setting data by codegetStringSettingByCodeAndTenant
(@NotBlank @Size(max=200) String code, @Size(max=100) String tenant) Method that returns string setting data by code and tenant
-
Constructor Details
-
HvlOAuthSettingIntegrationProviderImpl
public HvlOAuthSettingIntegrationProviderImpl(tr.com.havelsan.javarch.system.setting.cloud.client.service.HvlSettingRestService settingRestService) Instantiates a new HvlOAuthSettingIntegrationProvider.- Parameters:
settingRestService
- the setting service
-
-
Method Details
-
getNumberSettingByCode
Method that returns number setting data by code- Specified by:
getNumberSettingByCode
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the code- Returns:
- number setting by code
-
getStringSettingByCode
Method that returns string setting data by code- Specified by:
getStringSettingByCode
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the code- Returns:
- string setting by code
-
getBooleanSettingByCode
public boolean getBooleanSettingByCode(@NotBlank @Size(max=200) @NotBlank @Size(max=200) String code) Method that returns boolean setting data by code- Specified by:
getBooleanSettingByCode
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the code- Returns:
- boolean setting by code
-
getNumberSettingByCodeAndTenant
public long getNumberSettingByCodeAndTenant(@NotBlank @Size(max=200) @NotBlank @Size(max=200) String code, @Size(max=100) @Size(max=100) String tenant) Method that returns number setting data by code and tenant- Specified by:
getNumberSettingByCodeAndTenant
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the codetenant
- the tenant- Returns:
- number setting by code
-
getStringSettingByCodeAndTenant
public String getStringSettingByCodeAndTenant(@NotBlank @Size(max=200) @NotBlank @Size(max=200) String code, @Size(max=100) @Size(max=100) String tenant) Method that returns string setting data by code and tenant- Specified by:
getStringSettingByCodeAndTenant
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the codetenant
- the tenant- Returns:
- string setting by code
-
getBooleanSettingByCodeAndTenant
public boolean getBooleanSettingByCodeAndTenant(@NotBlank @Size(max=200) @NotBlank @Size(max=200) String code, @Size(max=100) @Size(max=100) String tenant) Method that returns boolean setting data by code and tenant- Specified by:
getBooleanSettingByCodeAndTenant
in interfaceHvlOAuthSettingIntegrationProvider
- Parameters:
code
- the codetenant
- the tenant- Returns:
- boolean setting by code
-