Search in sources :

Example 6 with ControllerMethodAuthority

use of com.netsteadfast.greenstep.base.model.ControllerMethodAuthority 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;
}
Also used : ControllerException(com.netsteadfast.greenstep.base.exception.ControllerException) ServiceException(com.netsteadfast.greenstep.base.exception.ServiceException) File(java.io.File) AuthorityException(com.netsteadfast.greenstep.base.exception.AuthorityException) ControllerException(com.netsteadfast.greenstep.base.exception.ControllerException) ServiceException(com.netsteadfast.greenstep.base.exception.ServiceException) AuthorityException(com.netsteadfast.greenstep.base.exception.AuthorityException) ControllerMethodAuthority(com.netsteadfast.greenstep.base.model.ControllerMethodAuthority) JSON(org.apache.struts2.json.annotations.JSON)

Aggregations

ControllerMethodAuthority (com.netsteadfast.greenstep.base.model.ControllerMethodAuthority)6 AuthorityException (com.netsteadfast.greenstep.base.exception.AuthorityException)3 ControllerException (com.netsteadfast.greenstep.base.exception.ControllerException)3 ServiceException (com.netsteadfast.greenstep.base.exception.ServiceException)3 File (java.io.File)3 JSON (org.apache.struts2.json.annotations.JSON)3 Annotation (java.lang.annotation.Annotation)2 BaseSimpleActionInfo (com.netsteadfast.greenstep.base.model.BaseSimpleActionInfo)1 MenuResultObj (com.netsteadfast.greenstep.model.MenuResultObj)1