Search in sources :

Example 6 with SysTemplateVO

use of com.netsteadfast.greenstep.vo.SysTemplateVO in project bamboobsc by billchen198318.

the class SystemTemplateSaveOrUpdateAction method save.

private void save() throws ControllerException, AuthorityException, ServiceException, Exception {
    this.checkFields();
    SysTemplateVO template = new SysTemplateVO();
    this.transformFields2ValueObject(template, new String[] { "templateId", "title", "message", "description" });
    DefaultResult<SysTemplateVO> result = this.systemTemplateLogicService.create(template);
    this.message = result.getSystemMessage().getValue();
    if (result.getValue() != null) {
        this.success = IS_YES;
    }
}
Also used : SysTemplateVO(com.netsteadfast.greenstep.vo.SysTemplateVO)

Aggregations

SysTemplateVO (com.netsteadfast.greenstep.vo.SysTemplateVO)6 ServiceException (com.netsteadfast.greenstep.base.exception.ServiceException)3 ServiceMethodAuthority (com.netsteadfast.greenstep.base.model.ServiceMethodAuthority)1 TemplateResultObj (com.netsteadfast.greenstep.model.TemplateResultObj)1 TbSysTemplateParam (com.netsteadfast.greenstep.po.hbm.TbSysTemplateParam)1 Transactional (org.springframework.transaction.annotation.Transactional)1