public interface SVcsRootUpdate
Modifier and Type | Method and Description |
---|---|
void |
moveToProject(ConfigAction cause,
SProject target)
Moves this VCS root to specified target project.
|
void |
moveToProject(SProject target)
Moves this VCS root to specified target project.
|
void |
persist()
Persists this VCS root on disk
|
void |
remove()
Removes this VCS root from it's project.
|
void |
restoreDefaultModificationCheckInterval()
Switched to 'use default modification check interval' mode.
|
void |
setExternalId(ConfigAction cause,
java.lang.String externalId)
Changes external id of this VCS root and persists this VCS root configuration to disk
|
void |
setExternalId(java.lang.String externalId)
Changes external id of this VCS root and persists this VCS root configuration to disk
|
void |
setModificationCheckInterval(int value)
Changes modification check interval for the root.
|
void |
setName(java.lang.String newName)
Sets new name to this VCS root.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> props)
Sets new properties to this VCS root.
|
void |
setVcsName(java.lang.String vcsName)
Sets name of version control to this VCS root.
|
void setModificationCheckInterval(int value)
value
- seconds.void restoreDefaultModificationCheckInterval()
void setVcsName(@NotNull java.lang.String vcsName)
vcsName
- name of version controlvoid setName(@NotNull java.lang.String newName) throws DuplicateVcsRootNameException, InvalidNameException
newName
- new VCS root nameDuplicateVcsRootNameException
- if VCS root with such name already exists in VCS root projectInvalidNameException
void setExternalId(@NotNull java.lang.String externalId) throws DuplicateExternalIdException, InvalidIdentifierException, ObsoleteEntityException
externalId
- new external idDuplicateExternalIdException
- 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)InvalidIdentifierException
void setExternalId(@NotNull ConfigAction cause, @NotNull java.lang.String externalId) throws DuplicateExternalIdException, InvalidIdentifierException, ObsoleteEntityException
cause
- config action caused the changeexternalId
- new external idDuplicateExternalIdException
- 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)InvalidIdentifierException
void setProperties(@NotNull java.util.Map<java.lang.String,java.lang.String> props)
props
- new VCS root propertiesvoid persist() throws ProjectNotFoundException
ProjectNotFoundException
- if project where this VCS root belongs does not existvoid remove() throws VcsRootUsedException, ProjectNotFoundException
VcsRootUsedException
- if VCS root is used in some configuration or template and cannot be removedProjectNotFoundException
- if project where this VCS root belongs does not existvoid moveToProject(@NotNull SProject target) throws ScopeCannotBeChangedException, DuplicateVcsRootNameException
target
- target projectScopeCannotBeChangedException
- if move is impossible because of VCS root usagesDuplicateVcsRootNameException
void moveToProject(@NotNull ConfigAction cause, @NotNull SProject target) throws ScopeCannotBeChangedException, DuplicateVcsRootNameException
cause
- config action caused the changetarget
- target projectScopeCannotBeChangedException
- if move is impossible because of VCS root usagesDuplicateExternalIdException
- if newly specified external id already existsDuplicateVcsRootNameException