Package com.centraview.common.helper

Examples of com.centraview.common.helper.CommonHelperLocalHome


  {
    ArrayList folderPathList = new ArrayList();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      CommonHelperLocalHome contactHelperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal contactHelperRemote =  contactHelperHome.create();
      contactHelperRemote.setDataSource(this.dataSource);
      folderPathList = contactHelperRemote.getFolderFullPath(folderID, "emailfolder");
    }catch(Exception e){
      logger.error("[getFolderFullPath] Exception thrown.", e);
    }
View Full Code Here


    if (parentID <= 0){ return folderList; }

    try {
    InitialContext ic = CVUtility.getInitialContext();
    CommonHelperLocalHome commonHelperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
    CommonHelperLocal commonHelperRemote =  commonHelperHome.create();
    commonHelperRemote.setDataSource(this.dataSource);
    folderList = commonHelperRemote.getSubFolderList(individualID,parentID, "emailfolder");
    }catch(Exception e){
      logger.error("[getSubFolderList]: Exception", e);
    }
View Full Code Here

      InitialContext ic = CVUtility.getInitialContext();
      ContactHelperLocalHome homeContact = (ContactHelperLocalHome)ic.lookup("local/ContactHelper");
      ContactHelperLocal remoteContact =  homeContact.create();
      remoteContact.setDataSource(this.dataSource);

      CommonHelperLocalHome homeCommon = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal remoteCommon =  homeCommon.create();
      remoteCommon.setDataSource(this.dataSource);

      HashMap sourceList = remoteCommon.getSourceList();
      Vector groupList = remoteContact.getGroups();
      HashMap entityList = remoteContact.getEntityList(listid);
View Full Code Here

      InitialContext ic = CVUtility.getInitialContext();
      IndividualLocalHome home = (IndividualLocalHome)ic.lookup("local/Individual");
      IndividualLocal remote =  home.findByPrimaryKey(new IndividualPK(indId,this.dataSource));
      // the ejbLoad will take care of setting the dataSource on a findByPrimaryKey.
      iv = remote.getIndividualVOWithBasicReferences();
      CommonHelperLocalHome chhome= (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal commonhelper= chhome.create();
      // we need to explicitly set the dataSource on a stateless session bean.
      commonhelper.setDataSource(dataSource);
      iv.setSourceName(commonhelper.getSourceName(iv.getSource()));
    }catch(Exception e){
      System.out.println("[Exception][ContactFacadeEJB.getIndividual] Exception Thrown: "+e);
View Full Code Here

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      EntityLocalHome home = (EntityLocalHome)ic.lookup("local/Entity");
      EntityLocal remote =  home.findByPrimaryKey(new EntityPK(entId,this.dataSource));
      CommonHelperLocalHome chhome= (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal commonhelper= chhome.create();
      // Explicitly set the dataSource on the stateless Session Bean.
      commonhelper.setDataSource(this.dataSource);
      ev = remote.getEntityVOWithBasicReferences();
      ev.setSourceName(commonhelper.getSourceName(ev.getSource()));
    } catch(Exception e)
View Full Code Here

  {
    HashMap sourceList = new HashMap();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      CommonHelperLocalHome chhome= (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal commonhelper= chhome.create();
      commonhelper.setDataSource(dataSource);
      sourceList = commonhelper.getSourceList();
    } catch(Exception e)
    {
      System.out.println("[Exception][ContactFacadeEJB.getSourceList] Exception Thrown: "+e);
View Full Code Here

      sourceID = entityVO.getSource();
    }else{
      String sourceName = entityVO.getSourceName();
      if (sourceName != null && !sourceName.equals("")) {
        try {
          CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
          CommonHelperLocal helperRemote =  helperHome.create();
          sourceID = helperRemote.getSourceID(sourceName);
        }catch(Exception e){
          logger.error("[ejbCreate] Exception thrown.", e);
        }
      }   // end if (sourceName != null && !sourceName.equals(""))
View Full Code Here

          sourceID = this.envo.getSource();
        } else {
          String sourceName = this.envo.getSourceName();
          if (sourceName != null && !sourceName.equals("")) {
            try {
              CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
              CommonHelperLocal helperRemote = helperHome.create();
              sourceID = helperRemote.getSourceID(sourceName);
            } catch (Exception e) {
              logger.error("[ejbStore] Exception thrown.", e);
            }
          }
View Full Code Here

        String sourceName = individualDetail.getSourceName();
        // Make sure we actually have a sourceName.
        if (sourceName != null && !sourceName.equals("")) {
          sourceID = 0; // just in case we fail
          try {
            CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
            CommonHelperLocal helperRemote = helperHome.create();
            // Give us an Id.
            sourceID = helperRemote.getSourceID(sourceName);
          } catch (Exception e) {
            logger.error("[ejbCreate] Exception thrown Adding new Source while Creating Individual", e);
          }
View Full Code Here

          sourceID = indVo.getSource();
        } else {
          String sourceName = indVo.getSourceName();
          if (sourceName != null && !sourceName.equals("")) {
            try {
              CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
              CommonHelperLocal helperRemote = helperHome.create();
              sourceID = helperRemote.getSourceID(sourceName);
            } catch (Exception e) {
              System.out.println("[Exception][IndividualEJB.ejbCreate] Exception Thrown: " + e);
              e.printStackTrace();
            }
View Full Code Here

TOP

Related Classes of com.centraview.common.helper.CommonHelperLocalHome

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.