/** * Create an instance of {@link NodeListType } * */ public NodeListType createNodeListType() { return new NodeListType(); }
@Transactional void updateCacheTree(Metadata parent, String path) { NodeListResponseObjectType result = null; GetVocabularyRequest req = new GetVocabularyRequest(); req.setRequestId(UUID.randomUUID().toString()); String fullPath = path + (isBlank(path) ? "" : "/") + parent.getName(); req.setPath(fullPath); result = port.getVocabulary(req); NodeListType nodes = result.getNodeList(); for (NodeType node : nodes.getNode()) { LOGGER.info("Importing: {}/{}", new Object[] { fullPath, node.getName() }); Metadata child = new Metadata(node.getName()); parent.addChild(child); updateCacheTree(child, fullPath); } }