Package com.centraview.email.emailmanage

Examples of com.centraview.email.emailmanage.EmailManageLocalHome


      int result =0;
    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 *** ");
    }
 
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)
    {
View Full Code Here

      int result =0;
    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 *** ");
    }
 
View Full Code Here

      if (mailmessage.getMessageID() != 0)
      {
        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)
View Full Code Here

        int result =0;
        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)
        {
View Full Code Here

TOP

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

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.