com.github.dactiv.showcase.web.foundation.audit
类 OperatingRecordController

java.lang.Object
  继承者 com.github.dactiv.showcase.web.foundation.audit.OperatingRecordController

@Controller
@RequestMapping(value="/foundation/audit/operating-record")
public class OperatingRecordController
extends Object

操作记录管理Controller

作者:
maurice

构造方法摘要
OperatingRecordController()
           
 
方法摘要
 String read(org.springframework.ui.Model model, String id)
          读取操作记录,返回foundation/audit/operating-record/read.html页面
 String sendError(String id)
          发送错误报告
 Page<OperatingRecord> view(PageRequest pageRequest, javax.servlet.http.HttpServletRequest request)
          获取操作记录列表
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

OperatingRecordController

public OperatingRecordController()
方法详细信息

view

@RequestMapping(value="view")
public Page<OperatingRecord> view(PageRequest pageRequest,
                                                 javax.servlet.http.HttpServletRequest request)
获取操作记录列表

参数:
pageRequest - 分页实体信息
request - HttpServlet请求
返回:
Page

read

@RequestMapping(value="read")
public String read(org.springframework.ui.Model model,
                                  @RequestParam(value="id")
                                  String id)
读取操作记录,返回foundation/audit/operating-record/read.html页面

参数:
id - 操作记录主键id
model - Spring mvc的Model接口,主要是将model的属性返回到页面中
返回:
String

sendError

@ResponseBody
@RequestMapping(value="send-error")
public String sendError(@RequestParam(value="id")
                                                    String id)
发送错误报告

参数:
id - 操作记录主键id
返回:
String


Copyright © 2014. All rights reserved.