Package com.cubusmail.common.model

Examples of com.cubusmail.common.model.GWTMailbox


   * @param mailbox
   * @return
   */
  public static GWTMailbox convert( IMailbox mailbox ) {

    GWTMailbox result = new GWTMailbox();

    result.setEmailAddress( mailbox.getEmailAddress() );
    result.setFullName( mailbox.getFullName() );
    result.setUserAccount( mailbox.getUserAccount() );
    result.setLoggedIn( true );

    // result.setMailFolders( convert( mailbox.getMailFolderList() ) );

    return result;
  }
View Full Code Here


   * @param response
   * @param folderTree
   */
  private void mapResponse( DSResponse response, GWTMailFolder[] folderTree ) {

    GWTMailbox mailbox = GWTSessionManager.get().getMailbox();
    mailbox.setMailFolders( folderTree );
    TreeNode root = UIFactory.createTreeNode( mailbox );
    response.setData( new TreeNode[] { root } );
  }
View Full Code Here

        account.setLastLogin( new Date() );
        this.userAccountDao.saveUserAccount( account );
      }
     
      mailbox.setUserAccount( account );
      GWTMailbox gwtMailbox = ConvertUtil.convert( mailbox );

      return gwtMailbox;
    }
    catch (LoginException e) {
      log.error( e.getMessage(), e );
View Full Code Here

TOP

Related Classes of com.cubusmail.common.model.GWTMailbox

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.