Package org.openl.rules.repository.api
Interface BranchRepository
-
- All Superinterfaces:
AutoCloseable,Repository
public interface BranchRepository extends Repository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbranchExists(String branch)voidcreateBranch(String projectPath, String branch)voiddeleteBranch(String projectPath, String branch)BranchRepositoryforBranch(String branch)StringgetBaseBranch()StringgetBranch()List<String>getBranches(String projectPath)booleanisBranchProtected(String branch)booleanisMergedInto(String from, String to)booleanisValidBranchName(String branch)voidmerge(String branchFrom, UserInfo author, ConflictResolveData conflictResolveData)voidpull(UserInfo author)-
Methods inherited from interface org.openl.rules.repository.api.Repository
check, checkHistory, close, copyHistory, delete, delete, deleteHistory, getId, getName, list, listHistory, read, readHistory, save, save, setListener, supports, validateConnection
-
-
-
-
Method Detail
-
isMergedInto
boolean isMergedInto(String from, String to) throws IOException
- Throws:
IOException
-
getBranch
String getBranch()
-
isBranchProtected
boolean isBranchProtected(String branch)
-
createBranch
void createBranch(String projectPath, String branch) throws IOException
- Throws:
IOException
-
deleteBranch
void deleteBranch(String projectPath, String branch) throws IOException
- Throws:
IOException
-
getBranches
List<String> getBranches(String projectPath) throws IOException
- Throws:
IOException
-
forBranch
BranchRepository forBranch(String branch) throws IOException
- Throws:
IOException
-
isValidBranchName
boolean isValidBranchName(String branch)
-
branchExists
boolean branchExists(String branch) throws IOException
- Throws:
IOException
-
merge
void merge(String branchFrom, UserInfo author, ConflictResolveData conflictResolveData) throws IOException
- Throws:
IOException
-
getBaseBranch
String getBaseBranch()
-
pull
void pull(UserInfo author) throws IOException
- Throws:
IOException
-
-