public interface IVersionSession
Modifier and Type | Method and Description |
---|---|
void |
close()
put your documentation comment here
|
IBranch |
createAuxiliaryBranch(IBranch primaryBranch,
String name,
String desc)
Create a auxiliary branch which you can merge to from a primary branch
|
IBranch |
createPrimaryBranch(String name,
String desc)
Create a new branch for this session
|
IVersionedContainer |
createVersionedContainer(IBranch branch,
String name)
|
IVersionedStorage |
createVersionedStorage(IBranch branch,
String name)
|
void |
deleteBranch(IBranch branch)
deletes the branch from the version control system and all resources, versions
|
void |
deleteResource(IResource resource)
deletes the resource from the version control system and all versions
|
IBranch |
getBranchById(String id)
Get a branch by it's id
|
List<IBranch> |
getBranches()
Get all of the branches for this session
|
IBranch |
getDefaultBranch()
Get the default branch for this session
|
IResource |
getResourceById(String id)
Get a Resource by it's id
|
ISnapshot |
getSnapshotById(String id)
Get the Snapshot by it's id
|
IVersion |
getVersionById(String id)
Get a Version by it's id
|
IVersionService |
getVersionService()
get the service for this session
|
IBranch getDefaultBranch() throws VersionException, VersionCommunicationException
VersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
List<IBranch> getBranches() throws VersionException, VersionCommunicationException
VersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IBranch getBranchById(String id) throws VersionException, VersionCommunicationException
id
- the ID of the branchVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IResource getResourceById(String id) throws VersionException, VersionCommunicationException
id
- the ID of the resourceVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IVersion getVersionById(String id) throws VersionException, VersionCommunicationException
id
- the ID of the versionVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
ISnapshot getSnapshotById(String id) throws VersionException, VersionCommunicationException
id
- the ID of the SnapshotVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IBranch createPrimaryBranch(String name, String desc) throws VersionException, VersionCommunicationException
name
- the name of the branchdesc
- the description of the branchVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IBranch createAuxiliaryBranch(IBranch primaryBranch, String name, String desc) throws VersionException, VersionCommunicationException
primaryBranch
- the branch to merge fromname
- the name of the branch to createdesc
- the description of the branch to createVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IVersionedStorage createVersionedStorage(IBranch branch, String name) throws VersionException, VersionCommunicationException
branch
- the branch to create the verison inname
- the name of the verisonVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IVersionedContainer createVersionedContainer(IBranch branch, String name) throws VersionException, VersionCommunicationException
branch
- the branch to create the verison inname
- the name of the verisonVersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
void deleteBranch(IBranch branch) throws VersionException, VersionCommunicationException
branch
- to deleteVersionException
VersionCommunicationException
void deleteResource(IResource resource) throws VersionException, VersionCommunicationException
resource
- to deleteVersionException
VersionCommunicationException
void close() throws VersionException, VersionCommunicationException
VersionException,
- VersionCommunicationExceptionVersionException
VersionCommunicationException
IVersionService getVersionService()