Class BackofficeEndpoints
java.lang.Object
es.kukenan.smartfi.microservice.smartficore.service.api.AbstractEndpointClient
es.kukenan.smartfi.microservice.smartficore.service.api.AbstractInternalEndpointClient
es.kukenan.smartfi.microservice.smartficore.service.api.backoffice.BackofficeEndpoints
Backoffice endpoints implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParam for request all files.static final StringBase path to appointment.static final StringBase path to AuditLog.static final StringBase path to backoffice.static final StringBase path to appointment.static final StringPath to requested files public path.Fields inherited from class es.kukenan.smartfi.microservice.smartficore.service.api.AbstractInternalEndpointClient
endpointBasePath, HEADER_USERPROFILEID, restTemplate, USER_IP_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto>callGetAppointmentDetail(String appointmentId, String userToken) Get appointment detail.private es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>>callGetConfigurationValues(String product, Integer companyId) Get configuration values.private es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.requestedfiles.DataObject>>callGetRequestedFiles(String product) Call the requested files endpoint.es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDtogetAppointmentDetail(String appointmentId, String userToken) Get appointment detail.List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>getConfigurationValues(String product, Integer companyId) Get configuration values list.List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.requestedfiles.DataObject>getRequestedFiles(String product) Get requested files list.voidsaveAuditLog(String userId, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.audit.AuditLogDto auditLogDto) Save AuditLog.Methods inherited from class es.kukenan.smartfi.microservice.smartficore.service.api.AbstractInternalEndpointClient
defaultRequestHeaders, defaultRequestHeaders, extractResponseBody, extractResponseDataMethods inherited from class es.kukenan.smartfi.microservice.smartficore.service.api.AbstractEndpointClient
createUri, createUri, defaultRequestHeaders, handleConnectionException, message
-
Field Details
-
PATH_PUBLIC_REQUESTED_FILES
Path to requested files public path.- See Also:
-
PATH_BACKOFFICE_BASE
Base path to backoffice.- See Also:
-
PATH_APPOINTMENT_BASE
Base path to appointment.- See Also:
-
PATH_CONFIG_VALUES
Base path to appointment.- See Also:
-
PARAM_EMPTY_ENABLED
Param for request all files.- See Also:
-
PATH_AUDITLOG
Base path to AuditLog.- See Also:
-
-
Constructor Details
-
BackofficeEndpoints
Full state constructor.- Parameters:
apiBasePath- Backoffice API base path.
-
-
Method Details
-
getRequestedFiles
public List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.requestedfiles.DataObject> getRequestedFiles(String product) Get requested files list.- Parameters:
product- Product type.- Returns:
- List of requested files.
-
getAppointmentDetail
public es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto getAppointmentDetail(String appointmentId, String userToken) Get appointment detail.- Parameters:
appointmentId- Appointment identifier.userToken- user token.- Returns:
- appointment detail.
-
getConfigurationValues
public List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto> getConfigurationValues(String product, Integer companyId) Get configuration values list.- Parameters:
product- Product type.companyId- company identifier.- Returns:
- List of configuration values.
-
callGetRequestedFiles
private es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.requestedfiles.DataObject>> callGetRequestedFiles(String product) Call the requested files endpoint.- Parameters:
product- Product type.- Returns:
- response object.
-
callGetAppointmentDetail
private es.kukenan.smartfi.dto.ResponseDTO<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.appointments.AppointmentDto> callGetAppointmentDetail(String appointmentId, String userToken) Get appointment detail.- Parameters:
appointmentId- Appointment identifier.userToken- user token.- Returns:
- appointment detail.
-
callGetConfigurationValues
private es.kukenan.smartfi.dto.ResponseDTO<List<es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.ConfigValueDto>> callGetConfigurationValues(String product, Integer companyId) Get configuration values.- Parameters:
product- product type.companyId- company identifier.- Returns:
- configuration list.
-
saveAuditLog
public void saveAuditLog(String userId, es.kukenan.smartfi.microservice.backoffice.dtos.backoffice.audit.AuditLogDto auditLogDto) Save AuditLog.- Parameters:
userId- user identifier.auditLogDto- new AuditLog.
-