Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


    // "customerProfileForm", defined in cv-struts-config.xml
    DynaActionForm profileForm = (DynaActionForm)form;

    // get the customer profile from the database
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
   
    try {
      ContactFacade remote = (ContactFacade)cfh.create();
      remote.setDataSource(dataSource);
     
      // get the Entity record of the logged-in user's Entity
      EntityVO entityVO = (EntityVO)remote.getEntity(entityID);
     
View Full Code Here


      Vector individualList = new Vector();
      individualList.addElement(new DDNameValue("0#employee", "Employee"));
      individualList.addElement(new DDNameValue("0#allindividual", "All Individual"));

      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);
      Vector allDBList = remote.getDBList(individualID);
      if (allDBList != null) {
        for (int dbcount = 0; dbcount < allDBList.size(); dbcount++) {
          DDNameValue dbInfo = (DDNameValue)allDBList.get(dbcount);
View Full Code Here

      String currTimeZone = userObject.getUserPref().getTimeZone();
      activityVO.changeTimeZoneOfAllDates(currTimeZone, "EST");

      String emailinvitation = ((ActivityForm)form).getActivityEmailInvitation();
      if (emailinvitation != null && emailinvitation.equals("on")) {
        ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        try {
          ContactFacade remote = cfh.create();
          remote.setDataSource(dataSource);
          // Static 2 because we are looking for the Individual's Primary Email
          // Address
          String emailAddress = remote.getPrimaryEmailAddress(IndividualId, 2);
          if (emailAddress == null || emailAddress.equals("")) {
View Full Code Here

  public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException,
      ServletException
  {
    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    String monitorMessage = "UNKNOWN";
    ContactFacadeHome contactFacadeHome = null;
    try {
      long startTime = System.currentTimeMillis();
      contactFacadeHome = (ContactFacadeHome) CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade contactRemote = contactFacadeHome.create();
      contactRemote.setDataSource(dataSource);
      EntityVO entityVO = contactRemote.getEntity(1);
      long endTime = System.currentTimeMillis();
      // How long it took to retreive data in milliseconds
      long msDataRetreival = (endTime - startTime);
View Full Code Here

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    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(""))
        {
View Full Code Here

      String sourceListID = request.getParameter("sourceListId");
      if (sourceListID != null && !sourceListID.equals("")) {
        sourceListId = Integer.parseInt(sourceListID);
      }
      String entityID[] = request.getParameterValues("rowId");
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      if (userType.equals("ADMINISTRATOR")) {
        individualId = -1;
      }
View Full Code Here

      if (companyName == null || companyName.equals(""))
      {
        companyName = firstName + " " + lastName;
      }

      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
      ContactFacade remote = (ContactFacade)cfh.create();
      remote.setDataSource(dataSource);
     
      SyncFacadeHome syncHome = (SyncFacadeHome)CVUtility.getHomeObject("com.centraview.syncfacade.SyncFacadeHome", "SyncFacade");
      com.centraview.syncfacade.SyncFacade sfremote = (com.centraview.syncfacade.SyncFacade)syncHome.create();
      sfremote.setDataSource(dataSource);
View Full Code Here

    String returnStatus = ".view.error";
    String rowId[] = null;

    AccountHelperHome accountHome = (AccountHelperHome)CVUtility.getHomeObject(
        "com.centraview.account.helper.AccountHelperHome", "AccountHelper");
    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");

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

      DynaActionForm dynaForm = (DynaActionForm)form;

      AddressVO avo = null;

      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);

      avo = remote.getAddress(Integer.parseInt(rowId[0]));

      if (avo != null) {
View Full Code Here

    if (addVO != null) {
      addVO.setAddressType(1);
    }

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

    try {
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);

      int contactId = 0;
      try {
        contactId = Integer.parseInt((String)((DynaActionForm)form).get("recordID"));
View Full Code Here

      remote.updateCustomField(custVo);

      CustomFieldVO cfvo = remote.getCustomField(fieldId);

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

      cfvo.setRecordID(recordID);
      remoteContactFacade.updateModifiedBy(cfvo, individualID);
    } catch (Exception 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.