Interface IVersionSession
public interface IVersionSession
This interface is the interface which users interact with the version control
system.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
put your documentation comment herecreateAuxiliaryBranch
(IBranch primaryBranch, String name, String desc) Create a auxiliary branch which you can merge to from a primary branchcreatePrimaryBranch
(String name, String desc) Create a new branch for this sessioncreateVersionedContainer
(IBranch branch, String name) createVersionedStorage
(IBranch branch, String name) void
deleteBranch
(IBranch branch) deletes the branch from the version control system and all resources, versionsvoid
deleteResource
(IResource resource) deletes the resource from the version control system and all versionsgetBranchById
(String id) Get a branch by it's idGet all of the branches for this sessionGet the default branch for this sessionGet a Resource by it's idGet the Snapshot by it's idgetVersionById
(String id) Get a Version by it's idget the service for this session
-
Method Details
-
getDefaultBranch
Get the default branch for this session- Returns:
- the default branch
- Throws:
VersionException
VersionCommunicationException
-
getBranches
Get all of the branches for this session- Returns:
- a list of branches that exist on the session
- Throws:
VersionException
VersionCommunicationException
-
getBranchById
Get a branch by it's id- Parameters:
id
- the ID of the branch- Returns:
- the branch
- Throws:
VersionException
VersionCommunicationException
-
getResourceById
Get a Resource by it's id- Parameters:
id
- the ID of the resource- Returns:
- the resource
- Throws:
VersionException
VersionCommunicationException
-
getVersionById
Get a Version by it's id- Parameters:
id
- the ID of the version- Returns:
- the version
- Throws:
VersionException
VersionCommunicationException
-
getSnapshotById
Get the Snapshot by it's id- Parameters:
id
- the ID of the Snapshot- Returns:
- the snapshot
- Throws:
VersionException
VersionCommunicationException
-
createPrimaryBranch
IBranch createPrimaryBranch(String name, String desc) throws VersionException, VersionCommunicationException Create a new branch for this session- Parameters:
name
- the name of the branchdesc
- the description of the branch- Returns:
- the branch
- Throws:
VersionException
VersionCommunicationException
-
createAuxiliaryBranch
IBranch createAuxiliaryBranch(IBranch primaryBranch, String name, String desc) throws VersionException, VersionCommunicationException Create a auxiliary branch which you can merge to from a primary branch- Parameters:
primaryBranch
- the branch to merge fromname
- the name of the branch to createdesc
- the description of the branch to create- Returns:
- the branch
- Throws:
VersionException
VersionCommunicationException
-
createVersionedStorage
IVersionedStorage createVersionedStorage(IBranch branch, String name) throws VersionException, VersionCommunicationException - Parameters:
branch
- the branch to create the verison inname
- the name of the verison- Returns:
- the version
- Throws:
VersionException
VersionCommunicationException
-
createVersionedContainer
IVersionedContainer createVersionedContainer(IBranch branch, String name) throws VersionException, VersionCommunicationException - Parameters:
branch
- the branch to create the verison inname
- the name of the verison- Returns:
- the version
- Throws:
VersionException
VersionCommunicationException
-
deleteBranch
deletes the branch from the version control system and all resources, versions- Parameters:
branch
- to delete- Throws:
VersionException
VersionCommunicationException
-
deleteResource
deletes the resource from the version control system and all versions- Parameters:
resource
- to delete- Throws:
VersionException
VersionCommunicationException
-
close
put your documentation comment here -
getVersionService
IVersionService getVersionService()get the service for this session
-