public class VersionSubInterfaceImpl extends AbstractSubEmfstoreInterface
| Constructor and Description |
|---|
VersionSubInterfaceImpl(AbstractEmfstoreInterface parentInterface)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PrimaryVersionSpec |
createVersion(SessionId sessionId,
ProjectId projectId,
PrimaryVersionSpec baseVersionSpec,
AbstractChangePackage changePackage,
BranchVersionSpec targetBranch,
PrimaryVersionSpec sourceVersion,
LogMessage logMessage)
Create a new version.
|
ChangePackageEnvelope |
downloadChangePackageFragment(SessionId sessionId,
ProjectId projectId,
String proxyId,
int fragmentIndex)
Fetches a single change package fragment.
|
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<AbstractChangePackage> |
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.
|
String |
uploadChangePackageFragment(SessionId sessionId,
ProjectId projectId,
ChangePackageEnvelope envelope)
Given a
ChangePackageEnvelope which contains a change package fragment,
stores one or more fragments by attaching them to a session specific adapter. |
execute, getResourceHelperpublic VersionSubInterfaceImpl(AbstractEmfstoreInterface parentInterface) throws FatalESException
parentInterface - parent interfaceFatalESException - in case of failurepublic PrimaryVersionSpec resolveVersionSpec(ProjectId projectId, VersionSpec versionSpec) throws InvalidVersionSpecException, ESException
projectId - project idversionSpec - versionSpecInvalidVersionSpecException - if the project ID is invalidESException - if versionSpec can't be resolved or other failurepublic String uploadChangePackageFragment(SessionId sessionId, ProjectId projectId, ChangePackageEnvelope envelope) throws ESException
ChangePackageEnvelope which contains a change package fragment,
stores one or more fragments by attaching them to a session specific adapter.sessionId - the SessionId belonging to the calling userprojectId - the ProjectIdenvelope - the ChangePackageEnvelope containing the fragmentESException - in case the fragment couldn't be storedpublic ChangePackageEnvelope downloadChangePackageFragment(SessionId sessionId, ProjectId projectId, String proxyId, int fragmentIndex) throws ESException
sessionId - the SessionId representing the requesting userprojectId - the ProjectId of the associated ProjectproxyId - the ID that identifies the list of stored fragmentsfragmentIndex - allows to request different change package fragmentsChangePackageEnvelope containing the change package fragmentESException - in case the mandatory session adapter is missingpublic PrimaryVersionSpec createVersion(SessionId sessionId, ProjectId projectId, PrimaryVersionSpec baseVersionSpec, AbstractChangePackage 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 messageESException - in case of failurepublic List<BranchInfo> getBranches(ProjectId projectId) throws ESException
projectId - the ID of a projectESException - in case of failurepublic List<AbstractChangePackage> 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 specifiedESException - in case of failurepublic static Version findNextVersion(Version currentVersion) throws InvalidVersionSpecException
currentVersion - current versionInvalidVersionSpecException - if the path can't be followed furtherCopyright © 2017. All rights reserved.