Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacade


        viewEntityId = rowId[0];
      }
    } else {
      viewEntityId = new String(request.getParameter("entityLinkId"));
    } // end if (request.getParameterValues("rowId") != null)
    ContactFacade contactFacade = null;
    try {
      contactFacade = (ContactFacade)CVUtility.setupEJB("ContactFacade",
          "com.centraview.contact.contactfacade.ContactFacadeHome", dataSource);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    entityVO = contactFacade.getEntity(Integer.parseInt(viewEntityId));
    DynaActionForm entityForm = (DynaActionForm)form;
    entityVO.populateFormBean(entityForm);

    CustomField customField = null;
    try {
View Full Code Here


        i++;
      }
      groupId = Integer.parseInt(request.getParameter("groupId"));
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = aa.create();
      remote.setDataSource(dataSource);
      for (int j = 0; j < memberIds.length; j++) {
        remote.deleteGroupMember(memberIds[j], groupId);
      }
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
View Full Code Here

    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      int elementID = Integer.parseInt(key);
      ContactFacade remote =(ContactFacade)cfh.create();
      remote.setDataSource(this.dataSource);
      remote.deleteAddress(elementID, this.contactId, indvID);
    }//end of try block
    catch(AuthorizationFailedException ae){
      logger.error("[Exception] AddressList.deleteElement( int indvID, String key ) ", ae);
    }//end of catch block
    catch( CreateException e )
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deleteAddress(elementID, this.contactId, individualID);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

  ContactFacadeHome contactFacadeHome = (ContactFacadeHome) CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome",
    "ContactFacade");   
    try
    {
      int elementID = Integer.parseInt(key);
      ContactFacade remote = (ContactFacade) contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteGroupMember(new Integer(key).intValue(), groupid);
      this.setDirtyFlag(true);

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Group");
    }
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
          remote.deleteGroupMember(elementID, groupid);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

    int elementID = Integer.parseInt(key);
    ListGenerator lg = ListGenerator.getListGenerator(dataSource);
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome) CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      ContactFacade remote =(ContactFacade) contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      remote.deleteEntity(elementID, individualID);
    } //end of try block
    catch(Exception e )
    {
      logger.error("[Exception] EntityList.deleteElement( int indvID, String key )", e);
    } //end of catch block (Exception)
View Full Code Here

    ArrayList resultDeleteLog = new ArrayList();
    ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
    try
    {
      //call to EJB server
      ContactFacade remote =(ContactFacade)contactFacadeHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
          try{
            remote.deleteEntity(elementID, individualID);
          }//end of try block
          catch(AuthorizationFailedException ae){
            String errorMessage = ae.getExceptionDescription();
            resultDeleteLog.add(errorMessage);
          }//end of catch block
View Full Code Here

  ArrayList rawMarketingList = new ArrayList();
  ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
  try
  {
    ContactFacade remoteContactFacade = contactFacadeHome.create();
    remoteContactFacade.setDataSource(dataSource);
    rawMarketingList = (ArrayList)remoteContactFacade.getAllMarketingList();
  } catch (Exception e) {
    logger.error("[Exception] IndividualMergeDetail.Execute Handler ", e);
    throw new ServletException(e);
  }
  for(int i = 0; i < rawMarketingList.size(); i++)
View Full Code Here

    // Get the MarketingLists from the database, so you can set the result.
    ArrayList rawMarketingList = new ArrayList();
    try {
      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remoteContactFacade = contactFacadeHome.create();
      remoteContactFacade.setDataSource(dataSource);
      rawMarketingList = (ArrayList)remoteContactFacade.getAllMarketingList();
    } catch (Exception e) {
      System.out.println("[Exception][MergeSearch.execute] Exception Thrown: Getting Marketing Lists: "+e);
      throw new ServletException(e);
    }
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.