Package com.claymus.site.module.page.pages.gwt

Examples of com.claymus.site.module.page.pages.gwt.PageDTO


    User user = UserData.getUser();
    Page page = PageData.getPage(KeyFactory.stringToKey(encoded));

    int accessLevel = module.getAccessLevel(user.getRole());
    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


    return user == null ? UserData.getSystem() : user;
  }


  public PageDTO getDTO() {
    PageDTO pageDTO = new PageDTO();
    pageDTO.setUri(getUri());
    pageDTO.setTitle(getTitle());
    pageDTO.setLayout(getLayout().getClass().getSimpleName());
    return pageDTO;
  }
View Full Code Here

TOP

Related Classes of com.claymus.site.module.page.pages.gwt.PageDTO

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.