Search in sources :

Example 6 with EmailServer

use of com.itrus.portal.db.EmailServer in project portal by ixinportal.

the class EmailServerController method details.

// 显示邮箱配置详细信息
@RequestMapping(produces = "text/html")
public String details(Model uiModel) {
    try {
        EmailServer emailServer = emailServerService.getEmailServerByExample(new EmailServerExample());
        if (emailServer == null) {
            return "redirect:/mailconfig?form";
        }
        uiModel.addAttribute("emailServer", emailServer);
    } catch (Exception e) {
        e.printStackTrace();
        uiModel.addAttribute("errMsg", "解密密码失败");
    }
    return "mailconfig/details";
}
Also used : EmailServer(com.itrus.portal.db.EmailServer) EmailServerExample(com.itrus.portal.db.EmailServerExample) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

EmailServer (com.itrus.portal.db.EmailServer)6 EmailServerExample (com.itrus.portal.db.EmailServerExample)3 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ServiceNullException (com.itrus.portal.exception.ServiceNullException)1 Date (java.util.Date)1