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 TypeMethodDescriptionvoidaddFileToScm(String name, Path file) default voidaddMovedFileToScm(String path, Path targetPath) default voidaddRecursive(String path) default voiddefault voidcreateDirectories(Path targetFile) default ContextEntry.ContextBuildercreateFileContext(String path) default voidvoiddoScmDelete(String toBeDeleted) default voiddefault PathgetTargetFile(String path) default booleanisProtectedPath(Path path) default voiddefault voiddefault String
-
Field Details
-
LOG
static final org.slf4j.Logger LOG
-
-
Method Details
-
delete
- Specified by:
deletein interfaceModifyCommand.Worker- Throws:
IOException
-
move
- Specified by:
movein 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:
createin interfaceModifyCommand.Worker- Throws:
IOException
-
modify
- Specified by:
modifyin interfaceModifyCommand.Worker- Throws:
IOException
-
addFileToScm
-
createFileContext
-
createDirectories
- Throws:
IOException
-
getTargetFile
-
getWorkDir
File getWorkDir() -
getRepository
Repository getRepository() -
getBranch
String getBranch() -
isProtectedPath
-