Package sonia.scm.repository.spi
Interface ModifyWorkerHelper
- All Superinterfaces:
ModifyCommand.Worker
This "interface" is not really intended to be used as an interface but rather as
a base class to reduce code redundancy in Worker instances.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFileToScm
(String name, Path file) default void
addMovedFileToScm
(String path, Path targetPath) default void
addRecursive
(String path) default void
default void
createDirectories
(Path targetFile) default ContextEntry.ContextBuilder
createFileContext
(String path) default void
void
doScmDelete
(String toBeDeleted) default void
default Path
getTargetFile
(String path) default boolean
isProtectedPath
(Path path) default void
default void
default String
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Method Details
-
delete
- Specified by:
delete
in interfaceModifyCommand.Worker
- Throws:
IOException
-
move
- Specified by:
move
in interfaceModifyCommand.Worker
- Throws:
IOException
- Since:
- 2.28.0
-
toScmPath
- Since:
- 2.28.0
-
doScmMove
- Since:
- 2.28.0
-
addRecursive
- Since:
- 2.28.0
-
addMovedFileToScm
-
doScmDelete
-
create
- Specified by:
create
in interfaceModifyCommand.Worker
- Throws:
IOException
-
modify
- Specified by:
modify
in interfaceModifyCommand.Worker
- Throws:
IOException
-
addFileToScm
-
createFileContext
-
createDirectories
- Throws:
IOException
-
getTargetFile
-
getWorkDir
File getWorkDir() -
getRepository
Repository getRepository() -
getBranch
String getBranch() -
isProtectedPath
-