|
|
|
@ -34,6 +34,7 @@ public class WatermarkSettingPane extends AbstractTemplateServerSettingPane {
|
|
|
|
|
@Override |
|
|
|
|
protected void populateServerSettings() { |
|
|
|
|
WatermarkAttr watermarkAttr = ReportUtils.getWatermarkAttrFromServerConfig(); |
|
|
|
|
watermarkAttr.setValid(true); |
|
|
|
|
watermarkPane.populate(watermarkAttr); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -55,8 +56,9 @@ public class WatermarkSettingPane extends AbstractTemplateServerSettingPane {
|
|
|
|
|
|
|
|
|
|
public WatermarkAttr update() { |
|
|
|
|
WatermarkAttr watermark = watermarkPane.update(); |
|
|
|
|
if (isUsingServerSettings()) { |
|
|
|
|
watermark.setValid(false); |
|
|
|
|
if (!isUsingServerSettings()) { |
|
|
|
|
watermark.setValid(true); |
|
|
|
|
watermark.setWaterMarkProvider(WaterMarkProvideConstant.TEMPLATE); |
|
|
|
|
} |
|
|
|
|
return watermark; |
|
|
|
|
} |
|
|
|
|