Package com.centraview.contact.contactfacade

Examples of com.centraview.contact.contactfacade.ContactFacadeHome


        }

      }

      if (flag == false) {
        ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        try {
          HashMap hm = new HashMap();
          ContactFacade remote = (ContactFacade)aa.create();
          remote.setDataSource(this.dataSource);
          DL = remote.getAllGroupList(userID, hm);
          DL.setIndividualId(userID);
          DL.setSortMember(sortColumn);
          DL.setListType("Group");
          DL.setDirtyFlag(false);
          if (DL.getTotalNoOfRecords() == DL.getEndIndex()) {
            globalLists.put("Group", DL);
          }

        } catch (Exception e) {
          System.out.println("[Exception][MarketingListEJB] Exception thrown in x: " + e);
        }
        flag = true;
      }

      GroupList DL1 = new GroupList();
      DL1.setListType("Group");
      DL1.setSortMember(sortColumn);
      DL1.setStartAT(startAT);
      DL1.setEndAT(EndAt);
      DL1.setSearchString(searchString);

      int beginIndex = 0;
      int endIndex = 0;
      int tnorec = DL.size();

      if (tnorec > EndAt) {
        beginIndex = startAT - 5;
        if (beginIndex < 1)
          beginIndex = 1;
        endIndex = EndAt + 5;

      } else {
        beginIndex = 1;
        endIndex = EndAt;
      }

      DL1.setBeginIndex(beginIndex);
      DL1.setEndIndex(endIndex);

      /** *** sort function *** */
      DL1 = (GroupList)Sort(DL1, DL);
      DL1.setTotalNoOfRecords(DL.size());

      // getFilteredList( DL1.getBeginIndex() , DL1.getEndIndex() , DL1 );

      long currentListID = this.getNextListID();
      DL1.setListID(currentListID);

      GroupList DL2 = createEmptyObject(DL1);
      DL2.setTotalNoOfRecords(DL.size());
      DL2.setListID(currentListID);
      DL2.setSortMember(sortColumn);
      DL2.setListType("Group");
      DL2.setStartAT(startAT);
      DL2.setEndAT(EndAt);
      displayLists.put(new Long(currentListID), DL2);

      Set s = DL.keySet();
      Iterator it = s.iterator();
      int i = 0;

      // IQ adde to filter only those records which the user has right to see
      Vector allAccRec = new Vector();
      try {
        ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);
        allAccRec = remote.getGroupAccessRecords(userID);
      } catch (Exception e) {}

      while (it.hasNext()) {
View Full Code Here


      dl.setListID(currentListID);
      displayLists.put(new Long(currentListID), dl);
      return this.getIndividualList(dl);
    } else {
      IndividualList DL = null;
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      try {
        HashMap hm = new HashMap();
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);
        hm.put("sortDirection", "A");
        DL = remote.getAllIndividualList(individualId, hm);
        DL.setIndividualId(individualId);
        DL.setSortMember(sortColumn);
View Full Code Here

      return this.getIndividualList(dl);

    } else {
      IndividualList DL = null;

      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      try {
        HashMap hm = new HashMap();
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);
        hm.put("dbID", new Integer(dbID));
        DL = remote.getAllIndividualList(individualID, hm);
        DL.setIndividualId(individualID);
        DL.setSortMember(sortColumn);
View Full Code Here

   */
  public EntityList getEntityLookup(int individualID)
  {
    EntityList DL = null;
    try {
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      HashMap hm = new HashMap();
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllEntityList(individualID, hm);
      DL.setIndividualId(individualID);
      DL.setListType("Entity");

View Full Code Here

   */
  public IndividualList getIndividualLookup(int userID, int EntityID, int dbID)
  {
    IndividualList DL = null;
    try {
      ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
          "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      HashMap hm = new HashMap();
      hm.put("dbID", new Integer(dbID));
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllIndividualList(userID, hm);
      DL.setIndividualId(userID);
      // DL.setSortMember( sortColumn );
      DL.setListType("Individual");
View Full Code Here

    }

    if (flag == false) {
      try {
        ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
            "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
        HashMap hm = new HashMap();
        ContactFacade remote = (ContactFacade)aa.create();
        remote.setDataSource(this.dataSource);
        DL = remote.getAllGroupList(userID, hm);
        DL.setIndividualId(userID);
        DL.setListType("Group");
        DL.setDirtyFlag(false);
View Full Code Here

      NamingException
  {

    IndividualList DL = null;

    ContactFacadeHome aa = (ContactFacadeHome)CVUtility.getHomeObject(
        "com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
    try {
      HashMap hm = new HashMap();
      hm.put("sortColumn", sortColumn);
      hm.put("dbID", new Integer(dbID));
      ContactFacade remote = (ContactFacade)aa.create();
      remote.setDataSource(this.dataSource);
      DL = remote.getAllIndividualAndEntityEmailList(userID, hm);
      DL.setIndividualId(userID);
      DL.setSortMember(sortColumn);
      DL.setListType("Individual");
View Full Code Here

  }

  //abstract
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    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.deleteGroup(indvID, elementID );

      ListGenerator lg = ListGenerator.getListGenerator(dataSource);
      lg.makeListDirty("Group");
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

      UserObject userobject = (UserObject)session.getAttribute("userobject");
      ModuleFieldRightMatrix mfrmx = ((UserObject)session.getAttribute("userobject")).getUserPref().getModuleAuthorizationMatrix();
      HashMap entityRights = mfrmx.getFieldRights("Entity");

      ContactFacadeHome contactFacadeHome = (ContactFacadeHome)CVUtility.getHomeObject("com.centraview.contact.contactfacade.ContactFacadeHome", "ContactFacade");
      ContactFacade contactFacadeRemote = (ContactFacade)contactFacadeHome.create();
      // Here's hoping the EntityVOX is only used from the struts layer.
      contactFacadeRemote.setDataSource(dataSource);
      int entityId = entityIdForm.intValue();
      EntityVO entityVOReference = null;
      if (entityId > 0) {
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.