Class VersionedSettingsPendingDeletesImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.VersionedSettingsPendingDeletesImpl
-
- All Implemented Interfaces:
VersionedSettingsPendingDeletes
public class VersionedSettingsPendingDeletesImpl extends Object implements VersionedSettingsPendingDeletes
-
-
Constructor Summary
Constructors Constructor Description VersionedSettingsPendingDeletesImpl(ServerPaths serverPaths, VersionedSettingsOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDirsToDelete(VcsRootInstance root, Collection<String> dirs)
Marks specified dir paths as pending deletes in the given settings VCS root.void
addFilesToDelete(VcsRootInstance root, Collection<String> files)
Marks specified file paths as pending deletes in the given settings VCS root.void
clear(VcsRootInstance root)
Clears pending deletes in the specified settings VCS rootSet<String>
getDirsToDelete(VcsRootInstance root)
Returns set of pending dir deletes for specified settings root.Set<String>
getFilesToDelete(VcsRootInstance root)
Returns set of pending file deletes for specified settings root.
-
-
-
Constructor Detail
-
VersionedSettingsPendingDeletesImpl
public VersionedSettingsPendingDeletesImpl(@NotNull ServerPaths serverPaths, @NotNull VersionedSettingsOptions options)
-
-
Method Detail
-
getFilesToDelete
@NotNull public Set<String> getFilesToDelete(@NotNull VcsRootInstance root)
Description copied from interface:VersionedSettingsPendingDeletes
Returns set of pending file deletes for specified settings root. Paths start from the projects dir and use / as path separator.- Specified by:
getFilesToDelete
in interfaceVersionedSettingsPendingDeletes
- Parameters:
root
- settings VCS root- Returns:
- see above
-
getDirsToDelete
@NotNull public Set<String> getDirsToDelete(@NotNull VcsRootInstance root)
Description copied from interface:VersionedSettingsPendingDeletes
Returns set of pending dir deletes for specified settings root. Paths start from the projects dir and use / as path separator.- Specified by:
getDirsToDelete
in interfaceVersionedSettingsPendingDeletes
- Parameters:
root
- settings VCS root- Returns:
- see above
-
addFilesToDelete
public void addFilesToDelete(@NotNull VcsRootInstance root, @NotNull Collection<String> files)
Description copied from interface:VersionedSettingsPendingDeletes
Marks specified file paths as pending deletes in the given settings VCS root. Should start from projects dir and use / as a file separator.- Specified by:
addFilesToDelete
in interfaceVersionedSettingsPendingDeletes
- Parameters:
root
- settings VCS rootfiles
- files to delete on the next commit
-
addDirsToDelete
public void addDirsToDelete(@NotNull VcsRootInstance root, @NotNull Collection<String> dirs)
Description copied from interface:VersionedSettingsPendingDeletes
Marks specified dir paths as pending deletes in the given settings VCS root. Should start from projects dir and use / as a file separator.- Specified by:
addDirsToDelete
in interfaceVersionedSettingsPendingDeletes
- Parameters:
root
- settings VCS rootdirs
- dirs to delete on the next commit
-
clear
public void clear(@NotNull VcsRootInstance root)
Description copied from interface:VersionedSettingsPendingDeletes
Clears pending deletes in the specified settings VCS root- Specified by:
clear
in interfaceVersionedSettingsPendingDeletes
- Parameters:
root
- settings root
-
-