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 assign roles post api call to role assignment api and service c…
…lasses
- Loading branch information
1 parent
80f3b74
commit 4fd0b7e
Showing
9 changed files
with
182 additions
and
2 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
9 changes: 9 additions & 0 deletions
9
src/main/java/uk/gov/hmcts/reform/civil/ras/model/GrantType.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,9 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
public enum GrantType { | ||
BASIC, | ||
SPECIFIC, | ||
STANDARD, | ||
CHALLENGED, | ||
EXCLUDED | ||
} |
50 changes: 50 additions & 0 deletions
50
src/main/java/uk/gov/hmcts/reform/civil/ras/model/RoleAssignment.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,50 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.ZonedDateTime; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
@Builder | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@AllArgsConstructor | ||
public class RoleAssignment { | ||
|
||
private String id; | ||
|
||
@Builder.Default | ||
private String actorIdType = "IDAM"; | ||
|
||
private Map<String, Object> attributes; | ||
|
||
private List<String> authorisations; | ||
|
||
private List<String> notes; | ||
|
||
private ZonedDateTime beginTime; | ||
|
||
private ZonedDateTime endTime; | ||
|
||
private ZonedDateTime created; | ||
|
||
@Builder.Default | ||
private String status = "CREATE_REQUESTED"; | ||
|
||
@Builder.Default | ||
private String classification = "PUBLIC"; | ||
|
||
private String actorId; | ||
private GrantType grantType; | ||
private RoleCategory roleCategory; | ||
private String roleName; | ||
private RoleType roleType; | ||
private boolean readOnly; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/uk/gov/hmcts/reform/civil/ras/model/RoleAssignmentRequest.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,21 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.extern.jackson.Jacksonized; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@Jacksonized | ||
@AllArgsConstructor | ||
public class RoleAssignmentRequest { | ||
|
||
private List<RoleAssignment> requestedRoles; | ||
private RoleRequest roleRequest; | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/uk/gov/hmcts/reform/civil/ras/model/RoleCategory.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,12 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
public enum RoleCategory { | ||
JUDICIAL, | ||
LEGAL_OPERATIONS, | ||
ADMIN, | ||
PROFESSIONAL, | ||
CITIZEN, | ||
SYSTEM, | ||
OTHER_GOV_DEPT, | ||
CTSC | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/uk/gov/hmcts/reform/civil/ras/model/RoleRequest.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,19 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class RoleRequest { | ||
|
||
private String assignerId; | ||
|
||
@Builder.Default | ||
private String process = "fpl-case-service"; | ||
private String reference; | ||
|
||
@Builder.Default | ||
private boolean replaceExisting = false; | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/uk/gov/hmcts/reform/civil/ras/model/RoleType.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,6 @@ | ||
package uk.gov.hmcts.reform.civil.ras.model; | ||
|
||
public enum RoleType { | ||
CASE, | ||
ORGANISATION | ||
} |
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