org.opennms.acl.service
Class AclNodeServiceImpl

java.lang.Object
  extended by org.opennms.acl.service.AclNodeServiceImpl
All Implemented Interfaces:
AclItemService

@Service(value="nodesItemsService")
public class AclNodeServiceImpl
extends Object
implements AclItemService

Implementation class of AclItemService to use Node as Items

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

Constructor Summary
AclNodeServiceImpl()
           
 
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> items)
           
 List<?> getFreeItems(List<Integer> items)
           
 List<CategoryNodeONMSDTO> getItems()
           
 void init()
           
 void setAuthorityService(AuthorityService authorityService)
           
 void setItemAclRepository(ItemAclRepository itemAclRepository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclNodeServiceImpl

public AclNodeServiceImpl()
Method Detail

init

public void init()

deleteAuthority

public Boolean deleteAuthority(String authority)
Description copied from interface: AclItemService
delete an item

Specified by:
deleteAuthority in interface AclItemService

getItems

public List<CategoryNodeONMSDTO> getItems()
Specified by:
getItems in interface AclItemService
Returns:
all items

getAclItems

public Set<Integer> getAclItems(Set<AuthorityView> authorities)
Description copied from interface: AclItemService
the set of items permitted

Specified by:
getAclItems in interface AclItemService
Returns:

deleteItem

public Boolean deleteItem(Integer id)
Description copied from interface: AclItemService
delete an item

Specified by:
deleteItem in interface AclItemService

getAuthorityItems

public List<?> getAuthorityItems(List<Integer> items)
Specified by:
getAuthorityItems in interface AclItemService
Returns:

getFreeItems

public List<?> getFreeItems(List<Integer> items)
Specified by:
getFreeItems in interface AclItemService
Returns:

addAuthority

public void addAuthority(AuthorityDTO authority)
Description copied from interface: AclItemService
add an authority with its items

Specified by:
addAuthority in interface AclItemService

setItemAclRepository

public void setItemAclRepository(@Qualifier(value="categoryNodeRepository")
                                 ItemAclRepository itemAclRepository)

setAuthorityService

public void setAuthorityService(AuthorityService authorityService)


Copyright © 2009. All Rights Reserved.