/*
* Copyright (C) 2011 Marius Giepz
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* 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 GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package org.saiku.adhoc.model.master;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.pentaho.platform.engine.core.solution.ActionInfo;
public class ReportTemplate {
public ReportTemplate() {
super();
// TODO Auto-generated constructor stub
}
public ReportTemplate(String solution, String path, String name) {
this.solution = solution;
this.path = path;
this.name = name;
}
private String solution;
private String path;
private String name;
private String description;
public String getSolution() {
return solution;
}
public void setSolution(String solution) {
this.solution = solution;
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@JsonIgnore
public String getFullPath() {
return ActionInfo.buildSolutionPath(solution, path, name + ".prpt");
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
}