public interface ESServer
ESRemoteProject which can be used to operate on
existing projects.| Modifier and Type | Field and Description |
|---|---|
static ESServerFactory |
FACTORY
Factory for creating ESServer instances.
|
| Modifier and Type | Method and Description |
|---|---|
ESRemoteProject |
createRemoteProject(ESUsersession usersession,
String projectName,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates an empty project on the server.
|
ESRemoteProject |
createRemoteProject(String projectName,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates an empty project on the server.
|
String |
getCertificateAlias()
Returns the alias for the certificate used by this server.
|
ESUsersession |
getLastUsersession()
Returns the
ESUsersession which was used on the last call to this server. |
String |
getName()
Returns the local name of the server.
|
int |
getPort()
Returns the port of the server where EMFStore is listening on.
|
List<ESRemoteProject> |
getRemoteProjects()
Returns a list with all remote projects hosted on this server.
|
List<ESRemoteProject> |
getRemoteProjects(ESUsersession usersession)
Returns a list with all remote projects hosted on this server.
|
String |
getURL()
Returns the URL of the server.
|
ESUsersession |
login(String name,
String password)
Logs into this server, returning a
ESUsersession. |
void |
setCertificateAlias(String alias)
Sets a new certificate alias.
|
void |
setName(String name)
Sets the local name of the server.
|
void |
setPort(int port)
Sets the port of the server where EMFStore is listening on.
|
void |
setURL(String url)
Sets the URL of the server.
|
static final ESServerFactory FACTORY
String getName()
void setName(String name)
name - the new local name of th serverint getPort()
void setPort(int port)
port - the port of the server EMFStore is listing onString getURL()
void setURL(String url)
url - the URL of the server as a stringString getCertificateAlias()
KeyStoreManagervoid setCertificateAlias(String alias)
alias - the alias of the the certificate to be setList<ESRemoteProject> getRemoteProjects() throws ESException
ESException - in case an error occurs while retrieving the list of remote projectsList<ESRemoteProject> getRemoteProjects(ESUsersession usersession) throws ESException
usersession - the ESUsersession that should be used to fetch the remote projects.null, the session manager will try to inject a session.ESException - in case an error occurs while retrieving the list of remote projectsESUsersession getLastUsersession()
ESUsersession which was used on the last call to this server.ESRemoteProject createRemoteProject(String projectName, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
projectName - The name of the project to be createdmonitor - a IProgressMonitor instance that is used to indicate progress
about creating the remote projectESRemoteProject object containing information about the
created projectESException - If an error occurs while creating the remote projectESRemoteProject createRemoteProject(ESUsersession usersession, String projectName, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
usersession - the ESUsersession that should be used to create the
remote project.null, the session manager will search for a
session.projectName - the name of the projectmonitor - a monitor to show the progressESRemoteProject object containing information about the
created projectESException - If an error occurs while creating the remote projectESUsersession login(String name, String password) throws ESException
ESUsersession.name - the name of the userpassword - the cleartext password of the userESUsersessionESException - in case an error occurs while creating and logging in the session for the given userCopyright © 2017. All rights reserved.