-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from cabinetoffice/release/8.0
Release/8.0
- Loading branch information
Showing
14 changed files
with
251 additions
and
73 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
7 changes: 7 additions & 0 deletions
7
src/main/java/gov/cabinetofice/gapuserservice/dto/CreateTechSupportUserDto.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,7 @@ | ||
package gov.cabinetofice.gapuserservice.dto; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record CreateTechSupportUserDto(String userSub, String departmentName) { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/gov/cabinetofice/gapuserservice/dto/UpdateUserRolesRequestDto.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 gov.cabinetofice.gapuserservice.dto; | ||
|
||
import lombok.Builder; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
public record UpdateUserRolesRequestDto(Integer departmentId, List<Integer> newUserRoles) { | ||
} |
20 changes: 14 additions & 6 deletions
20
src/main/java/gov/cabinetofice/gapuserservice/model/RoleEnum.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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package gov.cabinetofice.gapuserservice.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum RoleEnum { | ||
SUPER_ADMIN, | ||
ADMIN, | ||
APPLICANT, | ||
FIND, | ||
TECHNICAL_SUPPORT, | ||
} | ||
SUPER_ADMIN(4), | ||
ADMIN(3), | ||
APPLICANT(2), | ||
FIND(1), | ||
TECHNICAL_SUPPORT(5), | ||
; | ||
|
||
final int roleId; | ||
} |
7 changes: 6 additions & 1 deletion
7
src/main/java/gov/cabinetofice/gapuserservice/repository/SpotlightOAuthAuditRepository.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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
package gov.cabinetofice.gapuserservice.repository; | ||
|
||
import gov.cabinetofice.gapuserservice.enums.SpotlightOAuthAuditStatus; | ||
import gov.cabinetofice.gapuserservice.model.SpotlightOAuthAudit; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Collection; | ||
|
||
@Repository | ||
public interface SpotlightOAuthAuditRepository extends JpaRepository<SpotlightOAuthAudit, Integer> { | ||
SpotlightOAuthAudit findFirstByOrderByIdDesc(); | ||
|
||
SpotlightOAuthAudit findFirstByStatusInOrderByIdDesc(Collection<SpotlightOAuthAuditStatus> statuses); | ||
|
||
} |
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.