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

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


   * com.founder.fix.fixflow.service.FlowIdentityService#getUserTo(java.lang
   * .String)
   */
  public UserTo getUserTo(String userId) {
    ProcessEngine engine = null;
    UserTo userTo = null;
   
    try {
      engine = getProcessEngine(userId);
      userTo = engine.getIdentityService()
          .getUserTo(userId);
View Full Code Here


//          }
//        }
       
//        instances.put("icon", "icon/"+userId+"_small.png");
        if(StringUtil.isNotEmpty(userId)){
          UserTo user = identsvz.getUserTo(userId);
          if(user!=null){
            instances.put("userName", user.getUserName());
          }else{
            instances.put("userName", userId+"(未知用户)");
          }
        }else{
          instances.put("userName", "(空用户名)");
View Full Code Here

        ProcessDefinitionBehavior processDefinitionBehavior = engine.getModelService().getProcessDefinition(processDefinitionId);
        String processDefinitionName1 = processDefinitionBehavior.getName();
        persistentState.put("processDefinitionName", processDefinitionName1);
        String nowNodeInfo = flowUtil.getShareTaskNowNodeInfo(tmp.getId());
        persistentState.put("nowNodeInfo", nowNodeInfo);
        UserTo user = identityService.getUserTo(tmp.getStartAuthor());
        if(user !=null){
          persistentState.put("startAuthorName", user.getUserName());
        }else{
          persistentState.put("startAuthorName", tmp.getStartAuthor());
        }
        instanceMaps.add(persistentState);
      }
View Full Code Here

        String processDefinitionName = processDefinitionBehavior.getName();
        persistentState.put("processDefinitionName", processDefinitionName);
       
       
       
        UserTo user = identityService.getUserTo(tmp.getStartAuthor());
        if(user !=null){
          persistentState.put("startAuthorName", user.getUserName());
        }else{
          persistentState.put("startAuthorName", tmp.getStartAuthor());
        }
        instanceMaps.add(persistentState);
      }
View Full Code Here

        List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
        for(TaskInstance tmp:instances){
          Map<String,Object> instanceMap = tmp.getPersistentState();
          String assigneeUserId = tmp.getAssignee();
          if(StringUtil.isNotEmpty(assigneeUserId)){
            UserTo tmpUser = identityService.getUserTo(assigneeUserId);
            if(tmpUser!=null){
              instanceMap.put("assgneeUserName", tmpUser.getUserName());
            }
          }else{
            instanceMap.put("assgneeUserName", "(空用户名)");
          }
          instanceMaps.add(instanceMap);
        }
        tq.taskNotEnd().orderByTaskCreateTime().asc();
        List<TaskInstance> instancesNotEnd = tq.list();
       
        List<Map<String,Object>> notEndInstanceMaps = new ArrayList<Map<String,Object>>();
        for(TaskInstance tmp:instancesNotEnd){
          Map<String,Object> instanceMap = tmp.getPersistentState();
          String assigneeUserId = tmp.getAssignee();
          if(StringUtil.isNotEmpty(assigneeUserId)){
            UserTo tmpUser = identityService.getUserTo(assigneeUserId);
            if(tmpUser!=null){
              instanceMap.put("assgneeUserName", tmpUser.getUserName());
            }
          }else{
            instanceMap.put("assgneeUserName", "(空用户名)");
          }
          notEndInstanceMaps.add(instanceMap);
View Full Code Here

    return result;
  }
 
  public Map<String,Object> getUserInfo(Map<String,Object> filter) throws SQLException, IOException{
    Map<String,Object> result= new HashMap<String,Object>();
    UserTo user = null;
    String userId = (String) filter.get("userId");
    ProcessEngine engine = getProcessEngine(userId);
   
    String path = StringUtil.getString(filter.get("path"));
    path = path+"/icon/";
View Full Code Here

        Map<String,Object> taskMap = new HashMap<String,Object>();
        taskMap.put("taskId", task.getId());
        taskMap.put("taskName", task.getName());
        taskMap.put("startTime", task.getCreateTime());
        taskMap.put("endTime", task.getEndTime());
        UserTo user = identityService.getUserTo(task.getAssignee());
        taskMap.put("assignee", task.getAssignee());
        if(user !=null){
          taskMap.put("assigneeUserName", user.getUserName());
        }
        resultList.add(taskMap);
      }
    }finally{
      FixFlowShellProxy.closeProcessEngine(processEngine, true);
View Full Code Here

   
    for (Map<String, Object> map : listmMaps) {
      String userIdDataString=StringUtil.getString(map.get("USERID"));
     
      if(userIdDataString!=null&&!userIdDataString.equals("")){
        UserTo userTo=userDefinition.findUserByUserId(userIdDataString);
        userTos.add(userTo);
      }
     
     
    }
View Full Code Here

            groupTos.add(groupTo);
            groupTosMap.put(groupTypeId, groupTos);
          }
         
        } else {
          UserTo userTo=null;
          if (userId.equals("fixflow_allusers")) {
            userTo=new UserTo("fixflow_allusers", "所有人", null);
          } else {
            userTo= identityService.getUserTo(userId);
          }
          if(userTo!=null){
            userTos.add(userTo);
          }
        }
      }
      if(userTos.size()>0){
        String groupTypeName="";
        groupTypeName = "用户";
        taskInfo += "(共享 " + groupTypeName + " : ";
        for (int i = 0; i < userTos.size(); i++) {
          UserTo userTo=userTos.get(i);
          if(i==userTos.size()-1){
            taskInfo += userTo.getUserName();
          }
          else{
            taskInfo += userTo.getUserName()+",";
          }
        }
        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);
      String username = user.getUserName();
      username="<span title='"+username+"("+assignee+")'>"+username+"</span>";
      taskInfo = taskInfo + " (处理者 : " + username + ") ";
    }
    return taskInfo;
  }
View Full Code Here

      if(userTos.size()>y){
        userTos=userTos.subList(0, y);
        x=1;
      }
      for (int i = 0; i < userTos.size(); i++) {
        UserTo userTo=userTos.get(i);
        if(i==userTos.size()-1){
          nameList=nameList+userTo.getUserName()+"("+userTo.getUserId()+")";
        }
        else{
          nameList=nameList+userTo.getUserName()+"("+userTo.getUserId()+"),  ";
        }
      }
      if(x==1){
        nameList=nameList+" .......";
      }
View Full Code Here

TOP

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

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.