Examples of ZeusException


Examples of com.taobao.zeus.client.ZeusException

            thistime.add((JobProcesser)p);
          }
        }
        for(JobProcesser jp:thistime){
          if(jp.getJobId().equals(job.getId())){
            throw new ZeusException("不得将自身设置为自身的处理器");
          }
          boolean exist=false;
          for(JobProcesser jp2:hasadd){
            if(jp2.getId().equalsIgnoreCase(jp.getId())){
              exist=true;
              break;
            }
          }
          if(!exist && !hasJobPermission(user, jp.getJobId())){
            throw new ZeusException("您没有权限将Job:"+jp.getJobId() +" 添加到处理单元中");
          }
        }
        groupManager.updateJob(user, job);
      }
    }else{
      throw new ZeusException("没有更新的权限");
    }
   
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

      gb=gb.getParentGroupBean();
    }
    if(owners.contains(granter)){
      groupManager.grantGroupOwner(granter, uid, groupId);
    }else{
      throw new ZeusException("您无权操作");
    }
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

      gb=gb.getParentGroupBean();
    }
    if(owners.contains(granter)){
      groupManager.grantJobOwner(granter, uid, jobId);
    }else{
      throw new ZeusException("您无权操作");
    }
   
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  }
  public void addGroupAdmin(String granter,String user, String groupId) throws ZeusException {
    if(isGroupOwner(granter, groupId)){
      permissionManager.addGroupAdmin(user, groupId);
    }else{
      throw new ZeusException("您无权操作");
    }
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  }
  public void addJobAdmin(String granter,String user, String jobId) throws ZeusException {
    if(isJobOwner(granter, jobId)){
      permissionManager.addJobAdmin(user, jobId);
    }else{
      throw new ZeusException("您无权操作");
    }
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  }
  public void removeGroupAdmin(String granter,String user, String groupId) throws ZeusException {
    if(isGroupOwner(granter, groupId)){
      permissionManager.removeGroupAdmin(user, groupId);
    }else{
      throw new ZeusException("您无权操作");
    }
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  }
  public void removeJobAdmin(String granter,String user, String jobId) throws ZeusException {
    if(isJobOwner(granter, jobId)){
      permissionManager.removeJobAdmin(user, jobId);
    }else{
      throw new ZeusException("您无权操作");
    }
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  }
  @Override
  public void moveJob(String uid, String jobId, String groupId)
      throws ZeusException {
    if(!permissionManager.hasGroupPermission(uid, groupId) || !permissionManager.hasJobPermission(uid, jobId)){
      throw new ZeusException("您无权操作");
    }
    groupManager.moveJob(uid, jobId, groupId);
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

  @Override
  public void moveGroup(String uid, String groupId, String newParentGroupId)
      throws ZeusException {
    if(!permissionManager.hasGroupPermission(uid, groupId) ||
        !permissionManager.hasGroupPermission(uid, newParentGroupId)){
      throw new ZeusException("您无权操作");
    }
    groupManager.moveGroup(uid, groupId, newParentGroupId);
  }
View Full Code Here

Examples of com.taobao.zeus.client.ZeusException

    try {
      worker.updateJobFromWeb(jd.getId());
    } catch (Exception e) {
      String msg="创建Job成功,但是调度Job失败";
      log.error(msg,e);
      throw new ZeusException(msg,e);
    }
    return jd;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.