Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


      //Get Individual ID
      String individualStringID = (String) ((StringMember) elementAt.get("IndividualID")).getMemberValue();
      String entityStringID = (String) ((StringMember) elementAt.get("EntityID")).getMemberValue();

      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)
      CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade contactFacade = contactFacadeHome.create();
      contactFacade.setDataSource(this.dataSource);

      if (individualStringID == null || individualStringID.equals("") || individualStringID.equals("0"))
      {
        //delete the entity
View Full Code Here


  */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {

    ArrayList resultDeleteLog = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server

      ContactFacade contactFacade = contactFacadeHome.create();
      contactFacade.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

    String returnStatus = "deletesuccess";

    String rowId[] = request.getParameterValues("rowId");

    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      if (rowId != null) {
        for (int i = 0; i < rowId.length; i++) {
          remote.deleteEntity(Integer.parseInt(rowId[i]), individualID);
        }// for (int i=0;i<rowId.length;i++)
View Full Code Here

      listObject.getParameters().setDebugTime(debugTime);
    }
    request.setAttribute("valueList", listObject);
    // Put the MarketingList names on the request so the dropdown on the left
    // can be rendered
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    ContactFacade remote = null;
    try {
      remote = cfh.create();
    } catch (CreateException e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    remote.setDataSource(dataSource);
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(
        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();

    String returnStatus = "failure";

    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

    try {
      Integer rowId = new Integer(request.getParameter("selectId"));

      DynaActionForm dynaForm = (DynaActionForm)form;

      IndividualVO individualVO = null;
      AddressVO primaryAdd = null;

      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);
      individualVO = remote.getIndividual(rowId.intValue());

      if (individualVO.getFirstName() != null) {
        dynaForm.set("firstName", individualVO.getFirstName());
View Full Code Here

    HttpSession session = request.getSession(true);
    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();

    String rowId[] = request.getParameterValues("rowId");
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {
      ContactFacade remote = contactFacadeHome.create();
      remote.setDataSource(dataSource);
      for (int i = 0; i < rowId.length; i++) {
        if (rowId[i] != null && !rowId[i].equals("")) {
          int elementId = Integer.parseInt(rowId[i]);
          try {
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(
        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    com.centraview.contact.group.GroupVOX group = new com.centraview.contact.group.GroupVOX(form,
        individualId);
    com.centraview.contact.group.GroupVO groupVO = group.getVO();
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    int groupid = 0;
    try {
      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);
      if (group.getGroupID() < 1) {
        groupid = remote.createGroup(individualId, groupVO);
      } else {
        remote.updateGroup(individualId, groupVO);
View Full Code Here

        rowId = request.getParameterValues("rowId");
      } else {
        rowId[0] = new String(request.getParameter(Constants.PARAMID));
      }

      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      mcontactVO = remote.getMOC(Integer.parseInt(rowId[0]));

      DynaActionForm dynaForm = (DynaActionForm)form;
View Full Code Here

        System.out.println("[Exception][SyncFacade] Exception thrown in deleteContact(): " + e);
        writer.print("FAIL: Unknown error occurred.");
        return(null);
      }

      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
      ContactFacade remote = (ContactFacade)cfh.create();
      remote.setDataSource(dataSource);

      // deleteIndividual() returns void
      // I guess, if no exception is thrown, then everything is good
      remote.deleteIndividual(contactID, individualID);
View Full Code Here

        memberIds[i] = Integer.parseInt(parseSelectedId.nextToken());
        i++;
      }
      groupId = Integer.parseInt(request.getParameter("groupId"));
      UserObject userobject = (UserObject)session.getAttribute("userobject");
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      remote.addContactToGroup(userobject.getIndividualID(), groupId, memberIds);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
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.