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
Fields Modifier and Type Field Description static String
CACHE_BY_SCOPE_NAMES
static String
CACHE_BY_SCOPE_NAMES_PERMISSIONS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
delete(PermissionScope entity)
void
deleteAll()
void
deleteAll(Iterable<? extends PermissionScope> entities)
void
deleteById(String id)
Collection<PermissionScope>
findAllByScopeNameIn(Collection<String> scopes)
Collection<PermissionScope>
findAllByScopeNameInAndPermissionIn(Collection<String> scopes, Collection<String> permissions)
<S extends PermissionScope>
Ssave(S entity)
<S extends PermissionScope>
Iterable<S>saveAll(Iterable<S> entities)
-
-
-
Field Detail
-
CACHE_BY_SCOPE_NAMES_PERMISSIONS
static final String CACHE_BY_SCOPE_NAMES_PERMISSIONS
- See Also:
- Constant Field Values
-
CACHE_BY_SCOPE_NAMES
static final String CACHE_BY_SCOPE_NAMES
- See Also:
- Constant Field Values
-
-
Method Detail
-
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>
-
-