Package com.sogou.qadev.service.cynthia.bean

Examples of com.sogou.qadev.service.cynthia.bean.Flow


    StringBuffer  returnXml = new StringBuffer();
    returnXml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>");

    UUID templateId = DataAccessFactory.getInstance().createUUID(templateIdStr);
    Template template = das.queryTemplate(templateId);
    Flow flow = das.queryFlow(template.getFlowId());
     
    Stat[] stats = flow.getStats();   //状态
    Set<Field> allFields = template.getFields();
   
    Timestamp startTimestamp = null;
    try {
      startTimestamp = new Timestamp(new SimpleDateFormat("yyyy-MM-dd").parse(java.sql.Date.valueOf(startTime).toLocaleString()).getTime());
View Full Code Here


    StringBuffer  returnXml = new StringBuffer();
    returnXml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?><root>");

    UUID templateId = DataAccessFactory.getInstance().createUUID(templateIdStr);
    Template template = das.queryTemplate(templateId);
    Flow flow = das.queryFlow(template.getFlowId());
     
    Stat[] stats = flow.getStats();   //状态
    Set<Field> allFields = template.getFields();
   
    Timestamp startTimestamp = null;
    try {
      startTimestamp = new Timestamp(new SimpleDateFormat("yyyy-MM-dd").parse(java.sql.Date.valueOf(startTime).toLocaleString()).getTime());
View Full Code Here

   
    if (field == null || template == null || option == null) {
      return resultMap;
    }
   
    Flow flow = das.queryFlow(template.getFlowId());
   
    Map<String, String> realStatMap = new HashMap<String, String>();
    for (Stat stat : flow.getStats()) {
      realStatMap.put(stat.getId().getValue(), stat.getName());
    }
   
    String fieldColName = FieldNameCache.getInstance().getFieldName(field.getId(), template.getId());
   
View Full Code Here

          continue;
        }

        if (allFlowMap.get(template.getFlowId()) == null) {
          Flow tmp = das.queryFlow(template.getFlowId());
          allFlowMap.put(template.getFlowId(), tmp);
        }
       
        Flow flow = allFlowMap.get(template.getFlowId());
       
        if(flow == null){
          templateAllowMap.put(template.getId(), false);
          continue;
        }

        Role[] roleArray = flow.queryUserNodeRoles(user, template.getId());
        if(roleArray != null && roleArray.length > 0){
          filterAllow = true;
          templateAllowMap.put(template.getId(), true);
          break;
        }

        if(flow.isActionEveryoneRole(Action.readUUID) || flow.isActionEveryoneRole(Action.editUUID)){
          filterAllow = true;
          templateAllowMap.put(template.getId(), true);
          break;
        }

        Action[] actionArray = flow.getActions();
        if(actionArray != null){
          for(Action action : actionArray){
            if(flow.isActionEveryoneRole(action.getId())){
              filterAllow = true;
              templateAllowMap.put(template.getId(), true);
              break;
            }
          }
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.bean.Flow

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.