Package com.claymus.gwt

Examples of com.claymus.gwt.UserException


    if(accessLevel >= ModuleHelper.ADD_EDIT || (accessLevel == ModuleHelper.ADD && page.getCreator().equals(user))) {
      PageDTO pageDTO = page.getDTO();
      pageDTO.setLayouts(getLayouts());
      return pageDTO;
    } else {
      throw new UserException();
    }

  }
View Full Code Here


    Module module = ModuleData.getModule(ModuleHelper.class);
    User user = UserData.getUser();

    int accessLevel = module.getAccessLevel(user.getRole());
    if(accessLevel < ModuleHelper.ADD)
      throw new UserException();

    Page page = PageData.getPage(pageDTO.getUri());
    if(page != null)
      throw new ServerException("Page with uri " + "<a href='" + page.getUri() + "'>" + page.getUri() + "</a> already exists. Please enter a different uri.");
View Full Code Here

    int accessLevel = module.getAccessLevel(user.getRole());
    if(accessLevel >= ModuleHelper.ADD_EDIT || (accessLevel == ModuleHelper.ADD && page.getCreator().equals(user))) {
      if(PageData.updatePage(pageDTO) == null)
        throw new ServerException("Page could not be saved. Please try again.");
    } else {
      throw new UserException();
    }

  }
View Full Code Here

TOP

Related Classes of com.claymus.gwt.UserException

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.