this.type = type;
}
+ public Node getCategoryBase() {
+ // TODO clean this
+ if (type.equals(AETHER_CATEGORY_BASE))
+ return artifactBase;
+ else
+ try {
+ return artifactBase.getParent();
+ } catch (RepositoryException e) {
+ throw new SlcException("unable tyo get parent node for "
+ + artifactBase, e);
+ }
+ }
+
/**
* Override normal behavior to initialize children only when first requested
*/
}
}
- public NodeIterator getDistVersions() {
+ private NodeIterator getDistVersions() {
try {
if (AETHER_CATEGORY_BASE.equals(type))
return null;