Class WarlockPermServiceImpl.Caching
-
- All Implemented Interfaces:
@CacheConfig(cacheNames = "service~WarlockPermService!", cacheManager = "MemoryCacheManager") public class WarlockPermServiceImpl.Caching- Since:
2021-03-07
trydofor
-
-
Constructor Summary
Constructors Constructor Description WarlockPermServiceImpl.Caching()
-
Method Summary
Modifier and Type Method Description Map<Long, String>loadPermAll()booleanevictPermAllCache(@Nullable() TableChangeEvent event)Async evict all cache, event can be null voidcreate(@NotNull() String scopes, @NotNull() Collection<WarlockPermService.Act> acts)voidmodify(long permId, @NotNull() String remark)voidsetWinPermEntryDao(WinPermEntryDao winPermEntryDao)voidsetLightIdService(LightIdService lightIdService)voidsetJournalService(JournalService journalService)voidsetWingsTableCudHandler(WingsTableCudHandler wingsTableCudHandler)-
-
Method Detail
-
loadPermAll
@Cacheable() Map<Long, String> loadPermAll()
-
evictPermAllCache
@EventListener()@CacheEvict(allEntries = true, condition = "#result") boolean evictPermAllCache(@Nullable() TableChangeEvent event)
Async evict all cache, event can be null
-
create
void create(@NotNull() String scopes, @NotNull() Collection<WarlockPermService.Act> acts)
-
setWinPermEntryDao
@Autowired() void setWinPermEntryDao(WinPermEntryDao winPermEntryDao)
-
setLightIdService
@Autowired() void setLightIdService(LightIdService lightIdService)
-
setJournalService
@Autowired() void setJournalService(JournalService journalService)
-
setWingsTableCudHandler
@Autowired() void setWingsTableCudHandler(WingsTableCudHandler wingsTableCudHandler)
-
-
-
-