in core/src/main/java/org/apache/sdap/mudrod/weblog/structure/session/SessionTree.java [249:275]
private SessionNode searchParentNode(SessionNode node) {
String nodeKey = node.getKey();
if ("datasetlist".equals(nodeKey)) {
if ("-".equals(node.getReferer())) {
return root;
} else {
SessionNode tmp = this.findLatestRefer(tmpnode, node.getReferer());
if (tmp == null) {
return root;
} else {
return tmp;
}
}
} else if ("dataset".equals(nodeKey)) {
if ("-".equals(node.getReferer())) {
return null;
} else {
return this.findLatestRefer(tmpnode, node.getReferer());
}
} else if ("ftp".equals(nodeKey)) {
return latestDatasetnode;
}
return tmpnode;
}