|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESServerImpl,ServerInfo> org.eclipse.emf.emfstore.internal.client.model.impl.api.ESServerImpl
public class ESServerImpl
Mapping between ESServer
and ServerInfo
.
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.emfstore.client.ESServer |
---|
FACTORY |
Constructor Summary | |
---|---|
ESServerImpl(ServerInfo serverInfo)
Constructor. |
Method Summary | |
---|---|
ESRemoteProject |
createRemoteProject(ESUsersession usersession,
String projectName,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
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. |
ESRemoteProject |
getRemoteProject(ESGlobalProjectId projectId)
Returns the remote project with the given ID. |
ESRemoteProject |
getRemoteProject(ESUsersession usersession,
ESGlobalProjectId projectId)
Returns the remote project with the given ID. |
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 serverName)
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. |
Methods inherited from class org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl |
---|
equals, hashCode, toInternalAPI |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESServerImpl(ServerInfo serverInfo)
serverInfo
- the delegateMethod Detail |
---|
public String getName()
getName
in interface ESServer
ESServer.getName()
public void setName(String serverName)
setName
in interface ESServer
serverName
- the new local name of th serverESServer.setName(java.lang.String)
public int getPort()
getPort
in interface ESServer
ESServer.getPort()
public void setPort(int port)
setPort
in interface ESServer
port
- the port of the server EMFStore is listing onESServer.setPort(int)
public String getURL()
getURL
in interface ESServer
ESServer.getURL()
public void setURL(String url)
setURL
in interface ESServer
url
- the URL of the server as a stringESServer.setURL(java.lang.String)
public String getCertificateAlias()
KeyStoreManager
getCertificateAlias
in interface ESServer
ESServer.getCertificateAlias()
public void setCertificateAlias(String alias)
setCertificateAlias
in interface ESServer
alias
- the alias of the the certificate to be setESServer.setCertificateAlias(java.lang.String)
public ESUsersession getLastUsersession()
ESUsersession
which was used on the last call to this server.
getLastUsersession
in interface ESServer
ESServer.getLastUsersession()
public ESRemoteProject createRemoteProject(String projectName, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
createRemoteProject
in interface ESServer
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 projectESServer.createRemoteProject(java.lang.String,
org.eclipse.core.runtime.IProgressMonitor)
public ESRemoteProject createRemoteProject(ESUsersession usersession, String projectName, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws ESException
createRemoteProject
in interface ESServer
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 projectprogressMonitor
- a monitor to show the progress
ESRemoteProject
object containing information about the
created project
ESException
- If an error occurs while creating the remote projectESServer.createRemoteProject(org.eclipse.emf.emfstore.client.ESUsersession,
java.lang.String, org.eclipse.core.runtime.IProgressMonitor)
public ESUsersession login(String name, String password) throws ESException
ESUsersession
.
login
in interface ESServer
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 userESServer.login(java.lang.String, java.lang.String)
public List<ESRemoteProject> getRemoteProjects() throws ESException
getRemoteProjects
in interface ESServer
ESException
- in case an error occurs while retrieving the list of remote projectsESServer.getRemoteProjects()
public List<ESRemoteProject> getRemoteProjects(ESUsersession usersession) throws ESException
getRemoteProjects
in interface ESServer
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 projectsESServer.getRemoteProjects(org.eclipse.emf.emfstore.client.ESUsersession)
public ESRemoteProject getRemoteProject(ESGlobalProjectId projectId) throws ESException
projectId
- the ID of the project
null
, if no project with the given ID has been found
ESException
- in case an error occurs while retrieving the remote projectpublic ESRemoteProject getRemoteProject(ESUsersession usersession, ESGlobalProjectId projectId) throws ESException
usersession
- the ESUsersession
that should be used to fetch the remote project.null
, the session manager will try to inject a session.projectId
- the ID of the project
null
, if no project with the given ID has been found
ESException
- in case an error occurs while retrieving the remote project
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |