Examples of IFaceBasicListService


Examples of it.eng.spago.dispatching.service.list.basic.IFaceBasicListService

    if ((message == null) || message.equalsIgnoreCase("BEGIN"))
      message = LIST_FIRST;
    String list_nocache = (String) request.getAttribute(LIST_NOCACHE);
    if (list_nocache == null)
      list_nocache = "FALSE";
    IFaceBasicListService listService = (IFaceBasicListService) service;
    if (message.equalsIgnoreCase(LIST_DELETE)) {
      listService.delete(request, response);
      message = LIST_PAGE;
      list_nocache = "TRUE";
    } // if (message.equalsIgnoreCase(LIST_DELETE))
    if ((listService.getList() == null) || list_nocache.equalsIgnoreCase("TRUE"))
      listService.setList(listService.getList(request, response));
    if (listService.getList() == null) {
      TracerSingleton.log(
        Constants.NOME_MODULO,
        TracerSingleton.WARNING,
        "KFDelegatedBasicListService::service: _list nullo");
      return;
    } // if (listService.getList() == null)
    int pagedListNumber = 1;
    if (message.equalsIgnoreCase(LIST_PAGE)) {
      String list_page = (String) request.getAttribute(LIST_PAGE);
      if (list_page == null)
        list_page = "1";
      try {
        pagedListNumber = Integer.parseInt(list_page);
      } // try
      catch (Exception ex) {
        TracerSingleton.log(
          Constants.NOME_MODULO,
          TracerSingleton.CRITICAL,
          "KFDelegatedBasicListService::service: Integer.parseInt(list_page)",
          ex);
      } // catch (Exception ex) try
    } // if (message.equalsIgnoreCase(LIST_PAGE))
    else if (message.equalsIgnoreCase(LIST_FIRST))
      pagedListNumber = 1;
    else if (message.equalsIgnoreCase(LIST_PREV))
      pagedListNumber = listService.getList().getPrevPage();
    else if (message.equalsIgnoreCase(LIST_NEXT))
      pagedListNumber = listService.getList().getNextPage();
    else if (message.equalsIgnoreCase(LIST_LAST))
      pagedListNumber = listService.getList().pages();
    else if (message.equalsIgnoreCase(LIST_CURRENT))
      pagedListNumber = listService.getList().getCurrentPage();
    TracerSingleton.log(
      Constants.NOME_MODULO,
      TracerSingleton.DEBUG,
      "KFDelegatedBasicListService::service: pagedListNumber [" + pagedListNumber + "]");
    listService.getList().clearDynamicData();
    listService.callback(request, response, listService.getList(), pagedListNumber);
    SourceBean pagedList = listService.getList().getPagedList(pagedListNumber);
    if (pagedList == null) {
      TracerSingleton.log(
        Constants.NOME_MODULO,
        TracerSingleton.WARNING,
        "KFDelegatedBasicListService::service: pagedList nullo");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.