use of com.netsteadfast.greenstep.base.exception.ControllerException in project bamboobsc by billchen198318.
the class AnalyticsProcessAction method rendererHtmlExport.
private void rendererHtmlExport(File catalogFile) throws ControllerException, AuthorityException, ServiceException, Exception {
this.rendererHtml(catalogFile);
String datas = Pivot4JUtils.wrapRendererHtml(this.content);
File file = null;
try {
file = new File(Constants.getWorkTmpDir() + "/" + super.getUuid() + ".htm");
FileUtils.writeStringToFile(file, datas, Constants.BASE_ENCODING);
this.oid = UploadSupportUtils.create(Constants.getSystem(), UploadTypes.IS_TEMP, true, file, "analytics-export.htm");
} catch (Exception e) {
throw e;
} finally {
file = null;
}
}
use of com.netsteadfast.greenstep.base.exception.ControllerException in project bamboobsc by billchen198318.
the class AnalyticsProcessAction method doHtmlExport.
/**
* qcharts.analyticsHtmlExportAction.action
*
* @return
* @throws Exception
*/
@JSON(serialize = false)
@ControllerMethodAuthority(programId = "QCHARTS_PROG002D0002Q")
public String doHtmlExport() throws Exception {
File catalogFile = null;
try {
if (!this.allowJob()) {
this.message = this.getNoAllowMessage();
return SUCCESS;
}
this.rendererHtmlExport(catalogFile);
} catch (AuthorityException | ControllerException | ServiceException e) {
this.message = e.getMessage().toString();
} catch (Exception e) {
this.message = this.logException(e);
this.success = IS_EXCEPTION;
}
catalogFile = null;
return SUCCESS;
}
Aggregations