|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.emf.emfstore.internal.client.model.util.EMFStoreClientUtil
public final class EMFStoreClientUtil
Utility class for EMFStore clients to ease connecting to the server.
| Method Summary | |
|---|---|
static boolean |
areEqual(ESLocalProject projectA,
ESLocalProject projectB)
Determine if the contents of two projects are equal. |
static ServerInfo |
createServerInfo(String url,
int port,
String certificateAlias)
Create a server info for a given port and URL. |
static Usersession |
createUsersession()
Create a default user session with the default super user and password and a server on localhost on the default port. |
static Usersession |
createUsersession(String username,
String password,
String serverUrl,
int serverPort)
Create a Usersession for the given credentials and server info. |
static boolean |
dryLogin(String username,
String password,
String serverUrl,
int serverPort,
String certificateAlias)
Checks, if the given credentials can be authenticated at the given server. |
static ServerInfo |
giveServerInfo(String url,
int port)
Gives a server info for a given port and URL. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ServerInfo giveServerInfo(String url,
int port)
url - the server URL (e.g. IP address or DNS name)port - the server port
public static ServerInfo createServerInfo(String url,
int port,
String certificateAlias)
url - the server URL (e.g. IP address or DNS name)port - the server portcertificateAlias - the certificateAlias
public static Usersession createUsersession()
public static Usersession createUsersession(String username,
String password,
String serverUrl,
int serverPort)
Usersession for the given credentials and server info.
username - the user namepassword - the passwordserverUrl - server URLserverPort - server port
public static boolean dryLogin(String username,
String password,
String serverUrl,
int serverPort,
String certificateAlias)
throws ESException
username - the user namepassword - the passwordserverUrl - server urlserverPort - server portcertificateAlias - the certificateAlias
ESException - Problem with the EMFStore Server
public static boolean areEqual(ESLocalProject projectA,
ESLocalProject projectB)
projectA - a projectprojectB - another project
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||