Class SecuredVcsRoot
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsRootImpl
-
- jetbrains.buildServer.vcs.impl.SVcsRootImpl
-
- jetbrains.buildServer.serverSide.impl.auth.SecuredVcsRoot
-
- All Implemented Interfaces:
Comparable<SVcsRoot>
,Loggable
,SPersistentEntity
,LVcsRoot
,SVcsRoot
,SVcsRootAccess
,SVcsRootEx
,SVcsRootUpdate
,SVcsRootUsages
,VcsRoot
public class SecuredVcsRoot extends SVcsRootImpl
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.vcs.impl.SVcsRootImpl
myContext
-
Fields inherited from class jetbrains.buildServer.vcs.impl.VcsRootImpl
BRANCH_SPEC_PROP, CHECKOUT_ROOT, UNKNOWN_ROOT_NAME, VCS_NAME_PROP, VCS_ROOT_NAME_PROP
-
Fields inherited from interface jetbrains.buildServer.vcs.VcsRoot
SECURE_PROPERTY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description SecuredVcsRoot(EntityId<Long> rootId, String name, String vcsName, Map<String,String> parameters, ProjectEx ownerProject, VcsRootContext context, boolean emptyUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
remove()
Removes this VCS root from it's project.void
restoreDefaultModificationCheckInterval()
Switched to 'use default modification check interval' mode.void
setExternalId(String externalId)
Changes external id of this VCS root and persists this VCS root configuration to diskvoid
setModificationCheckInterval(int value)
Changes modification check interval for the root.void
setName(String name)
Changes connection name.void
setProperties(Map<String,String> map)
Adds number of properties.void
setVcsName(String vcsName)
Sets new version control name (name of version control plugin)-
Methods inherited from class jetbrains.buildServer.vcs.impl.SVcsRootImpl
checkAccessibleFrom, checkAccessibleFrom, checkModificationAllowed, compareTo, compareTo, createConfigAction, describe, getAccessibleProjects, getBranchSpec, getConfigDirectory, getConfigId, getConfigurationFile, getConfigurationFile, getDescription, getEntityId, getExternalId, getLastConfigModificationAction, getModificationCheckInterval, getNumberOfUsagesInProjects, getParent, getProject, getReadOnlyReason, getResolvedBranchSpec, getScope, getSimpleName, getUsages, getUsagesInConfigurations, getUsagesInProjects, getVcsDisplayName, getVersion, init, isAccessibleFrom, isAccessibleFrom, isAliasExternalId, isBranchSpecDefined, isEmptyUuid, isReadOnly, isUseDefaultModificationCheckInterval, isUsedInProjects, markPersisted, markUnedited, persist, persist, schedulePersisting, schedulePersisting, schedulePersisting, scheduleRemove, sendExtIdChangedEvents, setExternalId, setExternalId, toString, unregister
-
Methods inherited from class jetbrains.buildServer.vcs.impl.VcsRootImpl
addProperty, equals, getId, getName, getProperties, getProperty, getProperty, getVcsName, hashCode, isEquivalentRoots
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.serverSide.SPersistentEntity
getName, isVirtual
-
Methods inherited from interface jetbrains.buildServer.vcs.VcsRoot
getId, getName, getProperties, getProperty, getProperty, getVcsName
-
-
-
-
Method Detail
-
setVcsName
public void setVcsName(@NotNull String vcsName)
Description copied from class:VcsRootImpl
Sets new version control name (name of version control plugin)- Specified by:
setVcsName
in interfaceSVcsRootUpdate
- Overrides:
setVcsName
in classSVcsRootImpl
- Parameters:
vcsName
- new version control name
-
setName
public void setName(@NotNull String name)
Description copied from class:SVcsRootImpl
Changes connection name.- Specified by:
setName
in interfaceSVcsRootUpdate
- Overrides:
setName
in classSVcsRootImpl
- Parameters:
name
- new connection name.
-
setProperties
public void setProperties(@NotNull Map<String,String> map)
Description copied from class:VcsRootImpl
Adds number of properties.- Specified by:
setProperties
in interfaceSVcsRootUpdate
- Overrides:
setProperties
in classSVcsRootImpl
- Parameters:
map
- properties map.
-
setModificationCheckInterval
public void setModificationCheckInterval(int value)
Description copied from interface:SVcsRootUpdate
Changes modification check interval for the root.- Specified by:
setModificationCheckInterval
in interfaceSVcsRootUpdate
- Overrides:
setModificationCheckInterval
in classSVcsRootImpl
- Parameters:
value
- seconds.
-
restoreDefaultModificationCheckInterval
public void restoreDefaultModificationCheckInterval()
Description copied from interface:SVcsRootUpdate
Switched to 'use default modification check interval' mode.- Specified by:
restoreDefaultModificationCheckInterval
in interfaceSVcsRootUpdate
- Overrides:
restoreDefaultModificationCheckInterval
in classSVcsRootImpl
-
setExternalId
public void setExternalId(@NotNull String externalId) throws DuplicateExternalIdException
Description copied from interface:SVcsRootUpdate
Changes external id of this VCS root and persists this VCS root configuration to disk- Specified by:
setExternalId
in interfaceSVcsRootUpdate
- Overrides:
setExternalId
in classSVcsRootImpl
- Parameters:
externalId
- External ID for this VCS Root- Throws:
DuplicateExternalIdException
- if newly specified external id already exists
-
moveToProject
public void moveToProject(@NotNull SProject target) throws ScopeCannotBeChangedException, VcsRootNotFoundException
Description copied from interface:SVcsRootUpdate
Moves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Specified by:
moveToProject
in interfaceSVcsRootUpdate
- Overrides:
moveToProject
in classSVcsRootImpl
- Parameters:
target
- target project- Throws:
ScopeCannotBeChangedException
- if move is impossible because of VCS root usagesVcsRootNotFoundException
-
moveToProject
public void moveToProject(@NotNull ConfigAction cause, @NotNull SProject target) throws ScopeCannotBeChangedException, DuplicateVcsRootNameException
Description copied from interface:SVcsRootUpdate
Moves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Specified by:
moveToProject
in interfaceSVcsRootUpdate
- Overrides:
moveToProject
in classSVcsRootImpl
- Parameters:
cause
- config action caused the changetarget
- target project- Throws:
ScopeCannotBeChangedException
- if move is impossible because of VCS root usagesDuplicateVcsRootNameException
-
remove
public void remove()
Description copied from interface:SVcsRootUpdate
Removes this VCS root from it's project.- Specified by:
remove
in interfaceSPersistentEntity
- Specified by:
remove
in interfaceSVcsRootUpdate
- Overrides:
remove
in classSVcsRootImpl
-
-