public class BasicSessionProvider extends ESAbstractSessionProvider
ESAbstractSessionProvider. It's intended for when using EMFStore headless. The UI
counterpart of this would open the login dialog, this implementation throws an exceptions and requires you to login
the Usersession first.| Constructor and Description |
|---|
BasicSessionProvider() |
| 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 serverInfo)
This is the template method for
ESAbstractSessionProvider.provideUsersession(ESServer). |
provideUsersessionpublic ESUsersession provideUsersession(ESServer serverInfo) 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 ESAbstractSessionProviderserverInfo - 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
This 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 sessionESAbstractSessionProvider.login(org.eclipse.emf.emfstore.client.ESUsersession)Copyright © 2017. All rights reserved.