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("没有更新的权限");
}
}