001/* 002 * (C) Copyright 2011 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nuxeo - initial API and implementation 016 */ 017 018package org.nuxeo.connect.client.ui; 019 020import java.io.Serializable; 021 022/** 023 * Store filter settings for a package listing. This class is used to share state between the WebEngine and the JSF 024 * parts 025 * 026 * @author Tiry (tdelprat@nuxeo.com) 027 */ 028public class ListingFilterSetting implements Serializable { 029 030 private static final long serialVersionUID = 1L; 031 032 protected String packageTypeFilter = ""; 033 034 protected boolean platformFilter = true; 035 036 protected boolean onlyRemote = false; 037 038 public String getPackageTypeFilter() { 039 return packageTypeFilter; 040 } 041 042 public void setPackageTypeFilter(String packageTypeFilter) { 043 this.packageTypeFilter = packageTypeFilter; 044 } 045 046 public boolean getPlatformFilter() { 047 return platformFilter; 048 } 049 050 public void setPlatformFilter(boolean platformFilter) { 051 this.platformFilter = platformFilter; 052 } 053 054 public boolean isOnlyRemote() { 055 return onlyRemote; 056 } 057 058 public void setOnlyRemote(boolean onlyRemote) { 059 this.onlyRemote = onlyRemote; 060 } 061 062}