package eu.dnetlib.domain.functionality;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import eu.dnetlib.domain.DriverResource;

@SuppressWarnings("serial")
public class WebInterfaceLayout extends DriverResource {

	private String name;
	private String mdFormatName;
	private String indexLayoutName;
	private String cssFile;
	
	private List<Searchable> searchFields;
	private List<String> baseCollections = new ArrayList<String>();
	
	public WebInterfaceLayout(String name, 
			String mdFormatName, String indexLayoutName) {
		super();
		this.name = name;
		this.mdFormatName = mdFormatName;
		this.indexLayoutName = indexLayoutName;
		this.searchFields = new ArrayList<Searchable>();
		
		this.setResourceKind("WebInterfaceLayoutResources");
		this.setResourceType("WebInterfaceLayoutResourceType");
		this.setDateOfCreation(new Date());
	}

	public String getIndexLayoutName() {
		return indexLayoutName;
	}

	public void setIndexLayoutName(String indexLayoutName) {
		this.indexLayoutName = indexLayoutName;
	}

	public String getMdFormatName() {
		return mdFormatName;
	}

	public void setMdFormatName(String mdFormatName) {
		this.mdFormatName = mdFormatName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Searchable> getSearchFields() {
		return searchFields;
	}

	public void setSearchFields(List<Searchable> searchFields) {
		this.searchFields = searchFields;
	}

	public String getCssFile() {
		return cssFile;
	}

	public void setCssFile(String cssFile) {
		this.cssFile = cssFile;
	}

	public void setBaseCollections(List<String> baseCollections) {
		this.baseCollections = baseCollections;
	}

	public List<String> getBaseCollections() {
		return baseCollections;
	}
}
