Package com.taobao.zeus.web.platform.client.util

Examples of com.taobao.zeus.web.platform.client.util.GwtException


  @Override
  public void removeJobAdmin(String jobId, String uid)throws GwtException {
    try {
      permissionGroupManager.removeJobAdmin(LoginUser.getUser().getUid(),uid, jobId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here


  @Override
  public void transferOwner(String jobId, String uid) throws GwtException {
    try {
      permissionGroupManager.grantJobOwner(LoginUser.getUser().getUid(), uid, jobId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

  public void move(String jobId, String newGroupId) throws GwtException {
    try {
      permissionGroupManager.moveJob(LoginUser.getUser().getUid(), jobId, newGroupId);
    } catch (ZeusException e) {
      log.error("move",e);
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

    jd.setScript(script);
    try {
      permissionGroupManager.updateJob(LoginUser.getUser().getUid(), jd);
    } catch (ZeusException e) {
      log.error("syncScript",e);
      throw new GwtException("同步失败,可能是因为目标任务没有配置一些必填项。请去调度中心配置完整的必填项. cause:"+e.getMessage());
    }
  }
View Full Code Here

      boolean isDirectory) throws GwtException {
    try {
      GroupDescriptor gd=permissionGroupManager.createGroup(LoginUser.getUser().getUid(), groupName, parentGroupId, isDirectory);
      return gd.getId();
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

  @Override
  public void deleteGroup(String groupId) throws GwtException {
    try {
      permissionGroupManager.deleteGroup(LoginUser.getUser().getUid(), groupId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

   
   
    try {
      permissionGroupManager.updateGroup(LoginUser.getUser().getUid(), gd);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

  @Override
  public void addGroupAdmin(String groupId, String uid) throws GwtException {
    try {
      permissionGroupManager.addGroupAdmin(LoginUser.getUser().getUid(),uid, groupId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

  public void removeGroupAdmin(String groupId, String uid)
      throws GwtException {
    try {
      permissionGroupManager.removeGroupAdmin(LoginUser.getUser().getUid(),uid, groupId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

  @Override
  public void transferOwner(String groupId, String uid) throws GwtException {
    try {
      permissionGroupManager.grantGroupOwner(LoginUser.getUser().getUid(), uid, groupId);
    } catch (ZeusException e) {
      throw new GwtException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of com.taobao.zeus.web.platform.client.util.GwtException

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.