|
||||||||||
| 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()
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 |
| Method Detail |
|---|
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)
authorities - a List object.id - a Integer object.
Boolean deleteUserGroups(String username)
username - a String object.
List<Integer> getIdItemsAuthority(Integer id)
getIdItemsAuthority
id - a Integer object.
List object.List<AuthorityDTO> getGroupAuthorities(Integer id)
getGroupAuthorities
id - a Integer object.
List object.Boolean removeGroupFromAuthorities(Integer id)
removeGroupFromAuthorities
id - a Integer object.
Boolean object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||