/** * Create an instance of {@link LookupResponseObjectType } * */ public LookupResponseObjectType createLookupResponseObjectType() { return new LookupResponseObjectType(); }
/** * Create an instance of {@link ResponseObjectType } * */ public ResponseObjectType createResponseObjectType() { return new ResponseObjectType(); }
/** * Create an instance of {@link NodeListResponseObjectType } * */ public NodeListResponseObjectType createNodeListResponseObjectType() { return new NodeListResponseObjectType(); }
/** * Create an instance of {@link XMLResponseObjectType } * */ public XMLResponseObjectType createXMLResponseObjectType() { return new XMLResponseObjectType(); }
/** * Create an instance of {@link LastChangeResponseObjectType } * */ public LastChangeResponseObjectType createLastChangeResponseObjectType() { return new LastChangeResponseObjectType(); }
@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); } }