Class CompanyExcelService

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

@Service public class CompanyExcelService extends Object
Company Excel related services.
  • Field Details

    • internalApiClient

      @Autowired private InternalApiClient internalApiClient
      Back office clients manager.
    • userRepository

      @Autowired private UserRepository userRepository
      User repository.
    • auditService

      @Autowired private AuditService auditService
      Backoffice endpoints implementation.
    • requestContextManager

      @Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManager
      Request context manager.
  • Constructor Details

    • CompanyExcelService

      public CompanyExcelService()
  • Method Details

    • readCompanyEmployeeExcelFile

      public void readCompanyEmployeeExcelFile(String userId, Integer companyId, String userToken, org.springframework.web.multipart.MultipartFile file, javax.servlet.http.HttpServletResponse response) throws IOException
      Load an excel file with employee data from a company.
      Parameters:
      userId - user identifier.
      companyId - company identifier.
      userToken - user token generated.
      file - Excel file.
      response - response.
      Throws:
      IOException - failed to write response.
    • getExcelEmployeesTemplate

      public void getExcelEmployeesTemplate(javax.servlet.http.HttpServletResponse response) throws IOException
      Download excel template file.
      Parameters:
      response - response.
      Throws:
      IOException - failed to write response.