|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.impl.api.ESRemoteProjectImpl
public class ESRemoteProjectImpl
Represents a remote project that is located on a remote server.
Constructor Summary | |
---|---|
ESRemoteProjectImpl(ServerInfo serverInfo,
ProjectInfo projectInfo)
Constructor. |
Method Summary | |
---|---|
void |
addTag(ESPrimaryVersionSpec primaryVersionSpec,
ESTagVersionSpec tagVersionSpec,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds a tag to the specified version of this project on the server. |
ESLocalProjectImpl |
checkout(String name,
ESUsersession session,
ESPrimaryVersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Checkouts the project in the given version into the local workspace. |
ESLocalProjectImpl |
checkout(String name,
ESUsersession usersession,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checkouts the project in the HEAD version into the local workspace. |
ESLocalProjectImpl |
checkout(String name,
org.eclipse.core.runtime.IProgressMonitor monitor)
Checkouts the project in its HEAD version into the local workspace. |
void |
delete(ESUsersession session,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes the remote project on the server. |
void |
delete(org.eclipse.core.runtime.IProgressMonitor monitor)
Deletes the remote project on the server. |
ESLocalProjectImpl |
fetch(String name,
ESUsersession session,
ESPrimaryVersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
|
List<ESBranchInfo> |
getBranches(ESUsersession usersession,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns all branches for the current project. |
List<ESBranchInfo> |
getBranches(org.eclipse.core.runtime.IProgressMonitor monitor)
Returns a list of branches for the current project. |
ESGlobalProjectId |
getGlobalProjectId()
Returns the global ID of the project. |
ESPrimaryVersionSpec |
getHeadVersion(org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the HEAD version of the project. |
List<ESHistoryInfo> |
getHistoryInfos(ESHistoryQuery<? extends ESHistoryQuery<?>> query,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves a part of the project's version history from the server based on the given query. |
List<ESHistoryInfo> |
getHistoryInfos(ESUsersession session,
ESHistoryQuery<? extends ESHistoryQuery<?>> query,
org.eclipse.core.runtime.IProgressMonitor monitor)
Retrieves a part of the project's version history from the server based on the given query. |
ProjectInfo |
getProjectInfo()
Returns the project info of this remote project. |
String |
getProjectName()
Returns the project's name. |
ESServerImpl |
getServer()
Returns the project's server. |
ServerInfo |
getServerInfo()
Returns the server info of this remote project. |
void |
removeTag(ESPrimaryVersionSpec versionSpec,
ESTagVersionSpec tag,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes a tag from the specified version of this project on the server. |
ESPrimaryVersionSpec |
resolveVersionSpec(ESUsersession session,
ESVersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resolves a ESVersionSpec to a ESPrimaryVersionSpec by querying the server. |
ESPrimaryVersionSpec |
resolveVersionSpec(ESVersionSpec versionSpec,
org.eclipse.core.runtime.IProgressMonitor monitor)
Resolves a ESVersionSpec to a ESPrimaryVersionSpec by querying the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESRemoteProjectImpl(ServerInfo serverInfo, ProjectInfo projectInfo)
serverInfo
- the server the remote project is located onprojectInfo
- information about which project to accessMethod Detail |
---|
public ESGlobalProjectId getGlobalProjectId()
getGlobalProjectId
in interface ESProject
ESProject.getGlobalProjectId()
public String getProjectName()
getProjectName
in interface ESProject
ESProject.getProjectName()
public List<ESBranchInfo> getBranches(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Returns a list of branches for the current project.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession
.
getBranches
in interface ESProject
monitor
- an IProgressMonitor
instance that is used to indicate progress while fetching the branch
information
ESException
- in case an error occurs while retrieving the branch information for the projectESProject.getBranches(org.eclipse.core.runtime.IProgressMonitor)
public List<ESBranchInfo> getBranches(ESUsersession usersession, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
getBranches
in interface ESRemoteProject
usersession
- the user session used to fetch the branch informationmonitor
- an IProgressMonitor
instance that is used to indicate progress while fetching the branch
information
ESException
- in case an error occurs while retrieving the branch information for the projectESRemoteProject.getBranches(org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.core.runtime.IProgressMonitor)
public ESPrimaryVersionSpec resolveVersionSpec(ESVersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
ESVersionSpec
to a ESPrimaryVersionSpec
by querying the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession
.
resolveVersionSpec
in interface ESProject
versionSpec
- the ESVersionSpec
to resolvemonitor
- an IProgressMonitor
instance that is used to indicate progress while resolving the version
ESPrimaryVersionSpec
ESException
- in case an error occurs while resolving the given ESVersionSpec
ESProject.resolveVersionSpec(org.eclipse.emf.emfstore.server.model.versionspec.ESVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public ESPrimaryVersionSpec resolveVersionSpec(ESUsersession session, ESVersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
ESVersionSpec
to a ESPrimaryVersionSpec
by querying the server.
resolveVersionSpec
in interface ESRemoteProject
session
- the user session that will be used by the
ESServerCall
to resolve the given
ESVersionSpec
versionSpec
- the version specifier to resolvemonitor
- an IProgressMonitor
instance that is used to indicate progress while resolving the version
specifier
ESException
- in case an error occurs while resolving the versionESRemoteProject.resolveVersionSpec(org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.emf.emfstore.server.model.versionspec.ESVersionSpec, org.eclipse.core.runtime.IProgressMonitor)
public List<ESHistoryInfo> getHistoryInfos(ESHistoryQuery<? extends ESHistoryQuery<?>> query, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Retrieves a part of the project's version history from the server based on the given query. Use
ESHistoryQueryFactory
to generate query objects.
getHistoryInfos
in interface ESProject
query
- the ESHistoryQuery
to be performed in order to fetch the history informationmonitor
- an IProgressMonitor
instance that is used to indicate progress while fetching the history
information
ESException
- in case an error occurs while retrieving the history informationESProject.getHistoryInfos(org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery,
org.eclipse.core.runtime.IProgressMonitor)
public List<ESHistoryInfo> getHistoryInfos(ESUsersession session, ESHistoryQuery<? extends ESHistoryQuery<?>> query, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
ESHistoryQueryFactory
to generate query objects.
getHistoryInfos
in interface ESRemoteProject
session
- the user session that will be used by the
ESServerCall
to fetch the history
informationquery
- the query to be performed in order to fetch the history informationmonitor
- an IProgressMonitor
instance that is used to indicate progress while fetching the history
information
ESException
- in case an error occurs while retrieving the history informationESRemoteProject.getHistoryInfos(org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.emf.emfstore.server.model.query.ESHistoryQuery, org.eclipse.core.runtime.IProgressMonitor)
public void addTag(ESPrimaryVersionSpec primaryVersionSpec, ESTagVersionSpec tagVersionSpec, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Adds a tag to the specified version of this project on the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession
.
addTag
in interface ESProject
primaryVersionSpec
- the ESPrimaryVersionSpec
that should be taggedtagVersionSpec
- the tag being createdmonitor
- an IProgressMonitor
instance that is used to indicate progress while adding the tag
ESException
- in case the given tag could not be removedESProject.addTag(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec,
org.eclipse.emf.emfstore.server.model.versionspec.ESTagVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public void removeTag(ESPrimaryVersionSpec versionSpec, ESTagVersionSpec tag, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Removes a tag from the specified version of this project on the server.
When calling this method on a remote project it is recommended to use the overloaded method which allows to
specify an ESUsersession
.
removeTag
in interface ESProject
versionSpec
- the ESPrimaryVersionSpec
identifying the version from which the tag should be removedtag
- the ESTagVersionSpec
to be removedmonitor
- an IProgressMonitor
instance that is used to indicate progress while removing the tag
ESException
- in case the given tag could not be removedESProject.removeTag(org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec,
org.eclipse.emf.emfstore.server.model.versionspec.ESTagVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public ESLocalProjectImpl checkout(String name, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Checkouts the project in its HEAD version into the local workspace.
The ESUsersession
used for checking out the project will be injected.
checkout
in interface ESRemoteProject
name
- the name of the copy being created during the checkoutmonitor
- the progress monitor that is used during checkout in order to indicate progress
ESException
- in case an error occurs during checkoutESRemoteProject.checkout(java.lang.String,
org.eclipse.core.runtime.IProgressMonitor)
public ESLocalProjectImpl checkout(String name, ESUsersession usersession, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
Checkouts the project in the HEAD version into the local workspace.
The caller must provide the ESUsersession
used for checking out the project, e.g. by specifying the
session that was lastly used in an ESServer
.
The caller also must specify which specific ESVersionSpec
to checkout. If the HEAD version should get
checked out, the ESVersionFactory
must be used, which
can be fetched via ESVersionSpec.FACTORY
.
checkout
in interface ESRemoteProject
name
- the name of the copy being created during the checkoutusersession
- the user session that will be used by the
ESServerCall
to checkout the projectmonitor
- the IProgressMonitor
that is used during checkout in order to indicate progress
ESException
- in case an error occurs during checkoutESRemoteProject.checkout(java.lang.String,
org.eclipse.emf.emfstore.client.ESUsersession, org.eclipse.core.runtime.IProgressMonitor)
public ESLocalProjectImpl fetch(String name, ESUsersession session, ESPrimaryVersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws ESException
fetch
in interface ESRemoteProject
name
- the name of the copy being created during the fetchsession
- the user session that will be used by the
ESServerCall
to fetch the projectversionSpec
- the version that should be fetched.progressMonitor
- the IProgressMonitor
that is used during checkout in order to indicate progress
ESException
- in case an error occurs during fetchESRemoteProject.fetch(java.lang.String,
org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public ESLocalProjectImpl checkout(String name, ESUsersession session, ESPrimaryVersionSpec versionSpec, org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws ESException
Checkouts the project in the given version into the local workspace.
The caller must provide the ESUsersession
used for checking out the project, e.g. by specifying the
session that was lastly used in an ESServer
.
The caller also must specify which specific ESVersionSpec
to checkout. If the HEAD version should get
checked out, the ESVersionFactory
must be used, which
can be fetched via ESVersionSpec.FACTORY
.
checkout
in interface ESRemoteProject
name
- the name of the copy being created during the checkoutsession
- the user session that will be used by the
ESServerCall
to checkout the projectversionSpec
- the version that should be checked out.progressMonitor
- the IProgressMonitor
that is used during checkout in order to indicate progress
ESException
- in case an error occurs during checkoutESRemoteProject.checkout(java.lang.String,
org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.emf.emfstore.server.model.versionspec.ESPrimaryVersionSpec,
org.eclipse.core.runtime.IProgressMonitor)
public void delete(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
delete
in interface ESProject
delete
in interface ESRemoteProject
monitor
- an IProgressMonitor
used to indicate progress
ESException
- in case an error occurs during the deletion of the projectESRemoteProject.delete(org.eclipse.core.runtime.IProgressMonitor)
public void delete(ESUsersession session, org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
delete
in interface ESRemoteProject
session
- the user session that will be used by the
ESServerCall
to delete the remote
projectmonitor
- an IProgressMonitor
used to indicate progress
ESException
- in case an error occurs during the deletion of the projectESRemoteProject.delete(org.eclipse.emf.emfstore.client.ESUsersession,
org.eclipse.core.runtime.IProgressMonitor)
public ESServerImpl getServer()
getServer
in interface ESRemoteProject
ESRemoteProject.getServer()
public ESPrimaryVersionSpec getHeadVersion(org.eclipse.core.runtime.IProgressMonitor monitor) throws ESException
getHeadVersion
in interface ESRemoteProject
monitor
- an IProgressMonitor
used to indicate progress
ESException
- in case an error occurs while fetching the HEAD version of the projectESRemoteProject.getHeadVersion(org.eclipse.core.runtime.IProgressMonitor)
public ProjectInfo getProjectInfo()
public ServerInfo getServerInfo()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |