示例#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();
  }
示例#2
0
  public void apply() {
    List<Member> members = null;

    if (selection != null) {
      members = new ArrayList<Member>(selection.length);

      for (TreeNode node : selection) {
        MemberNode memberNode = (MemberNode) node;
        members.add(memberNode.getObject());
      }
    }

    ChangeSlicer transform = model.getTransform(ChangeSlicer.class);
    transform.setSlicer(getHierarchy(), members);
  }