Package com.centraview.common

Examples of com.centraview.common.ListGenerator


    int userId = userObject.getIndividualID();

    ListPreference listpreference = userObject.getListPreference("Project");
    int recordsPerPage = listpreference.getRecordsPerPage();

    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    ProjectList DL = ( ProjectList )lg.getProjectList(userId , 0,0 , "" ,"Name");
    DL.setTotalNoOfRecords( DL.size() );

    String searchStr = req.getParameter("simpleSearch");
    String saveSearchStr = req.getParameter("savedSearch");
View Full Code Here


      session.setAttribute("folderid", "" + folderid);

      EmailList DL = null;
      if (displaylist == null)
      {
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        DL = (EmailList)lg.getEmailList(individualID, 1, listpreference.getRecordsPerPage(), "", listpreference.getSortElement(),'D', folderid, true);
    }
      else
      {
        String searchSession = displaylistSession.getSearchString();
        String searchrequest = displaylist.getSearchString();

        if (searchSession == null)
        {
          searchSession = "";
        }
        if (searchrequest == null)
        {
          searchrequest = "";
        }

        if ((displaylistSession.getListID() == displaylist.getListID())
          && (displaylist.getDirtyFlag() == false)
          && (searchSession.equals(searchrequest))
          && (displaylist.getStartAT() >= displaylistSession.getBeginIndex())
          && (displaylist.getEndAT() <= displaylistSession.getEndIndex())
          && (displaylist.getSortMember().equals(displaylistSession.getSortMember())
          && (displaylist.getSortType() == (displaylistSession.getSortType()))
          && deleteFlag == null))
        {
          DL = (EmailList)displaylistSession;
        }
        else
        {
          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          DL = (EmailList)lg.getEmailList(individualID, displaylist, folderid, true);
        }
      }

      Set listkey = DL.keySet();
      Iterator it = listkey.iterator();
View Full Code Here

      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

        {
          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;
          Iterator itr = IL.keySet().iterator();
View Full Code Here

      DisplayList displaylist = (DisplayList) request.getAttribute("displaylist");
      ProjectList DL = null;

      if (displaylist == null)
      {
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        DL = (ProjectList) lg.getProjectList(userobjectd.getIndividualID(), 1,
            listpreference.getRecordsPerPage(), "", listpreference.getSortElement());
      } //end of if statement (displaylist == null)
      else
      {
        String searchSession = displaylistSession.getSearchString();
        String searchrequest = displaylist.getSearchString();

        if (searchSession == null)
        {
          searchSession = "";
        } //end of if statement (searchSession == null)

        if (searchrequest == null)
        {
          searchrequest = "";
        } //end of if statement (searchrequest == null)

        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 = (ProjectList) displaylistSession;
          request.setAttribute("displaylist", displaylistSession);
        }
        else
        {
          ListGenerator lg = ListGenerator.getListGenerator(dataSource);

          DL =(ProjectList) lg.getProjectList( userobjectd.getIndividualID(),displaylist);

          // DL =(ProjectList) lg.getProjectList(userobjectd.getIndividualID(), 1,
           //   listpreference.getRecordsPerPage(), "", listpreference.getSortElement());
        }
      } //end of else statement (displaylist == null)
View Full Code Here

      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

        /*   ADD item */
        else if (request.getParameter(AccountConstantKeys.TYPEOFOPERATION).equals(AccountConstantKeys.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

        itemLines.calculate();
        proposalListForm.setItemLines(itemLines);
      }else if ((typeOfOperation != null) && typeOfOperation.equals("ADDITEM")){
        String newItemID = request.getParameter("theitemid");
        ItemList IL = null ;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        IL = (ItemList)lg.getItemList(individualID, 1, 10, "", "ItemID");

        StringTokenizer st;
        String token, nextItr;

        if (newItemID != null) {
View Full Code Here

    int individualID = userObject.getIndividualID();

    if (button1 != null) //save & new
    {
      this.saveList(individualID, proposallistform);
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Proposal");
      request.setAttribute("saveandclose", "saveandclose");
      session.removeAttribute("proposallistform");
      return (mapping.findForward(".view.proposal.newproposal"));
    }
    else if (button != null) //Save & Close
    {
      this.saveList(individualID, proposallistform);
      // code to update list to reflect the changes
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Proposal");
      request.setAttribute("saveandnew", "saveandnew");
      session.removeAttribute("proposallistform");
      return (mapping.findForward(".view.proposal.newproposal"));
    }
    else
    {
      if (button2 == null)
      {
        request.setAttribute("openAddItem", new Boolean(true));
      }

      int listid = this.saveList(individualID, proposallistform);

      // code to update list to reflect the changes
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Proposal");
      request.setAttribute("save", "save");
      session.removeAttribute("proposallistform");
      proposallistform.setProposalid("" + listid);
      request.setAttribute("proposallistform", proposallistform);
      ActionForward am = new ActionForward(mapping.findForward(".view.proposal.editproposal").getPath() + "?eventid=" + listid);
View Full Code Here

      // (viewOperation.equalsIgnoreCase(ProposalConstantKeys.REMOVEITEM))
      else if (viewOperation.equalsIgnoreCase(ProposalConstantKeys.ADDITEM)) {

        String newItemID = request.getParameter("theitemid");
        ItemList IL = null;
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        IL = lg.getItemList(individualID, 1, 10, "", "ItemID");
        StringTokenizer st;
        String token, nextItr;

        if (newItemID != null) {
          st = new StringTokenizer(newItemID, ",");
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.