Skip to content

Commit

Permalink
filter proband list by department - web tier
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Jun 16, 2024
1 parent b363f7e commit 35b8b4f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

import io.swagger.annotations.Api;

@Api(value="trial")
@Api(value = "trial")
@Path("/probandlistentry")
public class ProbandListEntryResource {

Expand Down Expand Up @@ -72,7 +72,8 @@ public ProbandListEntryOutVO getProbandListEntry(@PathParam("id") Long id) throw
@Produces({ MediaType.APPLICATION_JSON })
public Page<ProbandListEntryOutVO> getProbandListEntryList(@Context UriInfo uriInfo) throws AuthenticationException, AuthorisationException, ServiceException {
PSFUriPart psf;
return new Page<ProbandListEntryOutVO>(WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(auth, null, null, null, true, psf = new PSFUriPart(uriInfo)),
return new Page<ProbandListEntryOutVO>(
WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(auth, null, null, null, null, true, psf = new PSFUriPart(uriInfo)),
psf);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected Collection<ECRFFieldStatusEntryOutVO> getEagerResult(PSFVO psf) {
if (listEntryId != null) {
try {
return WebUtil.getServiceLocator().getTrialService()
.getEcrfFieldStatusEntryLog(WebUtil.getAuthentication(), queue, null, listEntryId, ecrfId, visitId, true, false, new PSFVO(INITIAL_PSF));
.getEcrfFieldStatusEntryLog(WebUtil.getAuthentication(), queue, null, null, listEntryId, ecrfId, visitId, true, false, new PSFVO(INITIAL_PSF));
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
WebUtil.publishException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ protected Collection<ProbandListEntryOutVO> getLazyResult(PSFVO psf) {
if (trialId != null || probandGroup != null || probandId != null) {
try {
if (probandGroup != null) {
return WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(WebUtil.getAuthentication(), null, probandGroup.getId(), null, total, psf);
return WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(WebUtil.getAuthentication(), null, null, probandGroup.getId(), null, total, psf);
} else {
return WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(WebUtil.getAuthentication(), trialId, null, probandId, total, psf);
return WebUtil.getServiceLocator().getTrialService().getProbandListEntryList(WebUtil.getAuthentication(), trialId, null, null, probandId, total, psf);
}
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected Collection<ECRFFieldStatusEntryOutVO> getLazyResult(PSFVO psf) {
return WebUtil
.getServiceLocator()
.getTrialService()
.getEcrfFieldStatusEntryLog(WebUtil.getAuthentication(), queue, trialId, null, null, null, true,
.getEcrfFieldStatusEntryLog(WebUtil.getAuthentication(), queue, trialId, null, null, null, null, true,
psf == null || CommonUtil.isEmptyString(psf.getSortField()),
psf);
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ protected Collection<MoneyTransferSummaryVO> getLazyResult(PSFVO psf) {
if (trialId != null) {
try {
return WebUtil.getServiceLocator().getTrialService()
.getProbandMoneyTransferNoParticipationSummaryList(WebUtil.getAuthentication(), trialId, null, null, paid, total, psf);
} catch (ServiceException|AuthorisationException|IllegalArgumentException e) {
.getProbandMoneyTransferNoParticipationSummaryList(WebUtil.getAuthentication(), trialId, null, null, null, paid, total, psf);
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
WebUtil.publishException(e);
}
Expand All @@ -37,7 +37,7 @@ protected Collection<MoneyTransferSummaryVO> getLazyResult(PSFVO psf) {
protected MoneyTransferSummaryVO getRowElement(Long id) {
try {
return WebUtil.getServiceLocator().getTrialService().getProbandMoneyTransferNoParticipationSummary(WebUtil.getAuthentication(), id, trialId, null, null, paid);
} catch (ServiceException|AuthorisationException|IllegalArgumentException e) {
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
WebUtil.publishException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public ProbandMoneyTransferSummaryLazyModel(boolean total) {
protected Collection<MoneyTransferSummaryVO> getLazyResult(PSFVO psf) {
if (trialId != null) {
try {
return WebUtil.getServiceLocator().getTrialService().getProbandMoneyTransferSummaryList(WebUtil.getAuthentication(), trialId, null, null, paid, total, psf);
} catch (ServiceException|AuthorisationException|IllegalArgumentException e) {
return WebUtil.getServiceLocator().getTrialService().getProbandMoneyTransferSummaryList(WebUtil.getAuthentication(), trialId, null, null, null, paid, total, psf);
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
WebUtil.publishException(e);
}
Expand All @@ -36,7 +36,7 @@ protected Collection<MoneyTransferSummaryVO> getLazyResult(PSFVO psf) {
protected MoneyTransferSummaryVO getRowElement(Long id) {
try {
return WebUtil.getServiceLocator().getTrialService().getProbandMoneyTransferSummary(WebUtil.getAuthentication(), id, null, null, paid);
} catch (ServiceException|AuthorisationException|IllegalArgumentException e) {
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
WebUtil.publishException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3291,7 +3291,7 @@ public static ProbandListEntryOutVO getProbandListEntry(Long probandListEntryId)
public static Long getProbandListEntryCount(Long trialId, Long probandId, boolean total) {
if (trialId != null || probandId != null) {
try {
return getServiceLocator().getTrialService().getProbandListEntryCount(getAuthentication(), trialId, null, probandId, total);
return getServiceLocator().getTrialService().getProbandListEntryCount(getAuthentication(), trialId, null, null, probandId, total);
} catch (ServiceException | AuthorisationException | IllegalArgumentException e) {
} catch (AuthenticationException e) {
publishException(e);
Expand Down

0 comments on commit 35b8b4f

Please sign in to comment.