Skip to content

Commit e242a3f

Browse files
Upgrade to powsybl-parent-ws 10 (#10)
Signed-off-by: Franck LECUYER <[email protected]>
1 parent 825ed92 commit e242a3f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<parent>
1616
<groupId>com.powsybl</groupId>
1717
<artifactId>powsybl-parent-ws</artifactId>
18-
<version>8</version>
18+
<version>10</version>
1919
<relativePath/>
2020
</parent>
2121

src/main/java/org/gridsuite/useradmin/server/UserAdminController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public ResponseEntity<Void> deleteUser(@PathVariable("id") UUID id, @RequestHead
5959
@RequestMapping(value = "/users/{sub}", method = RequestMethod.HEAD)
6060
@Operation(summary = "Test if a sub exists")
6161
@ApiResponses(value = {
62-
@ApiResponse(responseCode = "200", description = "sub exists"),
63-
@ApiResponse(responseCode = "204", description = "sub does not exist"),
62+
@ApiResponse(responseCode = "200", description = "sub exists"),
63+
@ApiResponse(responseCode = "204", description = "sub does not exist"),
6464
})
6565
public ResponseEntity<Void> userExists(@PathVariable("sub") String sub) {
6666
return service.subExists(sub) ? ResponseEntity.ok().build() : ResponseEntity.noContent().build();

src/main/java/org/gridsuite/useradmin/server/repository/ConnectionEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public class ConnectionEntity {
3333
@Column(name = "sub", nullable = false)
3434
private String sub;
3535

36-
@Column(name = "firstConnexionDate", nullable = false)
36+
@Column(name = "firstConnexionDate", nullable = false)
3737
private LocalDateTime firstConnexionDate;
3838

39-
@Column(name = "lastConnexionDate", nullable = false)
39+
@Column(name = "lastConnexionDate", nullable = false)
4040
private LocalDateTime lastConnexionDate;
4141

4242
@Column(name = "connectionAccepted", nullable = false)

src/main/java/org/gridsuite/useradmin/server/service/ConnectionsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ConnectionsService(ConnectionRepository connectionRepository) {
3131

3232
@Transactional
3333
public void recordConnectionAttempt(String sub, Boolean isAllowed) {
34-
ConnectionEntity connectionEntity = connectionRepository.findBySub(sub).stream().findFirst().orElse(null);
34+
ConnectionEntity connectionEntity = connectionRepository.findBySub(sub).stream().findFirst().orElse(null);
3535
if (connectionEntity == null) {
3636
connectionEntity = new ConnectionEntity(sub, LocalDateTime.now(), LocalDateTime.now(), isAllowed);
3737
connectionRepository.save(connectionEntity);

0 commit comments

Comments
 (0)