Class CompanyExcelService
java.lang.Object
es.kukenan.smartfi.microservice.backoffice.service.CompanyExcelService
Company Excel related services.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AuditServiceBackoffice endpoints implementation.private InternalApiClientBack office clients manager.private es.kukenan.smartfi.common.context.RequestContextManagerRequest context manager.private UserRepositoryUser repository. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetExcelEmployeesTemplate(javax.servlet.http.HttpServletResponse response) Download excel template file.voidreadCompanyEmployeeExcelFile(String userId, Integer companyId, String userToken, org.springframework.web.multipart.MultipartFile file, javax.servlet.http.HttpServletResponse response) Load an excel file with employee data from a company.
-
Field Details
-
internalApiClient
Back office clients manager. -
userRepository
User repository. -
auditService
Backoffice endpoints implementation. -
requestContextManager
@Autowired private es.kukenan.smartfi.common.context.RequestContextManager requestContextManagerRequest 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.
-