use of com.b2international.index.revision.BaseRevisionBranching in project snow-owl by b2ihealthcare.
the class BranchSearchRequest method expand.
private void expand(RepositoryContext context, List<Branch> branchHits) {
if (branchHits.isEmpty())
return;
if (expand().containsKey(Branch.Expand.CHILDREN)) {
final BaseRevisionBranching branching = context.service(BaseRevisionBranching.class);
for (Branch branchHit : branchHits) {
final List<Branch> children = toBranchData(branching, branching.getChildren(branchHit.path()));
branchHit.setChildren(new Branches(children, null, children.size(), children.size()));
}
}
}
use of com.b2international.index.revision.BaseRevisionBranching in project snow-owl by b2ihealthcare.
the class SnomedExtensionUpgradeTest method assertState.
private void assertState(String branchPath, String compareWith, BranchState expectedState) {
BaseRevisionBranching branching = ApplicationContext.getServiceForClass(RepositoryManager.class).get(SnomedTerminologyComponentConstants.TOOLING_ID).service(BaseRevisionBranching.class);
assertEquals(expectedState, branching.getBranchState(branchPath, compareWith));
}
Aggregations