Class ConfigValueService
java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.ConfigValueService
Configuration Values related services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CompanyConfigValueRepositoryCompany Configuration Value repository.private ConfigValueRepositoryConfiguration Value repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>>>getConfigValues(String product, int companyId) Get all configuration values for a product type.org.springframework.http.ResponseEntity<Object>Get all configuration values for onboarding.org.springframework.http.ResponseEntity<Object>updateConfigValue(List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto> configValueDtos, String userId, int companyId) Update configuration value.
-
Field Details
-
configValueRepository
Configuration Value repository. -
companyConfigValueRepository
Company Configuration Value repository.
-
-
Constructor Details
-
ConfigValueService
public ConfigValueService()
-
-
Method Details
-
getConfigValuesOnboarding
Get all configuration values for onboarding.- Returns:
- configuration value list.
-
getConfigValues
public org.springframework.http.ResponseEntity<es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>>> getConfigValues(String product, int companyId) Get all configuration values for a product type.- Parameters:
product- product typecompanyId- company identifier- Returns:
- configuration value list.
-
updateConfigValue
public org.springframework.http.ResponseEntity<Object> updateConfigValue(List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto> configValueDtos, String userId, int companyId) Update configuration value.- Parameters:
configValueDtos- configuration values to update.userId- backoffice user identifier.companyId- company identifier- Returns:
- response status
-