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 voidmoveToProject(ConfigAction cause, SProject target)Moves this VCS root to specified target project.voidmoveToProject(SProject target)Moves this VCS root to specified target project.voidremove()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 diskvoidsetModificationCheckInterval(int value)Changes modification check interval for the root.voidsetName(String name)Changes connection name.voidsetProperties(Map<String,String> map)Adds number of properties.voidsetVcsName(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:VcsRootImplSets new version control name (name of version control plugin)- Specified by:
setVcsNamein interfaceSVcsRootUpdate- Overrides:
setVcsNamein classSVcsRootImpl- Parameters:
vcsName- new version control name
-
setName
public void setName(@NotNull String name)Description copied from class:SVcsRootImplChanges connection name.- Specified by:
setNamein interfaceSVcsRootUpdate- Overrides:
setNamein classSVcsRootImpl- Parameters:
name- new connection name.
-
setProperties
public void setProperties(@NotNull Map<String,String> map)Description copied from class:VcsRootImplAdds number of properties.- Specified by:
setPropertiesin interfaceSVcsRootUpdate- Overrides:
setPropertiesin classSVcsRootImpl- Parameters:
map- properties map.
-
setModificationCheckInterval
public void setModificationCheckInterval(int value)
Description copied from interface:SVcsRootUpdateChanges modification check interval for the root.- Specified by:
setModificationCheckIntervalin interfaceSVcsRootUpdate- Overrides:
setModificationCheckIntervalin classSVcsRootImpl- Parameters:
value- seconds.
-
restoreDefaultModificationCheckInterval
public void restoreDefaultModificationCheckInterval()
Description copied from interface:SVcsRootUpdateSwitched to 'use default modification check interval' mode.- Specified by:
restoreDefaultModificationCheckIntervalin interfaceSVcsRootUpdate- Overrides:
restoreDefaultModificationCheckIntervalin classSVcsRootImpl
-
setExternalId
public void setExternalId(@NotNull String externalId) throws DuplicateExternalIdExceptionDescription copied from interface:SVcsRootUpdateChanges external id of this VCS root and persists this VCS root configuration to disk- Specified by:
setExternalIdin interfaceSVcsRootUpdate- Overrides:
setExternalIdin 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, VcsRootNotFoundExceptionDescription copied from interface:SVcsRootUpdateMoves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Specified by:
moveToProjectin interfaceSVcsRootUpdate- Overrides:
moveToProjectin 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, DuplicateVcsRootNameExceptionDescription copied from interface:SVcsRootUpdateMoves this VCS root to specified target project. Upon successful completion affected configuration settings will be persisted.- Specified by:
moveToProjectin interfaceSVcsRootUpdate- Overrides:
moveToProjectin 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:SVcsRootUpdateRemoves this VCS root from it's project.- Specified by:
removein interfaceSPersistentEntity- Specified by:
removein interfaceSVcsRootUpdate- Overrides:
removein classSVcsRootImpl
-
-