org.opennms.acl.service
Interface AuthorityService

All Superinterfaces:
PagerService
All Known Implementing Classes:
AuthorityServiceImpl

public interface AuthorityService
extends PagerService

AuthorityService interface.

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

Method Summary
 List<AuthorityDTO> getAuthorities()
          getAuthorities
 List<AuthorityDTO> getAuthorities(Pager pager)
          getAuthorities
 Integer getAuthoritiesNumber()
          getAuthoritiesNumber
 AuthorityDTO getAuthority(Integer id)
          getAuthority
 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 insertGroupAuthorities(Integer id, List<Integer> authorities)
          Insert a list of authorities assigned to a group
 boolean removeAuthority(Integer id)
          removeAuthority
 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 - a AuthorityDTO object.
Returns:
outcome of the store action

getAuthority

AuthorityDTO getAuthority(Integer id)

getAuthority

Parameters:
id - a Integer object.
Returns:
authority

removeAuthority

boolean removeAuthority(Integer id)

removeAuthority

Parameters:
id - a Integer object.
Returns:
the result of removal

getAuthorities

List<AuthorityDTO> getAuthorities(Pager pager)

getAuthorities

Parameters:
pager - a Pager object.
Returns:
paginated list authorities

getAuthorities

List<AuthorityDTO> getAuthorities()

getAuthorities

Returns:
list of all authorities

getUserAuthorities

List<AuthorityDTO> getUserAuthorities(String username)

getUserAuthorities

Parameters:
username - a String object.
Returns:
the list of user's authorities

getFreeAuthorities

List<AuthorityDTO> getFreeAuthorities(String username)

getFreeAuthorities

Parameters:
username - a String object.
Returns:
unallocated authorities

getFreeAuthoritiesForGroup

List<AuthorityDTO> getFreeAuthoritiesForGroup()

getFreeAuthoritiesForGroup

Returns:
the list of authorities that Group doesn't have

getGroupAuthorities

List<AuthorityDTO> getGroupAuthorities(Integer id)

getGroupAuthorities

Parameters:
id - a Integer object.
Returns:
the list of authorities that Group have

getIdItemsAuthority

List<Integer> getIdItemsAuthority(Integer id)

getIdItemsAuthority

Parameters:
id - a Integer object.
Returns:
list of items id

getAuthoritiesNumber

Integer getAuthoritiesNumber()

getAuthoritiesNumber

Returns:
authorities number

insertGroupAuthorities

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

Parameters:
authorities - a List object.
id - a Integer object.
Returns:
result of


Copyright © 2011. All Rights Reserved.