class NoticeManageController extends BaseController {
    
    @Resource(name = "appEmailUtil")
    private AppEmailUtil appEmailUtil;

    /**
     * 初始化系统通知
     * 
     * @return
     */
    @RequestMapping(value = "/initNotice")
    public ModelAndView init(HttpServletRequest request,
            HttpServletResponse response, Model model) {<FILL_FUNCTION_BODY>}

    /**
     * 发送邮件通知
     */
    @RequestMapping(value = "/add")
    public ModelAndView addNotice(HttpServletRequest request,
            HttpServletResponse response, Model model) {
        String notice = request.getParameter("notice");
        boolean result = appEmailUtil.noticeAllUser(notice);
        model.addAttribute("success", result ? SuccessEnum.SUCCESS.value() : SuccessEnum.FAIL.value());
        return new ModelAndView("");
    }

    /**
     * 获取系统通知
     * 
     * @return
     */
    @RequestMapping(value = "/get")
    public ModelAndView getNotice(HttpServletRequest request,
            HttpServletResponse response, Model model) {
        String notice = "";
        List<String> list = null;
        if (StringUtils.isNotBlank(notice)) {
            list = Arrays.asList(notice.split(ConstUtils.NEXT_LINE));
            model.addAttribute("status", SuccessEnum.SUCCESS.value());
        } else {
            list = new ArrayList<String>();
            model.addAttribute("status", SuccessEnum.FAIL.value());
        }
        model.addAttribute("data", list);
        return new ModelAndView("");
    }

}


        String notice = "";
        model.addAttribute("notice", notice);
        model.addAttribute("success", request.getParameter("success"));
        model.addAttribute("noticeActive", SuccessEnum.SUCCESS.value());
        return new ModelAndView("manage/notice/initNotice");
    
<methods>public non-sealed void <init>() ,public boolean clearTempResource(java.lang.String) ,public java.lang.String getTempResource(java.lang.String) ,public com.sohu.cache.entity.AppUser getUserInfo(javax.servlet.http.HttpServletRequest) ,public java.lang.String markdown2html(java.lang.String, java.lang.String) throws java.lang.Exception,public byte[] read(java.io.InputStream) throws java.io.IOException,public java.lang.Boolean saveTempResource(java.lang.String, java.lang.String) ,public void sendMessage(javax.servlet.http.HttpServletResponse, java.lang.String) <variables>protected com.sohu.cache.dao.AppAuditDao appAuditDao,protected com.sohu.cache.dao.AppAuditLogDao appAuditLogDao,protected com.sohu.cache.stats.app.AppDeployCenter appDeployCenter,protected com.sohu.cache.web.util.AppEmailUtil appEmailUtil,protected com.sohu.cache.dao.AppImportDao appImportDao,protected com.sohu.cache.web.service.AppService appService,protected com.sohu.cache.stats.app.AppStatsCenter appStatsCenter,com.sohu.cache.redis.AssistRedisService assistRedisService,protected com.sohu.cache.async.AsyncService asyncService,protected com.sohu.cache.dao.InstanceDao instanceDao,protected com.sohu.cache.stats.instance.InstanceDeployCenter instanceDeployCenter,protected final org.slf4j.Logger logger,protected com.sohu.cache.machine.MachineCenter machineCenter,protected com.sohu.cache.redis.RedisCenter redisCenter,protected com.sohu.cache.redis.RedisConfigTemplateService redisConfigTemplateService,protected com.sohu.cache.redis.RedisDeployCenter redisDeployCenter,protected com.sohu.cache.web.service.ResourceService resourceService,protected com.sohu.cache.web.service.UserLoginStatusService userLoginStatusService,protected com.sohu.cache.web.service.UserService userService