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
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)
           
 List<?> getFreeItems(List<Integer> authorityItemsID)
           
 List<?> getItems()
           
 

Method Detail

getItems

List<?> getItems()
Returns:
all items

deleteItem

Boolean deleteItem(Integer id)
delete an item

Parameters:
id -

deleteAuthority

Boolean deleteAuthority(String authority)
delete an item

Parameters:
id -

getAclItems

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

Parameters:
role -
Returns:

getAuthorityItems

List<?> getAuthorityItems(List<Integer> authorityItemsId)
Parameters:
authorityItemsID -
Returns:

getFreeItems

List<?> getFreeItems(List<Integer> authorityItemsID)
Parameters:
authorityItemsID -
Returns:

addAuthority

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

Parameters:
authority -


Copyright © 2009. All Rights Reserved.