Package com.founder.fix.fixflow.core.impl.identity

Examples of com.founder.fix.fixflow.core.impl.identity.GroupTo


      for (IdentityLink identityLinkQueryTo : identityLinkList) {
        String userId = identityLinkQueryTo.getUserId();
        if (userId == null) {
          String groupTypeId = identityLinkQueryTo.getGroupType();
          String groupId = identityLinkQueryTo.getGroupId();
          GroupTo groupTo = identityService.getGroup(groupId, groupTypeId);
          if (groupTo == null) {
            continue;
          }
          if(groupTosMap.get(groupTypeId)!=null){
            groupTosMap.get(groupTypeId).add(groupTo);
View Full Code Here


              return;
            }
          } else {
            String groupIdString = identityLink.getGroupId();
            String groupTypeString = identityLink.getGroupType();
            GroupTo groupTo = Authentication.findGroupByGroupIdAndType(groupIdString, groupTypeString);
            if (groupTo == null) {

            } else {

              // 这里是否需要验证一下组里边是否还有人?
View Full Code Here

  }
 
  public Map<String, Object> getGroupInfo(Map<String, Object> params) throws SQLException {
    Map<String,Object> result= new HashMap<String,Object>();
    String userId = StringUtil.getString(params.get("userId"));
    GroupTo group = null;
    String groupId = StringUtil.getString(params.get("viewGroupId"));
    String groupType = StringUtil.getString(params.get("viewGroupType"));
    ProcessEngine engine = getProcessEngine(userId);
    try{
      group = engine.getIdentityService().getGroup(groupId, groupType);
View Full Code Here

      for (IdentityLink identityLinkQueryTo : identityLinkQueryToList) {
        String userId = identityLinkQueryTo.getUserId();
        if (userId == null) {
          String groupTypeId = identityLinkQueryTo.getGroupType();
          String groupId = identityLinkQueryTo.getGroupId();
          GroupTo groupTo = identityService.getGroup(groupId,
              groupTypeId);
          if (groupTo == null) {
            continue;
          }
          if (groupTosMap.get(groupTypeId) != null) {
View Full Code Here

              }
            }
          } else {
            String groupIdString = identityLink.getGroupId();
            String groupTypeString = identityLink.getGroupType();
            GroupTo groupTo = Authentication.findGroupByGroupIdAndType(groupIdString, groupTypeString);
            if (groupTo != null) {

              for (GroupDefinition groupDefinition : groupDefinitions) {
                if (groupDefinition.getId().equals(groupTypeString)) {
                  List<UserTo> userTos = groupDefinition.findUserByGroupId(groupIdString);
View Full Code Here

  public boolean isUser() {
    return userId != null;
  }

  public GroupTo getGroup() {
    return new GroupTo(groupId, groupType);
  }
View Full Code Here

          return null;
        }
        if (dataObj.get(0).get(groupIdField) == null) {
          return null;
        }
        GroupTo groupTo = new GroupTo(groupId, StringUtil.getString(dataObj.get(0).get(groupNameField)), getId(), dataObj.get(0));
        cache.putCacheData(getId() + "_findGroupByGroupId_" + groupId, groupTo);
        return groupTo;
      } catch (Exception e) {
        e.printStackTrace();
        throw new FixFlowException("获取" + getGroupInfo().getGroupName() + "信息出错!", e);
View Full Code Here

      }
      List<Map<String, Object>> dataObj = sqlCommand.queryForList(sql, null);
      int count = Integer.parseInt(sqlCommand.queryForValue(countSql).toString());
      for(int i = 0;i<dataObj.size();i++){
        if (dataObj.get(0).get(groupIdField) != null) {
          GroupTo groupTo = new GroupTo(StringUtil.getString(dataObj.get(i).get(groupIdField)), StringUtil.getString(dataObj.get(i).get(groupNameField)), getId(), dataObj.get(i));
          resultList.add(groupTo);
        }
      }
      resultMap.put("groupList", resultList);
      resultMap.put("count", count);
View Full Code Here

            + userIdField + "=? AND USERTABLE."+groupIdField+" IS NOT NULL", objectParamWhere);
        if(dataObj.size()==0){
          return groupTos;
        }
        for (Map<String, Object> roleTo : dataObj) {
          GroupTo groupTo = new GroupTo(roleTo.get(groupIdField).toString(), StringUtil.getString(roleTo.get(this.getGroupInfo().getGroupNameField())), getId(),
              roleTo);
          groupTos.add(groupTo);
        }
        cache.putCacheData(getId() + "_findGroupMembersByUser_" + userId, groupTos);
        return groupTos;
View Full Code Here

        // 部门编号不能为空
        if (StringUtil.isNotEmpty(groupDbId)) {
          // 这里查询出来的结果集会带有父节点本身,父节点本身不需要再递归了。
          if (groupDbId.equals(groupId) && include) {
            // 父节点处理方式,不递归。
            GroupTo groupTo = new GroupTo(groupDbId, groupDbName, getId(), map);
            groupTos.add(groupTo);
          } else {
            if (StringUtil.isNotEmpty(supGroupDbId)) {
              if (supGroupDbId.equals(groupId)) {
                // 子节点处理方式,递归。
                GroupTo groupTo = new GroupTo(groupDbId, groupDbName, getId(), map);
                groupTos.add(groupTo);
                // 递归查找子部门
                findGroupSub(listMap, groupDbId, groupTos);
              }
            }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.identity.GroupTo

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.