|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface org.eclipse.emf.emfstore.internal.server.core.subinterfaces.VersionSubInterfaceImpl
public class VersionSubInterfaceImpl
This subinterface implements all version related functionality.
Constructor Summary | |
---|---|
VersionSubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
Default constructor. |
Method Summary | |
---|---|
PrimaryVersionSpec |
createVersion(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec baseVersionSpec,
ChangePackage changePackage,
BranchVersionSpec targetBranch,
PrimaryVersionSpec sourceVersion,
LogMessage logMessage)
Create a new version. |
static Version |
findNextVersion(Version currentVersion)
Helper method which retrieves the next version in the history tree. |
List<BranchInfo> |
getBranches(ProjectId projectId)
Returns all branches for the project with the given ID. |
List<ChangePackage> |
getChanges(ProjectId projectId,
VersionSpec source,
VersionSpec target)
Returns all changes within the specified version range for a given project. |
PrimaryVersionSpec |
resolveVersionSpec(ProjectId projectId,
VersionSpec versionSpec)
Resolves a versionSpec and delivers the corresponding primary versionSpec. |
Methods inherited from class org.eclipse.emf.emfstore.internal.server.core.AbstractSubEmfstoreInterface |
---|
execute, getResourceHelper |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionSubInterfaceImpl(AbstractEmfstoreInterface parentInterface) throws FatalESException
parentInterface
- parent interface
FatalESException
- in case of failureMethod Detail |
---|
public PrimaryVersionSpec resolveVersionSpec(ProjectId projectId, VersionSpec versionSpec) throws InvalidVersionSpecException, ESException
projectId
- project idversionSpec
- versionSpec
InvalidVersionSpecException
- if the project ID is invalid
ESException
- if versionSpec can't be resolved or other failurepublic PrimaryVersionSpec createVersion(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec baseVersionSpec, ChangePackage changePackage, BranchVersionSpec targetBranch, PrimaryVersionSpec sourceVersion, LogMessage logMessage) throws ESException
sessionId
- the ID of the session being used to create a new versionprojectId
- the ID of the project for which a new version is createdbaseVersionSpec
- the base versionchangePackage
- the change package containing all changes that make up the new versiontargetBranch
- the target branch for which to create the new versionsourceVersion
- the source versionlogMessage
- a log message
ESException
- in case of failurepublic List<BranchInfo> getBranches(ProjectId projectId) throws ESException
projectId
- the ID of a project
ESException
- in case of failurepublic List<ChangePackage> getChanges(ProjectId projectId, VersionSpec source, VersionSpec target) throws InvalidVersionSpecException, ESException
projectId
- the ID of a projectsource
- the source versiontarget
- the target version (inclusive)
InvalidVersionSpecException
- if an invalid version has been specified
ESException
- in case of failurepublic static Version findNextVersion(Version currentVersion) throws InvalidVersionSpecException
currentVersion
- current version
InvalidVersionSpecException
- if the path can't be followed further
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |