public List<SaikuHierarchy> getAllDimensionHierarchies(@NotNull SaikuCube cube, String dimensionName) {
try {
SaikuDimension dim = metaExplorer.getDimension(cube, dimensionName);
if (dim == null) {
throw new SaikuServiceException("Cannot find dimension ( " + dimensionName + ") for cube ( " + cube + " )");
}
return dim.getHierarchies();
} catch (SaikuOlapException e) {
throw new SaikuServiceException(
"Cannot get all hierarchies for cube ( " + cube + " ) dimension ( " + dimensionName + " )", e);
}
}