|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.datadosen.jalbum.AccountManager
public class AccountManager
Manager class for FTP accounts.
| Nested Class Summary | |
|---|---|
static class |
AccountManager.AccountStatus
|
| Method Summary | |
|---|---|
void |
addAccount(AccountProfile newAccount)
Add a new FTP account to the list. |
void |
addAccountManagerListener(AccountManagerListener l)
|
AccountProfile |
findAccountByName(java.lang.String name)
|
AccountProfile |
findCurrentAccount(AlbumBean engine)
|
AccountProfile |
findJAlbumAccountByUserName(java.lang.String userName)
|
protected void |
fireAccountListUpdated()
|
javax.swing.DefaultListModel |
getAccounts()
|
static java.lang.String |
getCid(AccountProfile account)
|
static java.lang.String |
getCid(java.lang.String userName,
java.lang.String password)
|
AccountProfile |
getFirstMyjalbumAccount()
Iterate through the list of accounts and find the first available myjalbum account. |
static AccountManager |
getInstance()
|
static AccountManager.AccountStatus |
getJalbumAccountQuota(java.lang.String username,
java.lang.String password)
|
static AccountManager.AccountStatus |
getJalbumAccountStatus(AccountProfile profile)
|
static AccountManager.AccountStatus |
getJalbumAccountStatus(java.lang.String username,
java.lang.String password)
|
boolean |
hasAccounts()
Check if the manager has any FTP accounts in its list. |
void |
loadAccounts()
Load account list from file. |
void |
removeAccount(AccountProfile oldAccount)
Remove a FTP account from the list. |
void |
removeAccountManagerListener(AccountManagerListener l)
|
void |
resetAccounts()
|
static java.lang.String |
resolveCid(AccountProfile account)
Get the cid for the passed account if it's a jalbum account If not, the cid for the account the user is signed into Jalbum as is passed, or null if the user isn't signed into the Jalbum client |
void |
saveAccounts()
Save the account list to file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AccountManager getInstance()
public void addAccount(AccountProfile newAccount)
public void removeAccount(AccountProfile oldAccount)
public void removeAccountManagerListener(AccountManagerListener l)
public void addAccountManagerListener(AccountManagerListener l)
protected void fireAccountListUpdated()
public boolean hasAccounts()
public void resetAccounts()
public void loadAccounts()
throws ElementException,
java.io.IOException
ElementException - Could not fetch account elements.
java.io.IOException - Could not load from file.public AccountProfile getFirstMyjalbumAccount()
public AccountProfile findJAlbumAccountByUserName(java.lang.String userName)
public AccountProfile findAccountByName(java.lang.String name)
public AccountProfile findCurrentAccount(AlbumBean engine)
public static java.lang.String getCid(java.lang.String userName,
java.lang.String password)
public static java.lang.String getCid(AccountProfile account)
public static java.lang.String resolveCid(AccountProfile account)
public static AccountManager.AccountStatus getJalbumAccountQuota(java.lang.String username,
java.lang.String password)
throws java.io.IOException
java.io.IOException
public static AccountManager.AccountStatus getJalbumAccountStatus(AccountProfile profile)
throws java.io.IOException,
AuthenticationException
java.io.IOException
AuthenticationException
public static AccountManager.AccountStatus getJalbumAccountStatus(java.lang.String username,
java.lang.String password)
throws java.io.IOException,
AuthenticationException
java.io.IOException
AuthenticationException
public void saveAccounts()
throws java.io.IOException,
java.lang.Exception
java.io.IOException - Could not write to file.
java.lang.Exception - Could not get BeanBinder propertiespublic javax.swing.DefaultListModel getAccounts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||