/** * * geo-platform * Rich webgis framework * http://geo-platform.org * ==================================================================== * * Copyright (C) 2008-2017 geoSDI Group (CNR IMAA - Potenza - ITALY). * * 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 3 of the License, or * (at your option) any later version. This program is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. 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, see http://www.gnu.org/licenses/ * * ==================================================================== * * Linking this library statically or dynamically with other modules is * making a combined work based on this library. Thus, the terms and * conditions of the GNU General Public License cover the whole combination. * * As a special exception, the copyright holders of this library give you permission * to link this library with independent modules to produce an executable, regardless * of the license terms of these independent modules, and to copy and distribute * the resulting executable under terms of your choice, provided that you also meet, * for each linked independent module, the terms and conditions of the license of * that module. An independent module is a module which is not derived from or * based on this library. If you modify this library, you may extend this exception * to your version of the library, but you are not obligated to do so. If you do not * wish to do so, delete this exception statement from your version. */ package org.geosdi.geoplatform.gui.configuration.map.client.layer; import java.io.Serializable; import org.geosdi.geoplatform.gui.configuration.map.client.geometry.BBoxClientInfo; import org.geosdi.geoplatform.gui.shared.GPLayerType; /** * @author Giuseppe La Scaleia - CNR IMAA geoSDI Group * @email giuseppe.lascaleia@geosdi.org * */ public abstract class GPLayerClientInfo implements Serializable, Comparable<IGPFolderElements>, IGPFolderElements { private static final long serialVersionUID = 2098509654335891064L; // private Long id; private String layerName; private String alias; private String title; private String abstractText; private String dataSource; private String crs; private BBoxClientInfo bbox; private GPLayerType layerType; private int zIndex; private String cqlFilter; private String timeFilter; private String variableTimeFilter; private boolean checked; private boolean singleTileRequest; /** * @return the id */ public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the layerName */ public String getLayerName() { return layerName; } /** * @param layerName the layerName to set */ public void setLayerName(String layerName) { this.layerName = layerName; } /** * @return the alias */ public String getAlias() { return alias; } /** * @param alias the alias to set */ public void setAlias(String alias) { this.alias = alias; } /** * @return the title */ public String getTitle() { return title; } /** * @param title the title to set */ public void setTitle(String title) { this.title = title; } /** * @return the abstractText */ public String getAbstractText() { return abstractText; } /** * @param abstractText the abstractText to set */ public void setAbstractText(String abstractText) { this.abstractText = abstractText; } /** * @return the dataSource */ public String getDataSource() { return dataSource; } /** * @param dataSource the dataSource to set */ public void setDataSource(String dataSource) { this.dataSource = dataSource; } /** * @return the crs */ public String getCrs() { return crs; } /** * @param crs the crs to set */ public void setCrs(String crs) { this.crs = crs; } /** * @return the bbox */ public BBoxClientInfo getBbox() { return bbox; } /** * @param bbox the bbox to set */ public void setBbox(BBoxClientInfo bbox) { this.bbox = bbox; } /** * @return the layerType */ public GPLayerType getLayerType() { return layerType; } /** * @param layerType the layerType to set */ public void setLayerType(GPLayerType layerType) { this.layerType = layerType; } /** * @return the zIndex */ @Override public int getzIndex() { return zIndex; } /** * @param zIndex the zIndex to set */ public void setzIndex(int zIndex) { this.zIndex = zIndex; } /** * @return the checked */ public boolean isChecked() { return checked; } /** * @param checked the checked to set */ public void setChecked(boolean checked) { this.checked = checked; } public String getCqlFilter() { return cqlFilter; } public void setCqlFilter(String cqlFilter) { this.cqlFilter = cqlFilter; } public String getTimeFilter() { return timeFilter; } public void setTimeFilter(String timeFilter) { this.timeFilter = timeFilter; } public String getVariableTimeFilter() { return variableTimeFilter; } public void setVariableTimeFilter(String variableTimeFilter) { this.variableTimeFilter = variableTimeFilter; } public boolean isSingleTileRequest() { return singleTileRequest; } public void setSingleTileRequest(boolean singleTileRequest) { this.singleTileRequest = singleTileRequest; } /** * (non-Javadoc) * * @see java.lang.Object#equals(java.lang.Object) */ @Override public int compareTo(IGPFolderElements o) { return o.getzIndex() - getzIndex(); } /** * (non-Javadoc) * * @see java.lang.Object#toString() */ @Override public String toString() { return "GPLayerClientInfo{" + "id=" + id + ", layerName=" + layerName + ", alias=" + alias + ", title=" + title + ", abstractText=" + abstractText + ", dataSource=" + dataSource + ", crs=" + crs + ", bbox=" + bbox + ", layerType=" + layerType + ", zIndex=" + zIndex + ", cqlFilter=" + cqlFilter + ", timeFilter=" + timeFilter + ", variableTimeFilter=" + variableTimeFilter + ", checked=" + checked + ", singleTileRequest=" + singleTileRequest + '}'; } }