String typeId = "MyDocType2";
// get all children
BigInteger maxItems = BigInteger.valueOf(1000);
BigInteger skipCount = BigInteger.valueOf(0);
TypeDefinitionList children = fRepSvc.getTypeChildren(repositoryId, typeId, true, maxItems, skipCount, null);
for (TypeDefinition type : children.getList()) {
log.info("Found type: " + type.getId() + ", display name is: " + type.getDisplayName());
containsAllBasePropertyDefinitions(type);
}
assertEquals(9, children.getList().size());
assertEquals(9, children.getNumItems().intValue());
assertFalse(children.hasMoreItems());
// get a chunk
maxItems = BigInteger.valueOf(5);
skipCount = BigInteger.valueOf(3);
children = fRepSvc.getTypeChildren(repositoryId, typeId, true, maxItems, skipCount, null);
for (TypeDefinition type : children.getList()) {
log.info("Found type: " + type.getId() + ", display name is: " + type.getDisplayName());
containsAllBasePropertyDefinitions(type);
}
assertEquals(5, children.getList().size());
assertEquals(9, children.getNumItems().intValue());
assertTrue(children.hasMoreItems());
log.info("... testGetTypeChildren() finished.");
}