|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionManager
The connection manager manages the connection to the EMFStore. It will initiate, reinitiate and terminate the connection as needed.
Field Summary | |
---|---|
static String |
INCOMPATIBLE_VERSION
Connection related failure message. |
static String |
LOGIN_FIRST
Connection related failure message. |
static String |
LOGIN_REFUSED
Connection related failure message. |
static String |
REMOTE
Connection related failure message. |
static String |
UNSUPPORTED_ENCODING
Connection related failure message. |
Fields inherited from interface org.eclipse.emf.emfstore.internal.server.EMFStore |
---|
CHANGEPACKAGE_URI, PROJECT_URI |
Method Summary | |
---|---|
String |
getVersion(ServerInfo serverInfo)
Returns the version of the EMFStore server. |
boolean |
isLoggedIn(SessionId id)
Checks whether session id is logged in. |
AuthenticationInformation |
logIn(String username,
String password,
ServerInfo severInfo,
ClientVersionInfo clientVersionInfo)
Log into the server given by server info. |
void |
logout(SessionId sessionId)
Deletes a session on the server. |
Methods inherited from interface org.eclipse.emf.emfstore.internal.server.EMFStore |
---|
addTag, createEmptyProject, createProject, createVersion, deleteProject, downloadFileChunk, exportProjectHistoryFromServer, getBranches, getChanges, getEMFProperties, getHistoryInfo, getProject, getProjectList, getVersion, importProjectHistoryToServer, registerEPackage, removeTag, resolveUser, resolveVersionSpec, setEMFProperties, transmitProperty, uploadFileChunk |
Field Detail |
---|
static final String REMOTE
static final String LOGIN_FIRST
static final String UNSUPPORTED_ENCODING
static final String LOGIN_REFUSED
static final String INCOMPATIBLE_VERSION
Method Detail |
---|
AuthenticationInformation logIn(String username, String password, ServerInfo severInfo, ClientVersionInfo clientVersionInfo) throws ESException
username
- the user namepassword
- the passwordseverInfo
- the server info for the server to log intoclientVersionInfo
- the client's version
AuthenticationInformation
that can be used for later authentication
ESException
- in case of failurevoid logout(SessionId sessionId) throws ESException
sessionId
- id to be deleted.
ESException
- in case of failure on serverboolean isLoggedIn(SessionId id)
id
- session id
String getVersion(ServerInfo serverInfo) throws ESException
serverInfo
- the EMFStore server whose version should be retrieved
ESException
- in case of a failure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |