Interface PermissionRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<PermissionScope,String>, org.springframework.data.repository.Repository<PermissionScope,String>

@Repository public interface PermissionRepository extends org.springframework.data.repository.CrudRepository<PermissionScope,String>
Author:
Jeff Fischer
  • Field Details

  • Method Details

    • findAllByScopeNameInAndPermissionIn

      @Cacheable(cacheNames="authCacheByScopeNamesPermissions", condition="@cacheStateManager.isEnabled(#root.caches, #root.args)") Collection<PermissionScope> findAllByScopeNameInAndPermissionIn(Collection<String> scopes, Collection<String> permissions)
    • findAllByScopeNameIn

      @Cacheable(cacheNames="authCacheByScopeNames", condition="@cacheStateManager.isEnabled(#root.caches, #root.args)") Collection<PermissionScope> findAllByScopeNameIn(Collection<String> scopes)
    • save

      @NonNull @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) <S extends PermissionScope> S save(@NonNull S entity)
      Specified by:
      save in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>
    • saveAll

      @NonNull @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) <S extends PermissionScope> Iterable<S> saveAll(@NonNull Iterable<S> entities)
      Specified by:
      saveAll in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>
    • deleteById

      @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteById(@NonNull String id)
      Specified by:
      deleteById in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>
    • delete

      @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void delete(@NonNull PermissionScope entity)
      Specified by:
      delete in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>
    • deleteAll

      @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteAll(@NonNull Iterable<? extends PermissionScope> entities)
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>
    • deleteAll

      @CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteAll()
      Specified by:
      deleteAll in interface org.springframework.data.repository.CrudRepository<PermissionScope,String>