@Override public List<Integer> getOrganizationProfiles(int organizationId) { if (!authService.isUserAuthorized(ROLE_CURATOR, organizationId)) { throw new NotAuthorizedException(); } return profilePersister.getProfileIdsForOrganization(organizationId); }