Ejemplo n.º 1
0
 @Override
 public List<TreeViewPath<AbilityFacade>> getPaths(AbilityFacade pobj) {
   List<TreeViewPath<AbilityFacade>> list = new ArrayList<TreeViewPath<AbilityFacade>>();
   List<String> types = pobj.getTypes();
   if (types.isEmpty()) {
     list.add((new TreeViewPath<AbilityFacade>(pobj)));
   } else {
     for (String type : types) {
       list.add(new TreeViewPath<AbilityFacade>(pobj, type));
     }
   }
   return list;
 }
Ejemplo n.º 2
0
 @Override
 public List<TreeViewPath<AbilityFacade>> getPaths(AbilityFacade pobj) {
   return Collections.singletonList(
       new TreeViewPath<AbilityFacade>(pobj, pobj.getSourceForNodeDisplay()));
 }