Class VersionedSettingsRegistryImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsRegistryImpl
-
- All Implemented Interfaces:
VersionedSettingsRegistry,VersionedSettingsRegistryEx
public class VersionedSettingsRegistryImpl extends Object implements VersionedSettingsRegistryEx
-
-
Constructor Summary
Constructors Constructor Description VersionedSettingsRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getVersionedDirs()List<String>getVersionedFiles()booleanisVersionedPath(String pathInProjectDir)Collection<String>listVersionedFiles(SProject project)Returns for specified project a collection of versioned file paths relative to project's config dirvoidregisterDir(String relativePath)Registers a directory and all its content for persisting in version controlvoidregisterFile(String relativePath)Registers a single file for persisting in version control
-
-
-
Method Detail
-
registerFile
public void registerFile(@NotNull String relativePath)Description copied from interface:VersionedSettingsRegistryRegisters a single file for persisting in version control- Specified by:
registerFilein interfaceVersionedSettingsRegistry- Parameters:
relativePath- relative path to file from the project's config directory, should use '/' as a file separator
-
registerDir
public void registerDir(@NotNull String relativePath)Description copied from interface:VersionedSettingsRegistryRegisters a directory and all its content for persisting in version control- Specified by:
registerDirin interfaceVersionedSettingsRegistry- Parameters:
relativePath- relative path to directory from the project's config directory, should use '/' as a file separator
-
getVersionedFiles
@NotNull public List<String> getVersionedFiles()
- Specified by:
getVersionedFilesin interfaceVersionedSettingsRegistryEx- Returns:
- registered versioned files
-
getVersionedDirs
@NotNull public List<String> getVersionedDirs()
- Specified by:
getVersionedDirsin interfaceVersionedSettingsRegistryEx- Returns:
- registered versioned directories
-
listVersionedFiles
@NotNull public Collection<String> listVersionedFiles(@NotNull SProject project)
Description copied from interface:VersionedSettingsRegistryExReturns for specified project a collection of versioned file paths relative to project's config dir- Specified by:
listVersionedFilesin interfaceVersionedSettingsRegistryEx- Parameters:
project- project of interest- Returns:
- see above
-
isVersionedPath
public boolean isVersionedPath(@NotNull String pathInProjectDir)- Specified by:
isVersionedPathin interfaceVersionedSettingsRegistryEx- Parameters:
pathInProjectDir- relative path to a file or directory in the project configuration dir- Returns:
- true if this path is versioned, i.e. should be stored under the VCS
-
-