Exemple #1
0
  /** @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();
  }
Exemple #2
0
  protected Hierarchy getHierarchy() {
    String hierarchyName = getHierarchyName();

    if (hierarchyName != null) {
      return model.getCube().getHierarchies().get(hierarchyName);
    }

    return null;
  }
Exemple #3
0
  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;
  }