-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backend support for Manage Users pagination (#8370)
* Add backend pagination support for manage users * Add paginated search backend * Add missing override annotation * Update unit tests * Handle zero users in org * Update unit test * Fix sonar issues * Move constants to resolver
- Loading branch information
Showing
10 changed files
with
350 additions
and
18 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
backend/src/main/java/gov/cdc/usds/simplereport/api/apiuser/ManageUsersPageWrapper.java
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package gov.cdc.usds.simplereport.api.apiuser; | ||
|
||
import gov.cdc.usds.simplereport.api.model.ApiUserWithStatus; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import org.springframework.data.domain.Page; | ||
|
||
/** | ||
* When the page content contains zero entries, this could be due to either: - zero search results | ||
* for the query string - OR due to zero users in the entire organization. The value for total users | ||
* in the org helps differentiate this. | ||
*/ | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class ManageUsersPageWrapper { | ||
|
||
Page<ApiUserWithStatus> pageContent; | ||
|
||
int totalUsersInOrg; | ||
} |
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.