Package com.claymus.gwt

Examples of com.claymus.gwt.ServerException


    Page page = PageData.getPage(pageDTO.getUri());

    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.ServerException

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.