public interface AuthorityRepository
Modifier and Type | Method and Description |
---|---|
Boolean |
deleteUserGroups(String username)
Delete all user's groups
|
List<AuthorityDTO> |
getAuthorities()
getAuthorities
|
List<AuthorityDTO> |
getAuthorities(Pager pager)
getAuthorities
|
Integer |
getAuthoritiesNumber()
getAuthoritiesNumber
|
AuthorityDTO |
getAuthority(Integer id)
Retrieve an authority by id
|
List<AuthorityDTO> |
getFreeAuthorities(String username)
getFreeAuthorities
|
List<AuthorityDTO> |
getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup
|
List<AuthorityDTO> |
getGroupAuthorities(Integer id)
getGroupAuthorities
|
List<Integer> |
getIdItemsAuthority(Integer id)
getIdItemsAuthority
|
List<AuthorityDTO> |
getUserAuthorities(String username)
getUserAuthorities
|
Boolean |
removeAuthority(Integer id)
Remove an authority by id
|
Boolean |
removeGroupFromAuthorities(Integer id)
removeGroupFromAuthorities
|
Boolean |
save(AuthorityDTO authority)
Save an authorityDTO
|
Boolean |
saveAuthorities(Integer id,
List<Integer> authorities)
Save a list of authorities for a given group
|
Boolean save(AuthorityDTO authority)
authority
- a AuthorityDTO
object.AuthorityDTO getAuthority(Integer id)
id
- a Integer
object.Boolean removeAuthority(Integer id)
id
- a Integer
object.List<AuthorityDTO> getAuthorities(Pager pager)
getAuthorities
pager
- a Pager
object.List<AuthorityDTO> getAuthorities()
getAuthorities
Integer getAuthoritiesNumber()
getAuthoritiesNumber
List<AuthorityDTO> getUserAuthorities(String username)
getUserAuthorities
username
- a String
object.List<AuthorityDTO> getFreeAuthorities(String username)
getFreeAuthorities
username
- a String
object.List<AuthorityDTO> getFreeAuthoritiesForGroup()
getFreeAuthoritiesForGroup
Boolean saveAuthorities(Integer id, List<Integer> authorities)
Boolean deleteUserGroups(String username)
username
- a String
object.List<AuthorityDTO> getGroupAuthorities(Integer id)
getGroupAuthorities
Copyright © 2015. All Rights Reserved.