use of de.symeda.sormas.api.messaging.ManualMessageLogDto in project SORMAS-Project by hzi-braunschweig.
the class SmsList method reload.
@Override
public void reload() {
List<ManualMessageLogDto> messageLogs = FacadeProvider.getCaseFacade().getMessageLog(personReferenceDto.getUuid(), MessageType.SMS);
if (!hasPhoneNumber) {
Label noPhoneNumberLabel = new Label(I18nProperties.getCaption(Captions.messagesNoPhoneNumberForCasePerson));
listLayout.addComponent(noPhoneNumberLabel);
}
setEntries(messageLogs);
if (!messageLogs.isEmpty()) {
showPage(1);
} else {
updatePaginationLayout();
Label noMessageLabel = new Label(I18nProperties.getCaption(Captions.messagesNoSmsSentForCase));
listLayout.addComponent(noMessageLabel);
}
}
Aggregations