org.opennms.acl.service
Interface AclItemService

All Known Implementing Classes:
AclCategoryNodeServiceImpl, AclNodeServiceImpl

public interface AclItemService

Contract to manage acl items

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

Method Summary
 void addAuthority(AuthorityDTO authority)
          add an authority with its items
 Boolean deleteAuthority(String authority)
          delete an item
 Boolean deleteItem(Integer id)
          delete an item
 Set<Integer> getAclItems(Set<AuthorityView> authorities)
          the set of items permitted
 List<?> getAuthorityItems(List<Integer> authorityItemsId)
          getAuthorityItems
 List<?> getFreeItems(List<Integer> authorityItemsID)
          getFreeItems
 List<?> getItems()
          getItems
 

Method Detail

getItems

List<?> getItems()

getItems

Returns:
all items

deleteItem

Boolean deleteItem(Integer id)
delete an item

Parameters:
id - a Integer object.
Returns:
a Boolean object.

deleteAuthority

Boolean deleteAuthority(String authority)
delete an item

Parameters:
authority - a String object.
Returns:
a Boolean object.

getAclItems

Set<Integer> getAclItems(Set<AuthorityView> authorities)
the set of items permitted

Parameters:
authorities - a Set object.
Returns:
a Set object.

getAuthorityItems

List<?> getAuthorityItems(List<Integer> authorityItemsId)

getAuthorityItems

Parameters:
authorityItemsId - a List object.
Returns:
a List object.

getFreeItems

List<?> getFreeItems(List<Integer> authorityItemsID)

getFreeItems

Parameters:
authorityItemsID - a List object.
Returns:
a List object.

addAuthority

void addAuthority(AuthorityDTO authority)
add an authority with its items

Parameters:
authority - a AuthorityDTO object.


Copyright © 2011. All Rights Reserved.