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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(PermissionScope entity) void
void
deleteAll
(Iterable<? extends PermissionScope> entities) void
deleteById
(String id) findAllByScopeNameIn
(Collection<String> scopes) findAllByScopeNameInAndPermissionIn
(Collection<String> scopes, Collection<String> permissions) <S extends PermissionScope>
Ssave
(S entity) <S extends PermissionScope>
Iterable<S>Methods inherited from interface org.springframework.data.repository.CrudRepository
count, deleteAllById, existsById, findAll, findAllById, findById
-
Field Details
-
CACHE_BY_SCOPE_NAMES_PERMISSIONS
- See Also:
-
CACHE_BY_SCOPE_NAMES
- See Also:
-
-
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 interfaceorg.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 interfaceorg.springframework.data.repository.CrudRepository<PermissionScope,
String>
-
deleteById
@CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteById(@NonNull String id) - Specified by:
deleteById
in interfaceorg.springframework.data.repository.CrudRepository<PermissionScope,
String>
-
delete
@CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void delete(@NonNull PermissionScope entity) - Specified by:
delete
in interfaceorg.springframework.data.repository.CrudRepository<PermissionScope,
String>
-
deleteAll
@CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteAll(@NonNull Iterable<? extends PermissionScope> entities) - Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<PermissionScope,
String>
-
deleteAll
@CacheEvict(cacheNames={"authCacheByScopeNamesPermissions","authCacheByScopeNames"}) void deleteAll()- Specified by:
deleteAll
in interfaceorg.springframework.data.repository.CrudRepository<PermissionScope,
String>
-