use of de.symeda.sormas.api.caze.CaseListEntryDto in project SORMAS-Project by hzi-braunschweig.
the class CaseFacadeEjb method getEntriesList.
@Override
public List<CaseListEntryDto> getEntriesList(String personUuid, Integer first, Integer max) {
Long personId = personFacade.getPersonIdByUuid(personUuid);
List<CaseListEntryDto> entries = service.getEntriesList(personId, first, max);
Pseudonymizer pseudonymizer = Pseudonymizer.getDefault(userService::hasRight, I18nProperties.getCaption(Captions.inaccessibleValue));
pseudonymizer.pseudonymizeDtoCollection(CaseListEntryDto.class, entries, CaseListEntryDto::isInJurisdiction, null);
return entries;
}
use of de.symeda.sormas.api.caze.CaseListEntryDto in project SORMAS-Project by hzi-braunschweig.
the class CaseList method drawDisplayedEntries.
@Override
protected void drawDisplayedEntries() {
UserProvider currentUser = UserProvider.getCurrent();
List<CaseListEntryDto> displayedEntries = getDisplayedEntries();
for (int i = 0, displayedEntriesSize = displayedEntries.size(); i < displayedEntriesSize; i++) {
final CaseListEntryDto caze = displayedEntries.get(i);
final CaseListEntry listEntry = new CaseListEntry(caze);
if (currentUser != null && currentUser.hasUserRight(UserRight.CASE_EDIT)) {
listEntry.addEditButton("edit-case-" + i, (Button.ClickListener) event -> ControllerProvider.getCaseController().navigateToCase(listEntry.getCaseListEntryDto().getUuid()));
}
listLayout.addComponent(listEntry);
}
}
Aggregations