Package de.spotnik.mail.core.accounts

Examples of de.spotnik.mail.core.accounts.AccountController


    /**
     * Add the available tags to the current view. Expects a logged in user.
     */
    private void initView()
    {
        AccountController accountController = PluginContext.instance().getAccountController();
        StringBuffer tags = new StringBuffer();
        boolean notFirstTag = false;
        UserAccount account;
       
        try
        {
            account = UserSession.getCurrentAccount();
            if( account == null)
            {
                throw new BusinessException("no active user session (no user logged in)");
            }
           
            List<TagTO> tagList = accountController.findAllTags(account.getId());
           
            for( TagTO tag : tagList)
            {
                if( notFirstTag)
                {
View Full Code Here


    /**
     * add the available accounts to the inbox
     */
    private void initView()
    {
        AccountController accountController = PluginContext.instance().getAccountController();
        UserAccount account;
       
        try
        {
            account = UserSession.getCurrentAccount();
           
            if( account == null)
            {
                account = accountController.login("spotnik06", "spotnik06");
            }
           
            for( MailAccount mailAccount : account.getAccounts())
            {
                createMailBox(this.inboxTreeItem, mailAccount);
View Full Code Here

TOP

Related Classes of de.spotnik.mail.core.accounts.AccountController

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.