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()
boolean
isVersionedPath(String pathInProjectDir)
Collection<String>
listVersionedFiles(SProject project)
Returns for specified project a collection of versioned file paths relative to project's config dirvoid
registerDir(String relativePath)
Registers a directory and all its content for persisting in version controlvoid
registerFile(String relativePath)
Registers a single file for persisting in version control
-
-
-
Method Detail
-
registerFile
public void registerFile(@NotNull String relativePath)
Description copied from interface:VersionedSettingsRegistry
Registers a single file for persisting in version control- Specified by:
registerFile
in 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:VersionedSettingsRegistry
Registers a directory and all its content for persisting in version control- Specified by:
registerDir
in 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:
getVersionedFiles
in interfaceVersionedSettingsRegistryEx
- Returns:
- registered versioned files
-
getVersionedDirs
@NotNull public List<String> getVersionedDirs()
- Specified by:
getVersionedDirs
in interfaceVersionedSettingsRegistryEx
- Returns:
- registered versioned directories
-
listVersionedFiles
@NotNull public Collection<String> listVersionedFiles(@NotNull SProject project)
Description copied from interface:VersionedSettingsRegistryEx
Returns for specified project a collection of versioned file paths relative to project's config dir- Specified by:
listVersionedFiles
in interfaceVersionedSettingsRegistryEx
- Parameters:
project
- project of interest- Returns:
- see above
-
isVersionedPath
public boolean isVersionedPath(@NotNull String pathInProjectDir)
- Specified by:
isVersionedPath
in 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
-
-