Package com.jpoweredcart.common

Examples of com.jpoweredcart.common.PageParam


  private AttributeGroupAdminModel attributeGroupAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<AttributeGroup> attributeGroupList = attributeGroupAdminModel.getList(pageParam);
    model.addAttribute("attributeGroups", attributeGroupList);
   
    int total = attributeGroupAdminModel.getTotal();
    Pagination pagination = new Pagination();
View Full Code Here


  @Inject
  private LayoutAdminModel layoutAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
    PageParam pageParam = createPageParam(request);
    List<Information> infoList = informationAdminModel.getList(pageParam);
    model.addAttribute("informations", infoList);
   
    int total = informationAdminModel.getTotal();
    Pagination pagination = new Pagination();
View Full Code Here

  @Inject
  private MediaService mediaService;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
    PageParam pageParam = createPageParam(request);
    String separator = message(request, "text.separator");
    List<Category> infoList = categoryAdminModel.getList(separator, pageParam);
    model.addAttribute("categories", infoList);
   
    int total = categoryAdminModel.getTotal();
View Full Code Here

  private DownloadAdminModel downloadAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<Download> downloadList = downloadAdminModel.getList(pageParam);
    model.addAttribute("downloads", downloadList);
   
    int total = downloadAdminModel.getTotal();
    Pagination pagination = new Pagination();
View Full Code Here

  private AttributeGroupAdminModel attributeGroupAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<Attribute> attributeList = attributeAdminModel.getList(pageParam);
    model.addAttribute("attributes", attributeList);
   
    int total = attributeAdminModel.getTotal();
    Pagination pagination = new Pagination();
View Full Code Here

  @Inject
  private ReviewAdminModel reviewAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
    PageParam pageParam = createPageParam(request);
    List<Review> infoList = reviewAdminModel.getList(pageParam);
    model.addAttribute("reviews", infoList);
   
    int total = reviewAdminModel.getTotal();
    Pagination pagination = new Pagination();
View Full Code Here

  private LayoutAdminModel layoutAdminModel;
 
  @RequestMapping(value={"", "/"})
  public String index(Model model, HttpServletRequest request){
   
    PageParam pageParam = createPageParam(request);
    List<Layout> currencies = layoutAdminModel.getList(pageParam);
    model.addAttribute("layouts", currencies);
    int total = layoutAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
View Full Code Here

  }

  @Override
  public LengthClassForm newForm(){
    LengthClassForm lcForm = new LengthClassForm();
    List<Language> languages = languageAdminModel.getList(new PageParam());
    List<LengthClassDesc> descs = new ArrayList<LengthClassDesc>();
    for(Language language: languages){
      LengthClassDesc desc = new LengthClassDesc();
      desc.setLanguageId(language.getId());
      desc.setLanguageName(language.getName());
View Full Code Here

  public List<VoucherHistory> getHistories(Integer voucherId,
      int start, int limit) {
    String sql = "SELECT vh.order_id, o.firstname, o.lastname, vh.amount, vh.date_added FROM "+
      quoteTable("voucher_history")+" vh LEFT JOIN "+quoteTable("order")+
      " o ON (vh.order_id = o.order_id) WHERE vh.voucher_id =?";
    PageParam pageParam = PageParam.list(start, limit);
    pageParam.addOrder("vh.date_added", "ASC");
    QueryBean query = createPaginationQuery(sql, pageParam);
    return getJdbcOperations().query(query.getSql(), query.getParameters(),
      new VoucherHistoryRowMapper(){
      @Override
      public VoucherHistory mapRow(ResultSet rs, int rowNum)
View Full Code Here

TOP

Related Classes of com.jpoweredcart.common.PageParam

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.