Skip to content

Commit

Permalink
kopfdatenRepo overrided saveAll, testAuthorities dementsprechend ange…
Browse files Browse the repository at this point in the history
…passt
  • Loading branch information
GerhardPx committed Nov 13, 2024
1 parent e6957e2 commit 2e417be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public interface KopfdatenRepository extends CrudRepository<Kopfdaten, BezirkUnd
@PreAuthorize("hasAuthority('Basisdaten_WRITE_Kopfdaten')")
<S extends Kopfdaten> S save(S kopfdaten);

@Override
@PreAuthorize("hasAuthority('Basisdaten_WRITE_Kopfdaten')")
<S extends Kopfdaten> Iterable<S> saveAll(Iterable<S> iterable);

@Override
@CacheEvict(value = CACHE, key = "#p0")
@PreAuthorize("hasAuthority('Basisdaten_DELETE_Kopfdaten')")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class Authorities {
public static final String S2S_INFOMANAGEMENT_REPOSITORY_WRITE_KONFIGURIERTERWAHLTAG = "Infomanagement_WRITE_KonfigurierterWahltag";
public static final String S2S_INFOMANAGEMENT_REPOSITORY_DELETE_KONFIGURIERTERWAHLTAG = "Infomanagement_DELETE_KonfigurierterWahltag";

public static final String[] ALL_AUTHORITIES_GET_WAHLVORSCHLAEGE = new String[] {
public static final String[] ALL_AUTHORITIES_GET_WAHLVORSCHLAEGE = new String[]{
SERVICE_GET_WAHLVORSCHLAEGE,
REPOSITORY_READ_WAHLVORSCHLAEGE,
REPOSITORY_WRITE_WAHLVORSCHLAEGE,
Expand Down Expand Up @@ -208,7 +208,7 @@ public class Authorities {

REPOSITORY_WRITE_WAHL,
REPOSITORY_WRITE_WAHLBEZIRK,
REPOSITORY_READ_KOPFDATEN
REPOSITORY_WRITE_KOPFDATEN
};

public static final String[] ALL_AUTHORITIES_PUT_WAHLTERMINDATEN_THAT_GOT_CATCHED_ON_MISSING = {
Expand Down

0 comments on commit 2e417be

Please sign in to comment.