Package com.centraview.common

Examples of com.centraview.common.ListGenerator


      long idd = 0;
      if (listId != null)
        idd = Long.parseLong(listId);

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      DisplayList DL = lg.getDisplayList(idd);

      DisplayList displaylistSession = (DisplayList)session.getAttribute("displaylist");
      if ((displaylistSession != null) && (displaylistSession.getListID() == idd))
        displaylistSession.setDirtyFlag(true);
View Full Code Here


       
        ((OrderForm)form).setItemLines(itemLines);
      } else if (typeOfOperation != null && typeOfOperation.equals("ADDITEM")) {
        String newItemID = request.getParameter("theitemid");
        ItemList IL = null;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);      // get the List Generator object for Listing
        IL = (ItemList)lg.getItemList(individualID, 1, 10, "", "ItemID");   // called when the request for the list is for first time
       
        orderForm.convertArrayToItemLines();
        orderForm.convertFormbeanToValueObject("add");
       
        StringTokenizer st;
View Full Code Here

      /*  ADD item  */
      else if(typeOfOperation != null && typeOfOperation.equals("ADDITEM") )
      {
        String newItemID = request.getParameter("theitemid");
        ItemList IL = null ;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);//get the List Generator object for Listing
        IL = (ItemList )lg.getItemList( individualID , 1, 10 , "" , "ItemID");//called when the request for the list is for first time

        StringTokenizer st;
        String token, nextItr;
        if (newItemID != null)
        {
View Full Code Here

        catch( Exception e )
        {
        displaylist = null;
        }

        ListGenerator lg = ListGenerator.getListGenerator(dataSource);

        OrderList DL = null ;

        if( displaylist == null  )
        {
          int records = listpreference.getRecordsPerPage();//gets the initial record per page to be displayed from listPreference
          String sortelement = listpreference.getSortElement();//gets the initial sort element from listPreference
          DL = (OrderList )lg.getOrderList( individualID , 1, records , "" ,sortelement );//called when the request for the list is for first time
          DL = setLinksfunction( DL );
        }
        else //if(displaylistSession !=null)
        {
          String searchSession = displaylistSession.getSearchString();
          String searchrequest = displaylist.getSearchString();
          if(searchSession == null)
            searchSession = "";
          if(searchrequest == null)
            searchrequest = "";

          if (( (displaylistSession.getListID() == displaylist.getListID() ) && ( displaylist.getDirtyFlag() == false ) && ( displaylist.getStartAT() >= displaylistSession.getBeginIndex() ) && ( displaylist.getEndAT()<=displaylistSession.getEndIndex() ) && (displaylist.getSortMember().equals(displaylistSession.getSortMember() ) ) && (displaylist.getSortType()==(displaylistSession.getSortType()) && (searchSession.equals(searchrequest))  ) )|| displaylist.getAdvanceSearchFlag() == true)
          {
            DL = ( OrderList)displaylistSession ;
          }
          else
          {
            DL = ( OrderList)lg.getOrderList( individualID , displaylist );
          }
          DL = setLinksfunction( DL );
        }
        session.setAttribute( "displaylist" , DL );
        request.setAttribute("displaylist" , DL );
View Full Code Here

    }

    KnowledgebaseList DL = null;
    if (displaylist == null)
    {
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      int records = listpreference.getRecordsPerPage();
      String sortelement = listpreference.getSortElement();
      // If we are not coming from customer View List handler than we must have
      // to set the as false.
      // Otherwise true.
      boolean customerViewFlag = false;
      DL = (KnowledgebaseList)lg.getKnowledgebaseList(individualID, 1, records, "", sortelement, requestCategoryID, customerViewFlag);
      DL = setLinksfunction(DL);
      DL.setCurrentCategoryID(requestCategoryID);
    } else {
      String searchSession = displaylistSession.getSearchString();
      String searchrequest = displaylist.getSearchString();
      if (searchSession == null)
      {
        searchSession = "";
      }
      if (searchrequest == null)
      {
        searchrequest = "";
      }

      if (((displaylistSession.getCurrentCategoryID() == displaylist.getCurrentCategoryID()) && (displaylistSession.getListID() == displaylist.getListID()) && (displaylist.getDirtyFlag() == false) && (displaylist.getStartAT() >= displaylistSession.getBeginIndex()) && (displaylist.getEndAT() <= displaylistSession.getEndIndex())
          && (displaylist.getSortMember().equals(displaylistSession.getSortMember())) && (displaylist.getSortType() == (displaylistSession.getSortType()) && (searchSession.equals(searchrequest))))
          || displaylist.getAdvanceSearchFlag() == true)
      {
        DL = (KnowledgebaseList)displaylistSession;
        request.setAttribute("displaylist", displaylistSession);
      } else {
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        DL = (KnowledgebaseList)lg.getKnowledgebaseList(individualID, requestCategoryID, displaylist);
        DL.setCurrentCategoryID(requestCategoryID);
      }
      DL = setLinksfunction(DL);
    }
    session.setAttribute("displaylist", DL);
View Full Code Here

        startAt = sessionEmailList.getStartAT();
        endAt = sessionEmailList.getEndAT();
        sortType = sessionEmailList.getSortType();
      }

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      EmailList emailList = null;
     
      // If we are setting the Advance Search Flag to True means we already processed the List with Advance Search condition. So we don't need to get the list once again.
      if (sessionEmailList != null && sessionEmailList.getAdvanceSearchFlag() == true)
      {
        emailList = (EmailList) sessionEmailList;
      }else{
        emailList = (EmailList)lg.getEmailList(individualID, startAt, endAt, searchString, listPrefs.getSortElement(), sortType, folderID.intValue(),true);
      }

      Set listkey = emailList.keySet();
      Iterator it = listkey.iterator();
      while (it.hasNext())
View Full Code Here

            writer.print(record.get("pagerPhoneExt") + "\t");
            writer.print(record.get("mobilePhoneExt") + "\t");
            writer.print(record.get("notes") + "\n")// NOTE THE NEWLINE HERE!!!
          }   // end while (it.hasNext())  (individualList)

          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          lg.makeListDirty("Individual");
        }
      }else{
        // individual list was null. Something must have gone wrong.
        writer.print("FAIL: An unknown error occurred.");
        return(null);
View Full Code Here

        endAt = sessionRulesList.getEndAT();
        sortType = sessionRulesList.getSortType();
      }

      // now get the list from the ListGenerator
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      String searchString = "";

    RuleList rulesList = null;
      // If we are setting the Advance Search Flag to True means we already processed the List with Advance Search condition. So we don't need to get the list once again.
    if (sessionRulesList != null && sessionRulesList.getAdvanceSearchFlag() == true)
    {
      rulesList = (RuleList) sessionRulesList;
      }
      else{
          rulesList = (RuleList)lg.getRuleList(individualID, accountID.intValue(), startAt, endAt, searchString, listPrefs.getSortElement(),sortType);
    }

      Set keySet = rulesList.keySet();
      Iterator it =  keySet.iterator();
      while (it.hasNext())
View Full Code Here

      returnStatus = ".view.marketing.editlistmanager";
    }

    this.updateList(form, individualID);

    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    lg.makeListDirty("Marketing");
    dynaForm.initialize(mapping);

    return (mapping.findForward(returnStatus));
  }
View Full Code Here

          createdNewList = true;
        }
        else
        {
          //System.out.println("[DEBUG] [EventListHandler]: displaylist != displaylistSession.");
          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          DL = (EventList) lg.getEventList(individualID, displaylist);
          createdNewList = true;
        }
      }

      if (createdNewList)
View Full Code Here

TOP

Related Classes of com.centraview.common.ListGenerator

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.