Package jetbrains.buildServer.vcs
Interface SVcsRootUpdate
-
- All Known Subinterfaces:
SVcsRoot,SVcsRootEx
- All Known Implementing Classes:
DeletedVcsRoot,InaccessibleVcsRoot,MockSVcsRoot,SecuredVcsRoot,SVcsRootImpl
public interface SVcsRootUpdateCreated 22.08.13 17:18- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmoveToProject(ConfigAction cause, SProject target)Moves this VCS root to specified target project.voidmoveToProject(SProject target)Moves this VCS root to specified target project.voidpersist()Persists this VCS root on diskvoidremove()Removes this VCS root from it's project.voidrestoreDefaultModificationCheckInterval()Switched to 'use default modification check interval' mode.voidsetExternalId(String externalId)Changes external id of this VCS root and persists this VCS root configuration to diskvoidsetExternalId(ConfigAction cause, String externalId)Changes external id of this VCS root and persists this VCS root configuration to diskvoidsetModificationCheckInterval(int value)Changes modification check interval for the root.voidsetName(String newName)Sets new name to this VCS root.voidsetProperties(Map<String,String> props)Sets new properties to this VCS root.voidsetVcsName(String vcsName)Sets name of version control to this VCS root.
-
-
-
Method Detail
-
setModificationCheckInterval
void setModificationCheckInterval(int value) throws ReadOnlyEntityExceptionChanges modification check interval for the root.- Parameters:
value- seconds.- Throws:
ReadOnlyEntityException
-
restoreDefaultModificationCheckInterval
void restoreDefaultModificationCheckInterval() throws ReadOnlyEntityExceptionSwitched to 'use default modification check interval' mode.- Throws:
ReadOnlyEntityException
-
setVcsName
void setVcsName(@NotNull String vcsName) throws ReadOnlyEntityExceptionSets name of version control to this VCS root.- Parameters:
vcsName- name of version control- Throws:
ReadOnlyEntityException- Since:
- 8.0
-
setName
void setName(@NotNull String newName) throws DuplicateVcsRootNameException, InvalidNameException, ReadOnlyEntityExceptionSets new name to this VCS root.- Parameters:
newName- new VCS root name- Throws:
DuplicateVcsRootNameException- if VCS root with such name already exists in VCS root projectInvalidNameExceptionReadOnlyEntityException- Since:
- 8.0
-
setExternalId
void setExternalId(@NotNull String externalId) throws DuplicateExternalIdException, InvalidIdentifierException, ObsoleteEntityException, ReadOnlyEntityExceptionChanges external id of this VCS root and persists this VCS root configuration to disk- Parameters:
externalId- new external id- Throws:
DuplicateExternalIdException- if newly specified external id already existsObsoleteEntityException- when VCS root is not the same as the one in the project model (since 9.1.2)InvalidIdentifierExceptionReadOnlyEntityException- Since:
- 8.0
-
setExternalId
void setExternalId(@NotNull ConfigAction cause, @NotNull String externalId) throws DuplicateExternalIdException, InvalidIdentifierException, ObsoleteEntityException, ReadOnlyEntityExceptionChanges external id of this VCS root and persists this VCS root configuration to disk- Parameters:
cause- config action caused the changeexternalId- new external id- Throws:
DuplicateExternalIdException- if newly specified external id already existsObsoleteEntityException- when VCS root is not the same as the one in the project model (since 9.1.2)InvalidIdentifierExceptionReadOnlyEntityException- Since:
- 9.0
-
setProperties
void setProperties(@NotNull Map<String,String> props) throws ReadOnlyEntityExceptionSets new properties to this VCS root.- Parameters:
props- new VCS root properties- Throws:
ReadOnlyEntityException- Since:
- 8.0
-
persist
void persist() throws ProjectNotFoundExceptionPersists this VCS root on disk- Throws:
ProjectNotFoundException- if project where this VCS root belongs does not exist- Since:
- 8.0
-
remove
void remove() throws VcsRootUsedException, ProjectNotFoundException, ReadOnlyEntityExceptionRemoves this VCS root from it's project.- Throws:
VcsRootUsedException- if VCS root is used in some configuration or template and cannot be removedProjectNotFoundException- if project where this VCS root belongs does not existReadOnlyEntityException- Since:
- 8.0
-
moveToProject
void moveToProject(@NotNull SProject target) throws ScopeCannotBeChangedException, DuplicateVcsRootNameException, ReadOnlyEntityExceptionMoves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Parameters:
target- target project- Throws:
ScopeCannotBeChangedException- if move is impossible because of VCS root usagesReadOnlyEntityException- if target project is read onlyDuplicateVcsRootNameException- Since:
- 8.0
-
moveToProject
void moveToProject(@NotNull ConfigAction cause, @NotNull SProject target) throws ScopeCannotBeChangedException, DuplicateVcsRootNameException, ReadOnlyEntityExceptionMoves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Parameters:
cause- config action caused the changetarget- target project- Throws:
ScopeCannotBeChangedException- if move is impossible because of VCS root usagesDuplicateExternalIdException- if newly specified external id already existsReadOnlyEntityException- if target project is read onlyDuplicateVcsRootNameException- Since:
- 9.0
-
-