@@ -162,7 +162,7 @@ public ConceptSetDTO getConceptSet(@PathParam("id") final int id) {
162
162
@ GET
163
163
@ Path ("/" )
164
164
@ Produces (MediaType .APPLICATION_JSON )
165
- @ Cacheable (cacheNames = ConceptSetService .CachingSetup .CONCEPT_SET_LIST_CACHE , key = "@permissionService.getAssetListCacheKey ()" )
165
+ @ Cacheable (cacheNames = ConceptSetService .CachingSetup .CONCEPT_SET_LIST_CACHE , key = "@permissionService.getSubjectCacheKey ()" )
166
166
public Collection <ConceptSetDTO > getConceptSets () {
167
167
return getTransactionTemplate ().execute (
168
168
transactionStatus -> StreamSupport .stream (getConceptSetRepository ().findAll ().spliterator (), false )
@@ -481,7 +481,7 @@ public Response exportConceptSetToCSV(@PathParam("id") final String id) throws E
481
481
@ POST
482
482
@ Consumes (MediaType .APPLICATION_JSON )
483
483
@ Produces (MediaType .APPLICATION_JSON )
484
- @ CacheEvict (cacheNames = CachingSetup .CONCEPT_SET_LIST_CACHE , allEntries = true )
484
+ @ CacheEvict (cacheNames = CachingSetup .CONCEPT_SET_LIST_CACHE , allEntries = true )
485
485
public ConceptSetDTO createConceptSet (ConceptSetDTO conceptSetDTO ) {
486
486
487
487
UserEntity user = userRepository .findByLogin (security .getSubject ());
@@ -609,6 +609,7 @@ public Collection<ConceptSetGenerationInfo> getConceptSetGenerationInfo(@PathPar
609
609
@ DELETE
610
610
@ Transactional (rollbackOn = Exception .class , dontRollbackOn = EmptyResultDataAccessException .class )
611
611
@ Path ("{id}" )
612
+ @ CacheEvict (cacheNames = CachingSetup .CONCEPT_SET_LIST_CACHE , allEntries = true )
612
613
public void deleteConceptSet (@ PathParam ("id" ) final int id ) {
613
614
// Remove any generation info
614
615
try {
@@ -656,6 +657,7 @@ public void deleteConceptSet(@PathParam("id") final int id) {
656
657
@ Produces (MediaType .APPLICATION_JSON )
657
658
@ Path ("/{id}/tag/" )
658
659
@ Transactional
660
+ @ CacheEvict (cacheNames = CachingSetup .CONCEPT_SET_LIST_CACHE , allEntries = true )
659
661
public void assignTag (@ PathParam ("id" ) final Integer id , final int tagId ) {
660
662
ConceptSet entity = getConceptSetRepository ().findById (id );
661
663
checkOwnerOrAdminOrGranted (entity );
0 commit comments