|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AuthorityRepository
Contract to insert/update/read/delete the authorities
| Method Summary | |
|---|---|
Boolean |
deleteUserGroups(String username)
Delete all user's groups |
List<AuthorityDTO> |
getAuthorities()
|
List<AuthorityDTO> |
getAuthorities(Pager pager)
|
Integer |
getAuthoritiesNumber()
|
AuthorityDTO |
getAuthority(Integer id)
Retrieve an authority by id |
List<AuthorityDTO> |
getFreeAuthorities(String username)
|
List<AuthorityDTO> |
getFreeAuthoritiesForGroup()
|
List<AuthorityDTO> |
getGroupAuthorities(Integer id)
|
List<Integer> |
getIdItemsAuthority(Integer id)
|
List<AuthorityDTO> |
getUserAuthorities(String username)
|
Boolean |
removeAuthority(Integer id)
Remove an authority by id |
Boolean |
removeGroupFromAuthorities(Integer id)
|
Boolean |
save(AuthorityDTO authority)
Save an authorityDTO |
Boolean |
saveAuthorities(Integer id,
List<Integer> authorities)
Save a list of authorities for a given group |
| Method Detail |
|---|
Boolean save(AuthorityDTO authority)
authority -
AuthorityDTO getAuthority(Integer id)
id -
Boolean removeAuthority(Integer id)
id -
List<AuthorityDTO> getAuthorities(Pager pager)
pager -
List<AuthorityDTO> getAuthorities()
Integer getAuthoritiesNumber()
List<AuthorityDTO> getUserAuthorities(String username)
username -
List<AuthorityDTO> getFreeAuthorities(String username)
username -
List<AuthorityDTO> getFreeAuthoritiesForGroup()
username -
Boolean saveAuthorities(Integer id,
List<Integer> authorities)
username - authorities -
Boolean deleteUserGroups(String username)
username -
List<Integer> getIdItemsAuthority(Integer id)
id -
List<AuthorityDTO> getGroupAuthorities(Integer id)
Boolean removeGroupFromAuthorities(Integer id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||