@Override
 public Collection<RoleChart> getRoleCharts(
     final ComponentParameter cp, final TreeBean treeBean, final Department dept) {
   final IDataQuery<RoleChart> dq =
       dept == null ? _rolecService.queryGlobalCharts() : _rolecService.queryOrgCharts(dept);
   return DataQueryUtils.toList(dq);
 }
  public static Map<String, List<ProcessModelBean>> getProcessModelMap(final PageParameter pp) {
    final List<ProcessModelBean> models =
        DataQueryUtils.toList(
            wfpmService.getModelListByDomain(pp.getLDomainId(), EProcessModelStatus.deploy));
    wfpmService.sort(models);

    final Map<String, List<ProcessModelBean>> gmap =
        new LinkedHashMap<String, List<ProcessModelBean>>();
    for (final ProcessModelBean pm : models) {
      final String[] arr = StringUtils.split(pm.getModelText(), ".");
      final String key = arr.length > 1 ? arr[0] : CONST_OTHER;
      List<ProcessModelBean> list = gmap.get(key);
      if (list == null) {
        gmap.put(key, list = new ArrayList<ProcessModelBean>());
      }
      list.add(pm);
    }
    return gmap;
  }
 @Override
 public Collection<Department> getDepartments(
     final ComponentParameter cp, final TreeBean treeBean, final Department parent) {
   return DataQueryUtils.toList(
       _deptService.queryDepartments(parent, EDepartmentType.organization));
 }