use of net.sourceforge.processdash.hier.DashHierarchy in project processdash by dtuma.
the class TeamProjectSetupWizard method getNodeLocationError.
private String getNodeLocationError() {
String nodeLocation = getValue(NODE_LOCATION);
if (nodeLocation == null)
return "nodeLocationMissing";
DashHierarchy hierarchy = getPSPProperties();
PropertyKey key = hierarchy.findExistingKey(nodeLocation);
if (key == null)
return "nodeLocationNotFound";
while (key != null) {
String templateID = hierarchy.getID(key);
if (templateID != null && templateID.length() > 0)
return "nodeLocationBadParent";
key = key.getParent();
}
return null;
}
use of net.sourceforge.processdash.hier.DashHierarchy in project processdash by dtuma.
the class TeamProjectSetupWizard method getTemplateID.
private String getTemplateID(String path) {
DashHierarchy hierarchy = getPSPProperties();
PropertyKey key = hierarchy.findExistingKey(path);
return hierarchy.getID(key);
}
use of net.sourceforge.processdash.hier.DashHierarchy in project processdash by dtuma.
the class TeamProjectSetupWizard method maybeSetProjectRootNodeId.
private void maybeSetProjectRootNodeId(String projectID) {
DashHierarchy hier = getPSPProperties();
if (hier.hasNodeIDs()) {
PropertyKey rootKey = hier.findExistingKey(getPrefix());
hier.pget(rootKey).setNodeID(projectID + ":root");
}
}
use of net.sourceforge.processdash.hier.DashHierarchy in project processdash by dtuma.
the class RestoreIndivDataWorker method analyze.
public void analyze(String path, Defect d) {
DashHierarchy hier = ctx.getHierarchy();
PropertyKey node = hier.findClosestKey(path);
DefectLogID defectLogID = hier.defectLog(node, defectDirectory);
DefectLog defectLog = new DefectLog(defectLogID.filename, defectLogID.path.path(), ctx.getData());
if (defectLog.getDefect(d.number) == null)
defectLog.writeDefect(d);
}
use of net.sourceforge.processdash.hier.DashHierarchy in project processdash by dtuma.
the class RestoreIndivDataWorker method scanHierarchyForIDs.
private void scanHierarchyForIDs() {
hierarchyPathsToIDs = new HashMap<String, String>();
hierarchyIDsToPaths = new HashMap<String, String>();
DashHierarchy hier = ctx.getHierarchy();
PropertyKey projectNode = hier.findExistingKey(projectPrefix);
scanHierarchyForIDs(hier, projectNode);
}
Aggregations