Class TrashImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.projects.TrashImpl
-
-
Constructor Summary
Constructors Constructor Description TrashImpl(ProjectsPaths projectsPaths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetTrashDirectory(String trashDirName)FilemoveToTrash(File dir, String trashDirName)Moves the specified dir to trash using the given trashDirName.voidremoveFromTrash(String trashDirName)Removes directory with the specified name from the trash.
-
-
-
Constructor Detail
-
TrashImpl
public TrashImpl(@NotNull ProjectsPaths projectsPaths)
-
-
Method Detail
-
moveToTrash
@Nullable public File moveToTrash(@NotNull File dir, @NotNull String trashDirName) throws IOException
Description copied from interface:TrashMoves the specified dir to trash using the given trashDirName.- Specified by:
moveToTrashin interfaceTrash- Parameters:
dir- dir to movetrashDirName- directory name to use under the trash dir- Returns:
- resulting trash directory or null if directory specified as a first argument does not exist
- Throws:
IOException- if move fails or trash dir cannot be created
-
removeFromTrash
public void removeFromTrash(@NotNull String trashDirName)Description copied from interface:TrashRemoves directory with the specified name from the trash.- Specified by:
removeFromTrashin interfaceTrash- Parameters:
trashDirName- directory name in trash
-
getTrashDirectory
@NotNull public File getTrashDirectory(@NotNull String trashDirName)
- Specified by:
getTrashDirectoryin interfaceTrash
-
-