/** @param hierarchyName */ public void removeHierarchy(String hierarchyName) { Hierarchy hierarchy = model.getCube().getHierarchies().get(hierarchyName); ChangeSlicer transform = model.getTransform(ChangeSlicer.class); transform.setSlicer(hierarchy, null); configureFilter(); }
protected Hierarchy getHierarchy() { String hierarchyName = getHierarchyName(); if (hierarchyName != null) { return model.getCube().getHierarchies().get(hierarchyName); } return null; }
protected MemberSelection getFilteredMembers() { if (filterMembers == null) { Hierarchy hierarchy = getHierarchy(); if (hierarchy != null) { ChangeSlicer transform = model.getTransform(ChangeSlicer.class); this.filterMembers = new MemberSelection(transform.getSlicer(hierarchy), model.getCube()); if (model instanceof PivotModelImpl) { MemberHierarchyCache cache = ((PivotModelImpl) model).getMemberHierarchyCache(); filterMembers.setMemberHierarchyCache(cache); } } } return filterMembers; }