package com.dianping.cat.report.page.home;

import org.unidal.lookup.util.StringUtils;
import org.unidal.web.mvc.ActionContext;
import org.unidal.web.mvc.payload.annotation.FieldMeta;

import com.dianping.cat.report.ReportPage;
import com.dianping.cat.report.page.AbstractReportPayload;

public class Payload extends AbstractReportPayload<Action> {
	@FieldMeta("op")
	private Action m_action;

	@FieldMeta("docName")
	private String m_docName = "userMonitor";

	@FieldMeta("subDocName")
	private String m_subDocName;

	public Payload() {
		super(ReportPage.HOME);
	}

	@Override
	public Action getAction() {
		return m_action;
	}

	public String getSubDocName() {
		return m_subDocName;
	}

	public void setSubDocName(String subDocName) {
		m_subDocName = subDocName;
	}

	public void setAction(Action action) {
		m_action = action;
	}

	public String getDocName() {
		return m_docName;
	}

	public void setAction(String action) {
		m_action = Action.getByName(action, Action.VIEW);
	}

	public void setDocName(String docName) {
		m_docName = docName;
	}

	@Override
	public void validate(ActionContext<?> ctx) {
		if (m_action == null) {
			m_action = Action.VIEW;
		}
	}
}

@@ -41,51 +41,8 @@
 e;%0A%0A
-import org.unidal.lookup.util.StringUtils;%0A
 impo

modify the compile error