Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


  static public ArrayList getEntityVOs(String [] mergeIds, String dataSource)
  {
    ArrayList entityVOs = new ArrayList();
    try
    {
      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
      for (int i = 0; i < mergeIds.length; i++)
      {
        try
        {
View Full Code Here


  static public ArrayList getIndividualVOs(String [] mergeIds, String dataSource)
  {
    ArrayList individualVOs = new ArrayList();
    try
    {
      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
      for (int i = 0; i < mergeIds.length; i++)
      {
        IndividualVO individualVO = remoteContactFacade.getIndividual(Integer.parseInt(mergeIds[i]));
        individualVOs.add(individualVO);
View Full Code Here

  static public ArrayList getIndividualVOsForEntityIds(String [] mergeIds, String dataSource)
  {
    ArrayList individualVOs = new ArrayList();
    try
    {
      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
      for (int i = 0; i < mergeIds.length; i++)
      {
        ArrayList individuals = (ArrayList)remoteContactFacade.getAllIndividualVOs(Integer.parseInt(mergeIds[i]));
        individualVOs.addAll(individuals);
View Full Code Here

      }
    }

    // Time to start using the EJB layer
    ContactFacade remoteContactFacade = null;
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {
      remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
    } catch (Exception e) {
      logger.error("[Exception] EntityMerge.Execute Handler ", e);
      throw new ServletException(e);
    }
View Full Code Here

    ArrayList searchDomain = new ArrayList();
    searchDomain.add(new DDNameValue("0", "All Records"));

    // get marketing lists from the EJB
    ArrayList marketingLists = null;
  ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try
    {
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
      marketingLists = (ArrayList)remoteContactFacade.getAllMarketingList();
    } catch (Exception e) {
    logger.error("[Exception] MergeSearch.Execute Handler ", e);
        throw new ServletException(e);
View Full Code Here

        }
      } else {
        request.setAttribute("isPublic", "Yes");
      }

      ContactFacadeHome facadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade cfremote = facadeHome.create();
      cfremote.setDataSource(dataSource);
     
      ArrayList employeeList = (ArrayList) cfremote.getEmployeeListDisplay();
      if (employeeList != null && employeeList.size() != 0) {
        Iterator i = employeeList.iterator();
View Full Code Here

        }//end of if(tableInfo != null)
      }//end of if(replaceTableIDString != null)

      globalReplaceForm.set("moduleId", new Integer(moduleId));

      ContactFacadeHome cfh = (ContactFacadeHome) CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      try
      {
        ContactFacade remote = (ContactFacade) cfh.create();
        remote.setDataSource(dataSource);
        Vector listVec = remote.getDBList(individualId);
        globalReplaceForm.set("listVec",listVec);
      }
      catch (Exception e)
View Full Code Here

        }
      }

      globalReplaceForm.set("moduleId", new Integer(moduleId));

      ContactFacadeHome cfh = (ContactFacadeHome) CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      try {
        ContactFacade remote = (ContactFacade) cfh.create();
        remote.setDataSource(dataSource);
        Vector listVec = remote.getDBList(individualId);
        globalReplaceForm.set("listVec",listVec);
      } catch (Exception e) {
        logger.error("[Exception] GlobalReplaceSearchHandler.Execute Handler ", e);
View Full Code Here

  public GroupMemberList getGroupMemberList(int userID, int startAt, int EndAt,
      String searchString, String sortColumn, int groupID) throws CommunicationException,
      NamingException
  {
    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    boolean flag = checkListPresentInGlobalList("Individual");

    IndividualList individualList = new IndividualList();

    if (flag == true) {
      individualList = (IndividualList)globalLists.get("Individual");
      if (individualList.getDirtyFlag()) {
        globalLists.remove("Individual");
        flag = false;
      }
    }

    if (flag == false) {
      try {
        HashMap hm = new HashMap();
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);

        individualList = remote.getAllIndividualList(userID, hm);
        individualList.setIndividualId(userID);

        individualList.setSortMember(sortColumn);
        individualList.setListType("Individual");
        individualList.setDirtyFlag(false);

        if (individualList.getTotalNoOfRecords() == individualList.getEndIndex()) {
          globalLists.put("Individual", individualList);
        }
      } catch (Exception e) {
        System.out
            .println("[ListGenerator] Exception thrown in getGroupMemberList() (first try block)): "
                + e);
        // e.printStackTrace();
      }

      flag = true;
    } // end if (flag == false)

    GroupMemberList groupList = new GroupMemberList();
    groupList.setListType("GroupMember");
    groupList.setSortMember(sortColumn);
    groupList.setStartAT(startAt);
    groupList.setEndAT(EndAt);
    groupList.setSearchString(searchString);

    int beginIndex = 0;
    int endIndex = 0;
    int totalRecords = individualList.size();

    // get Group MemberIDs
    Vector IDVector = null;
    try {
      ContactFacade remote = (ContactFacade)aa.create();
      IDVector = remote.getGroupMemberIDs(userID, groupID);
    } catch (Exception e) {
      System.out
          .println("[ListGenerator] Exception thrown in getGroupMemberList() (second try block): "
              + e);
View Full Code Here

      }
    }

    if (flag == false) {
      try {
        ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        HashMap hm = new HashMap();

        if (DLparam.getSortMember() != null) {
          hm.put("sortColumn", DLparam.getSortMember());
        }
        hm.put("sortDirection", DLparam.getSortType() + "");

        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getAllIndividualList(DLparam.getIndividualId(), hm);
        DL.setListType("Individual");
        DL.setTotalNoOfRecords(DL.size());

        if (DL.getTotalNoOfRecords() == DL.getEndIndex()) {
          globalLists.put("Individual", DL);
        }
      } catch (Exception e) {
        System.out.println("[Exception] ListGenerator.getGroupMemberList: " + e.toString());
        // e.printStackTrace();
      }
      flag = true;
    }

    GroupMemberList DL1 = new GroupMemberList();
    DL1.setGroupId(DL2.getGroupId());
    DL1.setSortMember(DL2.getSortMember());
    DL1.setSortType(DL2.getSortType());
    DL1.setStartAT(DL2.getStartAT());
    DL1.setEndAT(DL2.getEndAT());
    DL1.setSearchString(DL2.getSearchString());
    DL1.setListType("GroupMember");

    // getGroupMemberIDs
    Vector idvector = null;
    try {
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      idvector = remote.getGroupMemberIDs(DLparam.getIndividualId(), DL1.getGroupId());

    } catch (Exception e) {
      System.out.println("[Exception] [ListGenerator.getGroupMemberList]: " + e.toString());
View Full Code Here

TOP

Related Classes of com.centraview.contact.contactfacade.ContactFacadeHome

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.