Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


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

    String returnStatus = "failure";

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

    try {
      EntityVO entityVO = new EntityVO();

      String rowId[] = null;

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

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

      entityVO = remote.getEntity(Integer.parseInt(rowId[0]));
      DynaActionForm dynaForm = (DynaActionForm)form;
View Full Code Here


      // ask the database
      // What ListId to use. It will default to 1.
      // Get the marketingList for the parent EntityId and set our parameter
      // accordingly.
      try {
        ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        ContactFacade contactFacadeRemote = contactFacadeHome.create();
        contactFacadeRemote.setDataSource(dataSource);
        marketingListId = contactFacadeRemote.getEntityMarketingList(entityId);
      } catch (Exception e) {
        // If something goes wrong, it's okay we will default to marketingList 1
        logger.error("[Exception] execute(): ", e);
View Full Code Here

      }else{
        writer.print("FAIL: Invalid contact ID specified.");
        return(null);
      }
     
      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome","ContactFacade");
      ContactFacade remote = (ContactFacade)cfh.create();
      remote.setDataSource(dataSource);

      try {
        // check to see if the user has the right to update this record
        AuthorizationHome authHome = (AuthorizationHome)CVUtility.getHomeObject("com.centraview.administration.authorization.AuthorizationHome", "Authorization");
View Full Code Here

        }
      }
    }
    // 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

    UserObject userObject = (UserObject)session.getAttribute("userobject");
    String dataSource = Settings.getInstance().getSiteInfo(
        CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    int individualId = 0;
    try {
      ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);
      individualId = userObject.getIndividualID();
      String rowId[] = null;
      String row = null;
      if (request.getParameterValues("rowIdParent") != null) {
View Full Code Here

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    ArrayList notDeleted = 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

    int indvID = 0;
    if (userobject != null)
      indvID = userobject.getIndividualID();

    ContactFacadeHome cfh = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    String[] rowId = request.getParameterValues("rowId");
    returnStatus = "deletesuccess";
    try {
      ContactFacade remote = cfh.create();
      remote.setDataSource(dataSource);
      if (rowId != null) {
        for (int i = 0; i < rowId.length; i++) {
          remote.deleteIndividual(Integer.parseInt(rowId[i]), indvID);
        }// end of for (int i = 0; i < rowId.length; i++)
View Full Code Here

      while (parseSelectedId.hasMoreTokens()) {
        memberIds[i] = Integer.parseInt(parseSelectedId.nextToken());
        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) {
View Full Code Here

    return sortMember ;
  }

  public void  deleteElement( int indvID, String key )throws CommunicationException, NamingException
  {
    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);
View Full Code Here

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  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 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]);
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.