@Override
public Set<String> findPermissions(Long[] roleIds) {
Set<Long> resourceIds = new HashSet<Long>();
for(Long roleId : roleIds) {
Role role = findOne(roleId);
if(role != null) {
resourceIds.addAll(role.getResourceIds());
}
}
return resourceService.findPermissions(resourceIds);
}