Package com.centraview.common

Examples of com.centraview.common.ListGenerator


        {
          DL = (GLAccountList) displaylistSession;
        }
        else
        {
          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          DL = ( GLAccountList )lg.getGLAccountList( individualID , displaylist );
        }
        DL = setLinksfunction( DL );
      }// end of else for if( displaylist == null  )

      session.setAttribute( "displaylist" , DL );
View Full Code Here


      UserObject userObject = (UserObject)session.getAttribute("userobject");

      int individualId = userObject.getIndividualID();

      ListPreference listpreference = userObject.getListPreference("EventAtendees");
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      int records = listpreference.getRecordsPerPage();
      String sortelement = listpreference.getSortElement();

      EventAtendeesList dl = new EventAtendeesList();
      dl.setStartAT(1);
View Full Code Here

      // deleteIndividual() returns void
      // I guess, if no exception is thrown, then everything is good
      remote.deleteIndividual(contactID, individualID);
     
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Individual");

      writer.print(contactID);
    }catch(Exception e){
      writer.print("FAIL");
      return(null);
View Full Code Here

      // added by Sandie - end
      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

      remote.updateIndividual(individualVO, individualID);//Integer.parseInt(contactID));
      writer.print(contactID);
     
      // we need to make the IndividualList dirty, so that the next time
      // it is viewed, it is refreshed and contains the record we just added
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Individual");

    }catch(Exception e){
      System.out.println("[Exception][ContactEdit] Exception thrown in execute(): " + e);
      //e.printStackTrace();
    }
View Full Code Here

        }

        String newItemID = request.getParameter("theitemid");
        ItemList IL = null; //see if u need to write something different.

        ListGenerator lg = ListGenerator.getListGenerator(dataSource); //get the List Generator object for Listing
        //IL = (ItemList )lg.getItemList( 1 , 1, 10 , "" , "ItemID");//called when the request for the list is for first time
        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)
        {
          st = new StringTokenizer(newItemID, ",");
View Full Code Here

        {
          ActionErrors allErrors = (ActionErrors) session.getAttribute("listErrorMessage");
          saveErrors(request, allErrors);
          session.removeAttribute("listErrorMessage");
        }//end of if (session.getAttribute("listErrorMessage") != null)
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        if( displaylist == null)
        {
          DL = ( ExpenseFormList )lg.getExpensesList( userobjectd.getIndividualID() , 1,listpreference.getRecordsPerPage() , "" ,listpreference.getSortElement());
        }
        else//When the dispaly list in not 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 = (ExpenseFormList)displaylistSession;
            request.setAttribute("displaylist" , displaylistSession );
          }
          else
          {
            DL = ( ExpenseFormList )lg.getExpensesList( userobjectd.getIndividualID(), displaylist );
          }

        }//Added locally
        setLinks(DL);
        session.setAttribute( "displaylist" , DL );
View Full Code Here

      }

      // we need to make all the Activities lists dirty, so that the next time
      // they are viewed, they are refreshed and contain the record we just
      // added
      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("MultiActivity");
      lg.makeListDirty("AllActivity");
      lg.makeListDirty("Appointment");
      lg.makeListDirty("Call");
      lg.makeListDirty("Meeting");
      lg.makeListDirty("NextAction");
      lg.makeListDirty("ToDo");

      // Now we check to see if this is a recurring activity.
      // Check the "recurrenceType" field. If it is not null,
      // then process the other recurring fields "every" and "on".
      // Then call the SyncFacadeEJB to add the recurring data
View Full Code Here

    returnStatus = ".view.accounting.ordergenerate";
  }

    this.updateList(status, individualID, proposallistform);
    session.removeAttribute("proposallistform");
    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    lg.makeListDirty("Proposal");
    //dynaForm.initialize(mapping);
    return (mapping.findForward(returnStatus));
  } //end of execute method
View Full Code Here

      MarketingList DL = null;

      if (displaylist == null)
      {
        ListGenerator lg = ListGenerator.getListGenerator(dataSource);
        int records = listpreference.getRecordsPerPage();
        String sortelement = listpreference.getSortElement();
        DL = (MarketingList)lg.getMarketingList(individualId, 1, records, "", sortelement);
      }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) &&
            (displaylist.getStartAT() >= displaylistSession.getBeginIndex()) &&
            (displaylist.getEndAT() <= displaylistSession.getEndIndex()) &&
            (displaylist.getSortMember().equals(displaylistSession.getSortMember())) &&
            (displaylist.getSortType() == (displaylistSession.getSortType())) &&
            (searchSession.equals(searchrequest)))|| displaylist.getAdvanceSearchFlag() == true)
        {
      DL = (MarketingList) displaylistSession;
          request.setAttribute("displaylist" , displaylistSession );
        }else{
          ListGenerator lg = ListGenerator.getListGenerator(dataSource);
          DL = (MarketingList)lg.getMarketingList(individualId, displaylist);
        }
      }

      Set listkey = DL.keySet();
      Iterator it =  listkey.iterator();
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.