org.opennms.acl.service
Interface AuthorityService

All Superinterfaces:
PagerService
All Known Implementing Classes:
AuthorityServiceImpl

public interface AuthorityService
extends PagerService

Since:
jdk 1.5.0
Author:
Massimiliano Dessì (desmax74@yahoo.it)

Method Summary
 List<AuthorityDTO> getAuthorities()
           
 List<AuthorityDTO> getAuthorities(Pager pager)
           
 Integer getAuthoritiesNumber()
           
 AuthorityDTO getAuthority(Integer 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 insertGroupAuthorities(Integer id, List<Integer> authorities)
          Insert a list of authorities assigned to a group
 boolean removeAuthority(Integer id)
           
 boolean save(AuthorityDTO authority)
          store an authority
 
Methods inherited from interface org.opennms.acl.service.PagerService
getTotalItemsNumber
 

Method Detail

save

boolean save(AuthorityDTO authority)
store an authority

Parameters:
authority -
Returns:
outcome of the store action

getAuthority

AuthorityDTO getAuthority(Integer id)
Parameters:
id -
Returns:
authority

removeAuthority

boolean removeAuthority(Integer id)
Parameters:
id -
Returns:
the result of removal

getAuthorities

List<AuthorityDTO> getAuthorities(Pager pager)
Parameters:
pager -
Returns:
paginated list authorities

getAuthorities

List<AuthorityDTO> getAuthorities()
Returns:
list of all authorities

getUserAuthorities

List<AuthorityDTO> getUserAuthorities(String username)
Parameters:
username -
Returns:
the list of user's authorities

getFreeAuthorities

List<AuthorityDTO> getFreeAuthorities(String username)
Parameters:
username -
Returns:
unallocated authorities

getFreeAuthoritiesForGroup

List<AuthorityDTO> getFreeAuthoritiesForGroup()
Parameters:
username -
Returns:
the list of authorities that Group doesn't have

getGroupAuthorities

List<AuthorityDTO> getGroupAuthorities(Integer id)
Parameters:
group - id
Returns:
the list of authorities that Group have

getIdItemsAuthority

List<Integer> getIdItemsAuthority(Integer id)
Parameters:
id -
Returns:
list of items id

getAuthoritiesNumber

Integer getAuthoritiesNumber()
Returns:
authorities number

insertGroupAuthorities

boolean insertGroupAuthorities(Integer id,
                               List<Integer> authorities)
Insert a list of authorities assigned to a group

Parameters:
username -
authorities -
Returns:
result of


Copyright © 2009. All Rights Reserved.