Interface UserPermissionDAO
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserPermissionEntity,,Long> org.springframework.data.jpa.repository.JpaRepository<UserPermissionEntity,,Long> org.springframework.data.repository.ListCrudRepository<UserPermissionEntity,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<UserPermissionEntity,,Long> org.springframework.data.repository.PagingAndSortingRepository<UserPermissionEntity,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<UserPermissionEntity>,org.springframework.data.repository.Repository<UserPermissionEntity,Long>
@Repository
public interface UserPermissionDAO
extends org.springframework.data.jpa.repository.JpaRepository<UserPermissionEntity,Long>
Write-side access to
SOC_USER_PERMISSION, the source of truth kept in
sync with the organization service by
io.meeds.social.identity.permission.listener.-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByGroupId(String groupId) voiddeleteByUserName(String userName) voiddeleteByUserNameAndInheritedTrue(String userName) findByUserName(String userName) findByUserNameAndGroupIdAndMembershipType(String userName, String groupId, String membershipType) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByUserName
-
findByUserNameAndGroupIdAndMembershipType
Optional<UserPermissionEntity> findByUserNameAndGroupIdAndMembershipType(String userName, String groupId, String membershipType) -
deleteByUserName
-
deleteByUserNameAndInheritedTrue
-
deleteByGroupId
-