public class BasicUISessionProvider extends ESAbstractSessionProvider
| Constructor and Description |
|---|
BasicUISessionProvider() |
| Modifier and Type | Method and Description |
|---|---|
ESUsersession |
login(ESUsersession usersession)
This method is called by the SessionManager in order to login a given user session.
|
ESUsersession |
provideUsersession(ESServer server)
This is the template method for
ESAbstractSessionProvider.provideUsersession(ESServer). |
provideUsersessionpublic ESUsersession provideUsersession(ESServer server) throws ESException
This is the template method for ESAbstractSessionProvider.provideUsersession(ESServer). It is called, if the latter couldn't
determine a suitable user session. Use this in order to implement a session selection UI or a headless selection
logic.
provideUsersession in class ESAbstractSessionProviderserver - This parameter is a hint from the ESServer. For that reason it can be null. A common
example is share, where the user first has to select the server before logging in. If ESServer
is set you should allow the user to select the account for the given server.ESException - in case an exception occurred while obtaining the user sessionESAbstractSessionProvider.provideUsersession(org.eclipse.emf.emfstore.client.ESServer)public ESUsersession login(ESUsersession usersession) throws ESException
ESAbstractSessionProviderThis method is called by the SessionManager in order to login a given user session. If the given session can not be logged in, it is the provider's responsibility to either throw an exception or to provide another valid session, e.g. by means of calling a login hdialog that will create a new session.
login in class ESAbstractSessionProviderusersession - the session to be logged inESException - in case an exception occurred while logging in the given sessionCopyright © 2017. All rights reserved.