this.destroyMembers();
if (viewPath.getCurrent().getPath().equals("versions")) {
if (!viewPath.isEnd()) {
// a specific version
BundleVersionView view = new BundleVersionView(canDelete, canDeploy, canTag);
addMember(view);
view.renderView(viewPath.next());
}
} else if (viewPath.getCurrent().getPath().equals("deployments")) {
// today we do not have an uber-view showing all deployments for a bundle.
// if we did, it would show all deployments to all destinations for all bundle versions.
// because that would be a very large list with a lot of stuff to show, it was deemed
// too complex to be useful for users. thus, we have no uber-deployments view. If we did,
// we would render it here.
if (!viewPath.isEnd()) {
// a specific deployment
//removeMembers(getMembers());
BundleDeploymentView view = new BundleDeploymentView(canDelete, canDeploy, canTag);
addMember(view);
view.renderView(viewPath.next());
}
} else if (viewPath.getCurrent().getPath().equals("destinations")) {
if (!viewPath.isEnd()) {
// a specific destination
BundleDestinationView view = new BundleDestinationView(canDelete, canDeploy, canTag);
addMember(view);
view.renderView(viewPath.next());
}
}
}
}