@Service(value="nodesItemsService") public class AclNodeServiceImpl extends Object implements AclItemService
AclItemService
to use Node as ItemsConstructor and Description |
---|
AclNodeServiceImpl() |
Modifier and Type | Method and Description |
---|---|
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)
getAuthorityItems
|
List<?> |
getFreeItems(List<Integer> items)
getFreeItems
|
List<CategoryNodeONMSDTO> |
getItems()
getItems
|
void |
init()
init
|
void |
setAuthorityService(AuthorityService authorityService)
Setter for the field
authorityService . |
void |
setItemAclRepository(ItemAclRepository itemAclRepository)
Setter for the field
itemAclRepository . |
public void init()
init
public Boolean deleteAuthority(String authority)
deleteAuthority
in interface AclItemService
authority
- a String
object.Boolean
object.public List<CategoryNodeONMSDTO> getItems()
getItems
getItems
in interface AclItemService
List
object.public Set<Integer> getAclItems(Set<AuthorityView> authorities)
getAclItems
in interface AclItemService
authorities
- a Set
object.Set
object.public Boolean deleteItem(Integer id)
deleteItem
in interface AclItemService
id
- a Integer
object.Boolean
object.public List<?> getAuthorityItems(List<Integer> items)
getAuthorityItems
getAuthorityItems
in interface AclItemService
items
- a List
object.List
object.public List<?> getFreeItems(List<Integer> items)
getFreeItems
getFreeItems
in interface AclItemService
items
- a List
object.List
object.public void addAuthority(AuthorityDTO authority)
addAuthority
in interface AclItemService
authority
- a AuthorityDTO
object.@Autowired public void setItemAclRepository(@Qualifier(value="categoryNodeRepository") ItemAclRepository itemAclRepository)
Setter for the field itemAclRepository
.
itemAclRepository
- a ItemAclRepository
object.@Autowired public void setAuthorityService(AuthorityService authorityService)
Setter for the field authorityService
.
authorityService
- a AuthorityService
object.Copyright © 2015. All Rights Reserved.