-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use UID in enrollment exporter [DHIS2-17790] (#18898)
* chore: Use UID in enrollment exporter [DHIS2-17790] * Fix review comments
- Loading branch information
1 parent
e1ef244
commit b936071
Showing
29 changed files
with
201 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,13 +37,13 @@ | |
import lombok.experimental.Accessors; | ||
import org.hisp.dhis.common.OrganisationUnitSelectionMode; | ||
import org.hisp.dhis.common.SortDirection; | ||
import org.hisp.dhis.common.UID; | ||
import org.hisp.dhis.organisationunit.OrganisationUnit; | ||
import org.hisp.dhis.program.EnrollmentStatus; | ||
import org.hisp.dhis.program.Program; | ||
import org.hisp.dhis.trackedentity.TrackedEntity; | ||
import org.hisp.dhis.trackedentity.TrackedEntityType; | ||
import org.hisp.dhis.tracker.export.Order; | ||
import org.hisp.dhis.user.User; | ||
|
||
/** | ||
* @author Morten Olav Hansen <[email protected]> | ||
|
@@ -53,7 +53,7 @@ | |
class EnrollmentQueryParams { | ||
|
||
/** Set of enrollment uids to explicitly select. */ | ||
private Set<String> enrollmentUids = new HashSet<>(); | ||
private Set<UID> enrollments = new HashSet<>(); | ||
|
||
/** Last updated for enrollment. */ | ||
private Date lastUpdated; | ||
|
@@ -95,13 +95,6 @@ class EnrollmentQueryParams { | |
|
||
private List<Order> order; | ||
|
||
// ------------------------------------------------------------------------- | ||
// Transient properties | ||
// ------------------------------------------------------------------------- | ||
|
||
/** Current user for query. */ | ||
private transient User user; | ||
|
||
// ------------------------------------------------------------------------- | ||
// Constructors | ||
// ------------------------------------------------------------------------- | ||
|
@@ -175,7 +168,7 @@ public boolean hasTrackedEntity() { | |
} | ||
|
||
public boolean hasEnrollmentUids() { | ||
return isNotEmpty(this.enrollmentUids); | ||
return isNotEmpty(this.enrollments); | ||
} | ||
|
||
/** Indicates whether this params is of the given organisation unit mode. */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.