Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacade


      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] GobalReplaceSearchHandler.Execute Handler ", 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

    }

    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);
      e.printStackTrace();
View Full Code Here

        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());
      // e.printStackTrace();
    }
View Full Code Here

    int tnorec;
    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {

      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllAddresses(contactID, contactType);

      tnorec = DL.size();
      DL.setListID(currentListID);
      DL.setContactId(contactID);
      DL.setContactType(contactType);
View Full Code Here

    toReturn.setEndAT(EndAt);

    // long currentListID = this.getNextListID();
    int tnorec;
    try {
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllAddresses(contactID, contactType);

      tnorec = DL.size();

      DL.setListID(currentListID);
      DL.setContactId(contactID);
View Full Code Here

        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    MOCList DL = null;
    long currentListID = this.getNextListID();
    int tnorec;
    try {
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllMOC(contactID, contactType);

      tnorec = DL.size();

      DL.setListID(currentListID);
      DL.setContactId(contactID);
View Full Code Here

    toReturn.setStartAT(startAT);
    toReturn.setEndAT(EndAT);

    int tnorec;
    try {
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllMOC(contactID, contactType);

      tnorec = DL.size();

      DL.setListID(DL2.getListID());
      DL.setContactId(contactID);
View Full Code Here

    // right away. mmmKay?
    String searchString = "ADVANCE: SELECT individual.individualId FROM individual WHERE individual.entity = "
        + entityId;
    listParameters.put("ADVANCESEARCHSTRING", searchString);
    try {
      ContactFacade contactFacade = (ContactFacade)CVUtility.setupEJB("ContactFacade",
          "com.centraview.contact.contactfacade.ContactFacadeHome", this.dataSource);
      DL = contactFacade.getAllIndividualList(individualId, listParameters);
    } catch (Exception e) {
      logger.error("[getIndividualForEntity] Exception thrown.", e);
      throw new ServletException(e);
    }
    // I wonder, is all the following really necessary?
View Full Code Here

          hm.put("sortColumn", DLParam1.getSortMember());
        }
        hm.put("sortDirection", DLParam1.getSortType() + "");

        hm.put("dbID", new Integer(dbID));
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);

        DL = remote.getAllIndividualList(userID, hm);
        DL.setSortMember(DLParam.getSortMember());
        DL.setListType("Individual");
        DL.setDirtyFlag(false);

        if (DL.getTotalNoOfRecords() == DL.getEndIndex()) {
View Full Code Here

TOP

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

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.