generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new role assignments query call/models and implemented retrievi…
…ng role assignments, including labels, for a user in RoleAssignmentService
- Loading branch information
1 parent
5af37bb
commit 2ab3c6d
Showing
5 changed files
with
124 additions
and
8 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
43 changes: 43 additions & 0 deletions
43
src/main/java/uk/gov/hmcts/reform/civil/ras/model/QueryRequest.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,43 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.Singular; | ||
import lombok.Value; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Value | ||
@Builder | ||
@AllArgsConstructor | ||
@Getter | ||
public class QueryRequest { | ||
|
||
@Singular("actorId") | ||
private final List<String> actorId; | ||
@Singular("roleType") | ||
private final List<String> roleType; | ||
@Singular("roleName") | ||
private final List<String> roleName; | ||
@Singular("classification") | ||
private final List<String> classification; | ||
@Singular("grantType") | ||
private final List<String> grantType; | ||
|
||
private LocalDateTime validAt; | ||
@Singular("roleCategory") | ||
private final List<String> roleCategory; | ||
|
||
private Map<String, List<String>> attributes; | ||
@Singular("authorisations") | ||
private final List<String> authorisations; | ||
|
||
@Singular("hasAttributes") | ||
private final List<String> hasAttributes; | ||
|
||
private Boolean readOnly; | ||
|
||
} |
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