Esempio n. 1
0
 public final void addFormat(Format format) {
   checkPermission(Right.WRITE);
   if (format == null) {
     return;
   }
   formats.put(format.getId(), format);
 }
Esempio n. 2
0
  /** copy constructor */
  private CubeViewImpl(CubeViewImpl cView) {
    this(cView.view, cView.srcCube, cView.authUser, (String) cView.getPropertyValue("paloSuiteID"));
    this.description = cView.description;

    // deep copy all members
    for (Axis axis : cView.axes) {
      axes.add(axis.copy());
    }

    for (Format format : cView.formats.values()) {
      Format fmCopy = format.copy();
      this.formats.put(fmCopy.getId(), fmCopy);
    }
    for (FormatRangeInfo rangeInfo : cView.formatRanges) formatRanges.add(rangeInfo.copy());

    // TODO deep copy properties...
    //		this.properties = new HashMap<String, Property>();
    properties.putAll(cView.properties);
  }