public class LoginProxy extends Object implements CheckingTenantStatusTask.AsyncTaskListener, RequestTenantTask.AsyncTaskListener, LoginTask.AsyncTaskListener, CheckAccountExistsTask.AsyncTaskListener
Modifier and Type | Class and Description |
---|---|
static interface |
LoginProxy.ProxyListener |
Modifier and Type | Field and Description |
---|---|
static String |
ACCOUNT_NAME |
static String |
DOMAIN |
static String |
EMAIL |
static String |
PASSWORD |
static String |
SHOW_PROGRESS |
static int |
SWITCH_ACCOUNT |
static boolean |
userIsLoggedIn |
static String |
USERNAME |
static int |
WITH_EMAIL |
static int |
WITH_EXISTING_ACCOUNT |
static int |
WITH_USERNAME |
Constructor and Description |
---|
LoginProxy(android.content.Context context,
int state,
android.os.Bundle loginData)
data should be verified before entering LoginProxy
|
Modifier and Type | Method and Description |
---|---|
LoginWarningDialog |
getWarningDialog() |
void |
onCanceled()
Called when the task is canceled.
|
void |
onCancelLoad() |
void |
onCheckAccountExistsFinished(boolean accountExists) |
void |
onCheckingTenantStatusFinished(int result) |
void |
onLoggingInFinished(int result)
Called when the task has finished to return the result.
|
void |
onRequestingTenantFinished(int result,
String[] userAndTenant) |
void |
onUpdateDomain(String newDomain)
Called when the original domain was redirected to a new one.
|
void |
performLogin()
Actual logic of login
|
void |
setListener(LoginProxy.ProxyListener listener) |
public static boolean userIsLoggedIn
public static final int WITH_EXISTING_ACCOUNT
public static final int WITH_USERNAME
public static final int WITH_EMAIL
public static final int SWITCH_ACCOUNT
public static final String USERNAME
public static final String PASSWORD
public static final String EMAIL
public static final String DOMAIN
public static final String ACCOUNT_NAME
public static final String SHOW_PROGRESS
public LoginProxy(android.content.Context context, int state, android.os.Bundle loginData)
public LoginWarningDialog getWarningDialog()
public void onRequestingTenantFinished(int result, String[] userAndTenant)
onRequestingTenantFinished
in interface RequestTenantTask.AsyncTaskListener
public void performLogin()
public void onCheckingTenantStatusFinished(int result)
onCheckingTenantStatusFinished
in interface CheckingTenantStatusTask.AsyncTaskListener
public void onCheckAccountExistsFinished(boolean accountExists)
onCheckAccountExistsFinished
in interface CheckAccountExistsTask.AsyncTaskListener
public void onLoggingInFinished(int result)
LoginTask.AsyncTaskListener
onLoggingInFinished
in interface LoginTask.AsyncTaskListener
result
- (1) for a successful loginpublic void onUpdateDomain(String newDomain)
LoginTask.AsyncTaskListener
onUpdateDomain
in interface LoginTask.AsyncTaskListener
newDomain
- the new domain URL (scheme + host + optional port)public void onCanceled()
LoginTask.AsyncTaskListener
onCanceled
in interface LoginTask.AsyncTaskListener
public void onCancelLoad()
public void setListener(LoginProxy.ProxyListener listener)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.