|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ESServer
Represents an EMFStore server and its API. It gives access to ESRemoteProject
which can be used to operate on
existing projects.
Field Summary | |
---|---|
static ESServerFactory |
FACTORY
Factory for creating ESServer instances. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final ESServerFactory FACTORY
Method Detail |
---|
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()
KeyStoreManager
void 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 project
ESRemoteProject
object containing information about the
created project
ESException
- 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 progress
ESRemoteProject
object containing information about the
created project
ESException
- 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 user
ESUsersession
ESException
- in case an error occurs while creating and logging in the session for the given user
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |