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

public enum Action implements org.unidal.web.mvc.Action {
	DETAIL("detail"),

	GROUP("group"),

	THREAD("thread"),
	
	HOUR_GRAPH("hourlyGraph"),

	HISTORY_REPORT("history"),

	HISTORY_GRAPH("historyGraph"),

	HOULY_REPORT("view");

	public static Action getByName(String name, Action defaultAction) {
		for (Action action : Action.values()) {
			if (action.getName().equals(name)) {
				return action;
			}
		}

		return defaultAction;
	}

	private String m_name;

	private Action(String name) {
		m_name = name;
	}

	@Override
	public String getName() {
		return m_name;
	}
}

@@ -269,16 +269,176 @@
 (%22view%22)
+,%0A%09%0A%09GROUP_GRAPHS(%22groupGraphs%22),%0A%0A%09HISTORY_GROUP_GRAPH(%22historyGroupGraph%22),%0A%0A%09HISTORY_GROUP_REPORT(%22historyGroupReport%22),%0A%0A%09HOURLY_GROUP_REPORT(%22groupReport%22)
 ;%0A%0A%09publ

modify the action