Package com.centraview.email.emailmanage

Examples of com.centraview.email.emailmanage.EmailManageLocal


    try
    {
      //System.out.println("*** Try Block of emailMoveTo *** ");
      InitialContext ic = CVUtility.getInitialContext();
      EmailManageLocalHome home = (EmailManageLocalHome)ic.lookup("local/EmailManage");
      EmailManageLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      //System.out.println("*** Before calling of emailMoveTo *** ");
      result = remote.emailMoveTo( sourceId ,destId,mailIdList );
      //System.out.println("*** After calling of emailMoveTo *** ");
    }
    catch(Exception e)
    {
      System.out.println("[Exception][EmailFacadeBean.emailMoveTo] Exception Thrown: "+e);
View Full Code Here


      ArrayList emailsList = new ArrayList();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      EmailManageLocalHome home = (EmailManageLocalHome)ic.lookup("local/EmailManage");
      EmailManageLocal local =  home.create();
      local.setDataSource(this.dataSource);
      emailsList = local.getEmailsFrom(mailIdList);
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
View Full Code Here

    try
    {
      //System.out.println("*** Try Block of emailDelete *** ");
      InitialContext ic = CVUtility.getInitialContext();
      EmailManageLocalHome home = (EmailManageLocalHome)ic.lookup("local/EmailManage");
      EmailManageLocal local =  home.create();
      local.setDataSource(this.dataSource);
      //System.out.println("*** Before calling of emailDelete *** ");
      result = local.emailDelete(sourceId ,accountId,mailIdList);
      //System.out.println("*** After calling of emailDelete *** ");
    }
    catch(Exception e)
    {
      System.out.println("[Exception][EmailFacadeBean.emailDelete] Exception Thrown: "+e);
View Full Code Here

        try
        {
      //System.out.println("*** Try Block of markasRead *** ");
          InitialContext ic = CVUtility.getInitialContext();
          EmailManageLocalHome home = (EmailManageLocalHome)ic.lookup("local/EmailManage");
          EmailManageLocal remote =  home.create();
          remote.setDataSource(this.dataSource);
          result = remote.emailMarkasRead(sourceId ,readflag,mailIdList);
        }
        catch(Exception e)
        {
          System.out.println("[Exception][EmailFacadeBean.emailMarkasRead] Exception Thrown: "+e);
          e.printStackTrace();
View Full Code Here

      {
        String mailIdList[]          = {"" + mailmessage.getMessageID()};

        InitialContext icPref          = CVUtility.getInitialContext();
        EmailManageLocalHome emailManageHome  = (EmailManageLocalHome) icPref.lookup("local/EmailManage");
        EmailManageLocal local     = emailManageHome.create();
        local.setDataSource(this.dataSource);

        int result                 = local.emailDeleteTrash(mailmessage.getFolder(), mailIdList);
      } //end of if statement (mailmessage.getMessageID() != 0)

      message.setContent(multipart);
      try
      {
View Full Code Here

TOP

Related Classes of com.centraview.email.emailmanage.EmailManageLocal

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.