|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface VcsRootsUpdate
Vcs root registry.
| Method Summary | |
|---|---|
SVcsRoot |
createNewVcsRoot(java.lang.String vcsSupportName,
java.lang.String vcsRootName,
java.util.Map<java.lang.String,java.lang.String> options,
VcsRootScope scope)
Creates and registers new root with specified parameters. |
SVcsRoot |
createNewVcsRoot(SVcsRoot originalRoot,
VcsRootScope scope)
Creates copy of specified VCS root. |
SVcsRoot |
createNewVcsRoot(VcsUrl url,
java.lang.String name,
VcsRootScope scope)
Creates a VCS root from an URL |
void |
persistVcsRoots()
Persists all of the VCS roots on disk. |
void |
removeVcsRoot(long vcsRootId)
Removes VCS root from the list of registered vcs roots. |
void |
setVcsRootScope(long vcsRootId,
VcsRootScope scope)
Sets scope of the specified VCS root. |
SVcsRoot |
updateVcsRoot(long vcsRootId,
java.lang.String vcsSupportName,
java.lang.String newVcsRootName,
java.util.Map<java.lang.String,java.lang.String> options)
Updates VCS root with specified id and sets there new options and checkout path. |
| Method Detail |
|---|
@NotNull
SVcsRoot createNewVcsRoot(@NotNull
java.lang.String vcsSupportName,
@Nullable
java.lang.String vcsRootName,
@NotNull
java.util.Map<java.lang.String,java.lang.String> options,
@NotNull
VcsRootScope scope)
throws UnknownVcsException,
DuplicateVcsRootNameException
vcsSupportName - VCS support namevcsRootName - optional name of this VCS root, if null or empty string, unique name will be generated automaticallyoptions - VCS root optionsscope - scope of newly created VCS root
DuplicateVcsRootNameException - if name is not null and VCS root with such name already exists
UnknownVcsException - if specified VCS support does not exist
@NotNull
SVcsRoot createNewVcsRoot(@NotNull
VcsUrl url,
@NotNull
java.lang.String name,
@NotNull
VcsRootScope scope)
throws UnknownVcsException,
VcsException
url - the URL (todo describe in more detail)name - the name of the rootscope - scope of created VCS root
UnknownVcsException - if there is no VCS support for this URL
VcsException - if other error occurs
@NotNull
SVcsRoot createNewVcsRoot(@NotNull
SVcsRoot originalRoot,
@NotNull
VcsRootScope scope)
originalRoot - VCS root to copyscope - scope of newly created VCS root
@NotNull
SVcsRoot updateVcsRoot(long vcsRootId,
@NotNull
java.lang.String vcsSupportName,
@NotNull
java.lang.String newVcsRootName,
@NotNull
java.util.Map<java.lang.String,java.lang.String> options)
throws VcsRootNotFoundException,
DuplicateVcsRootNameException
vcsRootId - id of VCS root to updatevcsSupportName - name/type of VCS (VcsSupportConfig.getName())newVcsRootName - new VCS root nameoptions - new options
DuplicateVcsRootNameException - if new VCS root name is specified and another VCS root with same name already exists
VcsRootNotFoundException - if VCS root with specified id does not exist
void setVcsRootScope(long vcsRootId,
@NotNull
VcsRootScope scope)
throws VcsRootNotFoundException,
ScopeCannotBeChangedException
vcsRootId - VCS root idscope - VCS root scope
VcsRootNotFoundException - if VCS root does not exist
ScopeCannotBeChangedException - on attempt to set local project scope if VCS root is used in another project
void removeVcsRoot(long vcsRootId)
throws VcsRootUsedException
vcsRootId - vcs root id
VcsRootUsedException - if VCS root is attached to a build configuration
void persistVcsRoots()
throws PersistFailedException
PersistFailedException - if persistence failed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||