Class ConfigValueService

java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.ConfigValueService

@Service public class ConfigValueService extends Object
Configuration Values related services.
  • Field Details

    • configValueRepository

      @Autowired private ConfigValueRepository configValueRepository
      Configuration Value repository.
    • companyConfigValueRepository

      @Autowired private CompanyConfigValueRepository companyConfigValueRepository
      Company Configuration Value repository.
  • Constructor Details

    • ConfigValueService

      public ConfigValueService()
  • Method Details

    • getConfigValuesOnboarding

      public org.springframework.http.ResponseEntity<Object> 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 type
      companyId - 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