Examples of entityMove()


Examples of com.centraview.contact.contactfacade.ContactFacade.entityMove()

      if (userType.equals("ADMINISTRATOR")) {
        individualId = -1;
      }

      remote.entityMove(individualId, sourceListId, entityID);
    } catch (Exception e) {
      logger.error("[execute]: Exception", e);
    }
    return (mapping.findForward("success"));
  }
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.entityMove()

      String entityIDs[] = new String[1];
      entityIDs[0] = entityID+"";
      // Reason for adminIndividualID to set as -1. We know that admin is a super user
      // he can move any thing. thats why its hard coded to -1
      int adminIndividualID = -1;
      remoteContactFacade.entityMove(adminIndividualID, listID, entityIDs);
    } catch (RemoteException re) {
      logger.error("[Exception] IndividualMerge.Execute Handler ", re);
    } catch (AuthorizationFailedException afe) {
      logger.error("[Exception] IndividualMerge.Execute Handler ", afe);
    }
View Full Code Here

Examples of com.centraview.contact.contactfacade.ContactFacade.entityMove()

      String entityIDs[] = new String[1];
      entityIDs[0] = entityId + "";
      // Reason for adminIndividualID to set as -1. We know that admin is a super user
      // he can move any thing. thats why its hard coded to -1
      int adminIndividualID = -1;
      remoteContactFacade.entityMove(adminIndividualID, listID, entityIDs);
    } catch (RemoteException re) {
      logger.error("[Exception] EntityMerge.Execute Handler ", re);
    } catch (AuthorizationFailedException afe) {
      logger.error("[Exception] EntityMerge.Execute Handler ", afe);
    }
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.entityMove()

      int marketingListID = Integer.parseInt(fieldValue);
      if(marketingListID != 0 && entityIDs.length != ){
        // Reason for adminIndividualID to set as -1. We know that admin is a super user
        // he can move any thing. thats why its hard coded to -1
        int adminIndividualID = -1;
        contactHelperLocal.entityMove(adminIndividualID, marketingListID, entityIDs );
      }//end of if(marketingListID != 0 && entityIDs.length != 0  )     
    }//end of if(displayName != null && displayName.equals("Marketing List") && queryTableID != 0)

    // inserting the batched query to the database.
    int[] batchResult = cvdal.batchProcess(batchQuery);
View Full Code Here

Examples of com.centraview.contact.helper.ContactHelperLocal.entityMove()

    {
      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome home = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      remote.entityMove(individualId, listId, entityIDs );
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.deleteEntity] Exception Thrown: "+e);
      //e.printStackTrace();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.