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

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


    this.childMembers=childMembers;
  }
 
  public List<UserTo> execute(CommandContext commandContext) {
   
    GroupDefinition groupDefinitionObj=null;
    List<GroupDefinition> groupDefinitions = Context.getProcessEngineConfiguration().getGroupDefinitions();
    for (GroupDefinition groupDefinition : groupDefinitions) {

      if (groupDefinition.getId().equals(this.groupType)) {
        groupDefinitionObj= groupDefinition;
        break;
      }

    }
    if(groupDefinitionObj==null){
      throw new FixFlowException("编号为: "+groupId+" 类型为: "+groupType+" 的组不存在");
    }
   
    if(childMembers){
      return groupDefinitionObj.findUserChildMembersIncludeByGroupId(groupId);
    }
    else{
      return groupDefinitionObj.findUserByGroupId(groupId);
    }
   

  }
View Full Code Here


        }
        taskInfo=taskInfo+")";
      }
      for (String groupToKey : groupTosMap.keySet()) {
        List<GroupTo> groupTos=groupTosMap.get(groupToKey);
        GroupDefinition groupDefinition = identityService.getGroupDefinition(groupToKey);
        String groupTypeName = "";
        groupTypeName = groupDefinition.getName();
        taskInfo += "(共享 " + groupTypeName + " : ";
        taskInfo += listToStr(groupTos, ",",groupDefinition) + ")";
      }
    } else {
      UserTo user = identityService.getUserTo(assignee);
View Full Code Here

          userTos.add(userTo);
        }
        else{
          if(identityLink.getGroupId()!=null){
           
            GroupDefinition groupDefinition=Authentication.groupDefinition(identityLink.getGroupType());
           
            List<UserTo> userToTemp= groupDefinition.findUserChildMembersIncludeByGroupId(identityLink.getGroupId());
           
            userTos.addAll(userToTemp);
           
           
          }
View Full Code Here

      String supId = StringUtil.getString(params.get("supId"));
      if(StringUtil.isNotEmpty(supId)){
        queryMap.put("SUPID", supId);
      }
     
      GroupDefinition groupDefinition = identityService.getGroupDefinition(groupType);
      Map<String,Object> map = groupDefinition.findGroups(new Page(firstResult,maxResults), queryMap);
      List<GroupTo> groupTos = (List<GroupTo>)map.get("groupList");
      List<Map<String,Object>> groupList = new ArrayList<Map<String,Object>>();
      int count = (Integer)map.get("count");
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count);
View Full Code Here

        }
        taskInfo = taskInfo + ")";
      }
      for (String groupToKey : groupTosMap.keySet()) {
        List<GroupTo> groupTos = groupTosMap.get(groupToKey);
        GroupDefinition groupDefinition = identityService.getGroupDefinition(groupToKey);
        String groupTypeName = "";
        groupTypeName = groupDefinition.getName();
        taskInfo += "(共享 " + groupTypeName + " : ";
        taskInfo += listToStr(groupTos, ",", groupDefinition) + ")";
      }
    } else {
      String username = getUsername(assignee,engine);
View Full Code Here

    groupInfos = fixFlowConfig.getDesignerOrgConfig().getGroupInfo();

    for (GroupInfo groupInfo : groupInfos) {

      GroupDefinition groupDefinition = (GroupDefinition) ReflectUtil.instantiate(groupInfo.getGroupDefinitionImpl());
      groupDefinition.setId(groupInfo.getGroupId());
      groupDefinition.setName(groupInfo.getGroupName());
      groupDefinition.setGroupInfo(groupInfo);
      groupDefinitions.add(groupDefinition);

    }

  }
View Full Code Here

        userIds.add(identityLinkEntity.getUserId());
      }

      if (identityLinkEntity.getGroupId() != null) {

        GroupDefinition groupDefinition = Authentication.groupDefinition(identityLinkEntity.getGroupType());

        List<UserTo> userTos = groupDefinition.findUserByGroupId(identityLinkEntity.getGroupId());
        if (userTos.size() > 1) {
          return;
        } else {
          if (userTos.size() == 1) {
            if (userIds.size() >= 1) {
View Full Code Here

TOP

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

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.