Package com.eatle.persistent.pojo.system.useradmin

Examples of com.eatle.persistent.pojo.system.useradmin.PrivTree


    return null;
  }

  private PrivTree findAllChildPrivs(Priv cur, PrivTree ptree, List<Priv> list)
  {
    PrivTree topTree = new PrivTree();
    topTree.setParent(ptree);
    topTree.setPriv(cur);

    List<PrivTree> temp = new ArrayList<PrivTree>();
    for (int i = 0; i < list.size(); i++)
    {
      Priv pri = list.get(i);
      if (cur.getId() == pri.getPid())
      {
        temp.add(findAllChildPrivs(pri, topTree, list));
      }
    }
    if (temp.size() == 0)
    {
      topTree.setChildPrivs(null);
    }
    else
    {
      topTree.setChildPrivs(temp);
    }
    return topTree;
  }
View Full Code Here


    StringBuilder sb = new StringBuilder("");
    if (topTree == null)
      return sb;
    for (int i = 0; i < topTree.size(); i++)
    {
      PrivTree pt = topTree.get(i);
      sb.append(outputStr(pt));
    }
    return sb;
  }
View Full Code Here

    StringBuilder sb = new StringBuilder("");
    if (topTree == null)
      return sb;
    for (int i = 0; i < topTree.size(); i++)
    {
      PrivTree pt = topTree.get(i);
      sb.append(outputStr(pt, hasPrivs));
    }
    return sb;
  }
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.system.useradmin.PrivTree

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.