List<XObject> views = new ArrayList<XObject>();
addDefaultViewFor(cube, xCube.getAccountId(), views, user, userSession);
for(String viewId : viewIds) {
String viewName = cube.getCubeViewName(viewId);
XView view = createXView(viewId, viewName, cube, xCube.getAccountId(), user);
XObjectWrapper wrappedCandidate = wrap(view);
wrappedCandidate.setHasChildren(false);
views.add(wrappedCandidate);
}
return views.toArray(new XObject[0]);
}
return new XObject[0];