Skip to content

Commit

Permalink
Implementation of CRUD API for Access management APIs
Browse files Browse the repository at this point in the history
- Fixes issues which were causing failures when using with PostgreSQL
  • Loading branch information
istvan-nagy-epam committed Feb 21, 2024
1 parent e778924 commit 21360bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public enum PolicyType {
@Null( groups = OnCreate.class )
@NotNull( groups = OnUpdate.class )
@Id
@GeneratedValue( strategy = GenerationType.AUTO )
@GeneratedValue( strategy = GenerationType.SEQUENCE, generator = "ACCESS_RULE_SEQ")
@Column( name = "ID", nullable = false, updatable = false )
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ public List<BatchResultDto> saveBatch( List<Shell> shells ) {
} ).collect( Collectors.toList() );
}

@Transactional(readOnly = true)
public boolean hasAccessToShellWithVisibleSubmodelEndpoint( String endpointAddress, String externalSubjectId ) {
List<Shell> shells = shellRepository.findAllBySubmodelEndpointAddress( endpointAddress );
List<Shell> filtered = shellAccessHandler.filterListOfShellProperties( shells, externalSubjectId );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ databaseChangeLog:
nullable: false
validateNullable: true
autoIncrement: true
generationType: ALWAYS
startWith: 1
incrementBy: 50
- column:
Expand Down

0 comments on commit 21360bd

Please sign in to comment.