Package com.centraview.common

Examples of com.centraview.common.DisplayList


      // but if NextPageHandler or PreviousPageHandler have been called, then we
      // get the DisplayList that either of those handlers put on the request,
      // and get the startAt and endAt parameters from that object (BUT THROW
      // AWAY THE ACTUAL LIST)
      DisplayList sessionRulesList = (DisplayList)request.getAttribute("displaylist");
      if (sessionRulesList != null)
      {
        startAt = sessionRulesList.getStartAT();
        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);
View Full Code Here


        com.centraview.common.UserObject  userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );

        ListPreference listpreference= userobjectd.getListPreference("Expenses");

        DisplayList displaylistSession = ( DisplayList )session.getAttribute( "displaylist") ;

        DisplayList displaylist = ( DisplayList )request.getAttribute( "displaylist") ;
        ExpenseFormList DL= null;
        // After performing the logic in the DeleteHanlder, we are generat a new request for the list
        // So we will not be carrying the old error. So that we will try to collect the error from the Session variable
        // Then destory it after getting the Session value
        if (session.getAttribute("listErrorMessage") != null)
        {
          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
View Full Code Here

      // START HERE?

      String marketingListID = (String)globalReplaceForm.get("listID");
      String displayListFlag = (String) request.getAttribute("displayListFlag");
      DisplayList displaylistRequest = (DisplayList)request.getAttribute("displaylist");
     
      if ((displayListFlag != null && displayListFlag.equals("true")) || displaylistRequest == null ) {
        // Get Advance Search result by applying the Search criteria
        AdvancedSearch remoteAdvancedSearch = null;
        AdvancedSearchHome advancedSearchHome = (AdvancedSearchHome)CVUtility.getHomeObject("com.centraview.advancedsearch.AdvancedSearchHome", "AdvancedSearch");
View Full Code Here

      int trashfolderId = 0;
      int trashdeleteflag = 0;
      int sourcefolderid = 0;
      HttpSession session = request.getSession(true);

      DisplayList sessionDL = (DisplayList) session.getAttribute("displaylist");
      DisplayList displaylist = (DisplayList)request.getAttribute("displaylist");
     
//      System.out.println("displaylist"+displaylist);


      long reqListID = -1;
      String listIdStr = (String) request.getParameter("listId");

      if (listIdStr != null)
      {
       reqListID = Long.parseLong(listIdStr);
      }

//      System.out.println("reqListID"+reqListID);


    long sessionListID = -1;

    if (sessionDL != null)
    {
      sessionListID = sessionDL.getListID();
    }

      ListGenerator LG = ListGenerator.getListGenerator(dataSource);
      DisplayList reqDL = LG.getDisplayList(reqListID);
     
    if ((sessionDL != null) && (reqListID == sessionListID))
    {
      int startat = sessionDL.getStartAT();
      int endat = sessionDL.getEndAT();
     
  //    System.out.println("startat DELETE >"+startat);
//      System.out.println("endatDELETE >"+endat);

      reqDL.setStartAT(startat);
      reqDL.setEndAT(endat);
   
    }
   

View Full Code Here

      session.setAttribute("highlightmodule", "email");

      UserObject userobjectd = (UserObject)session.getAttribute("userobject");
      ListPreference listpreference = userobjectd.getListPreference("Email");

      DisplayList displaylistSession = (DisplayList)session.getAttribute("displaylist");
      DisplayList displaylist = (DisplayList)request.getAttribute("displaylist");

      String deleteFlag = (String)request.getAttribute("deleteFlag");

//      System.out.println("displaylist"+displaylist);
      // Folder List

      EmailFacadeHome aa = (EmailFacadeHome)CVUtility.getHomeObject("com.centraview.email.emailfacade.EmailFacadeHome", "EmailFacade");
      EmailFacade remote = (EmailFacade)aa.create();
      remote.setDataSource(dataSource);
      int individualID = userobjectd.getIndividualID();
      FolderList fl = (FolderList)remote.getFolderList(individualID);

      String[] maps = mapping.findForwards();
      if (fl == null)
      {
        return (mapping.findForward("displaynomailaccount"));
      }
      else if (fl.size() == 0)
      {
        return (mapping.findForward("displaynomailaccount"));
      }

      session.setAttribute("folderlist", fl);

      int folderid = fl.getDefaultFolder();

      System.out.println("folderid"+folderid);

      if (request.getParameter("folderid") != null)
      {
        folderid = Integer.parseInt(request.getParameter("folderid"));
      }
      if (request.getParameter("folderid") == null)
      {
      System.out.println("request.getAttribute(folderid)--->"+request.getAttribute("folderid"));
     if(request.getAttribute("folderid") != null){
        folderid = Integer.parseInt((String)request.getAttribute("folderid"));
     }
      }


      //End Folder List
      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
View Full Code Here

    }//end of if (session.getAttribute("listErrorMessage") != null)
   
      UserObject userobjectd =(UserObject) session.getAttribute("userobject");
      ListPreference listpreference = userobjectd.getListPreference("Project");

      DisplayList displaylistSession = (DisplayList) session.getAttribute("displaylist");
      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
View Full Code Here

TOP

Related Classes of com.centraview.common.DisplayList

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.