/*
 * Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved.
 *
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.dianping.cat.report.page.logview;

import java.util.Collection;
import java.util.Collections;

import org.unidal.web.mvc.view.annotation.ModelMeta;

import com.dianping.cat.message.spi.MessageTree;
import com.dianping.cat.mvc.AbstractReportModel;
import com.dianping.cat.report.ReportPage;

@ModelMeta("logview")
public class Model extends AbstractReportModel<Action, ReportPage, Context> {
	private String m_domain;

	private String m_mobileResponse;

	private String m_table;

	private String m_logviewPath;

	private MessageTree m_tree;

	public Model(Context ctx) {
		super(ctx);
	}

	@Override
	public Action getDefaultAction() {
		return Action.VIEW;
	}

	@Override
	public String getDomain() {
		return m_domain;
	}

	public void setDomain(String domain) {
		m_domain = domain;
	}

	@Override
	public Collection<String> getDomains() {
		return Collections.emptySet();
	}

	public String getLogviewPath() {
		return m_logviewPath;
	}

	public void setLogviewPath(String logviewPath) {
		m_logviewPath = logviewPath;
	}

	public String getMobileResponse() {
		return m_mobileResponse;
	}

	public void setMobileResponse(String mobileResponse) {
		m_mobileResponse = mobileResponse;
	}

	public String getTable() {
		return m_table;
	}

	public void setTable(String table) {
		m_table = table;
	}

	public MessageTree getTree() {
		return m_tree;
	}

	public void setTree(MessageTree tree) {
		m_tree = tree;
	}

}
