public final class EMFStoreClientUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
static void |
logProjectDetails(String loggingPrefix,
String message)
Logs fine grained details about the state of a project action.
|
static void |
logProjectDetails(String loggingPrefix,
String message,
ProjectId projectIdO,
BranchVersionSpec branchSpec)
Logs fine grained details about the state of a project action.
|
static void |
logProjectDetails(String loggingPrefix,
String message,
ProjectId projectIdO,
String branch)
Logs fine grained details about the state of a project action.
|
static void |
logProjectDetails(String loggingPrefix,
String message,
ProjectSpaceBase projectSpace,
BranchVersionSpec branchSpec,
Usersession usersession)
Logs fine grained details about the state of a project action.
|
static void |
logProjectDetails(String loggingPrefix,
String message,
ProjectSpaceBase projectSpace,
String branch,
Usersession usersession)
Logs fine grained details about the state of a project action.
|
public static ServerInfo giveServerInfo(String url, int port)
url - the server URL (e.g. IP address or DNS name)port - the server portpublic 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 certificateAliaspublic 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 portpublic 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 certificateAliasESException - Problem with the EMFStore Serverpublic static boolean areEqual(ESLocalProject projectA, ESLocalProject projectB)
projectA - a projectprojectB - another projectpublic static void logProjectDetails(String loggingPrefix, String message, ProjectSpaceBase projectSpace, BranchVersionSpec branchSpec, Usersession usersession)
loggingPrefix - the logging prefixmessage - the message describing the current stateprojectSpace - the project spacebranchSpec - the branch specusersession - the usersessionpublic static void logProjectDetails(String loggingPrefix, String message, ProjectSpaceBase projectSpace, String branch, Usersession usersession)
loggingPrefix - the logging prefixmessage - the message describing the current stateprojectSpace - the project spacebranch - the branch nameusersession - the usersessionpublic static void logProjectDetails(String loggingPrefix, String message, ProjectId projectIdO, BranchVersionSpec branchSpec)
loggingPrefix - the logging prefixmessage - the message describing the current stateprojectIdO - the project idbranchSpec - the branch specpublic static void logProjectDetails(String loggingPrefix, String message, ProjectId projectIdO, String branch)
loggingPrefix - the logging prefixmessage - the message describing the current stateprojectIdO - the project idbranch - the branch specCopyright © 2017. All rights reserved.