001/*
002 * Syncany, www.syncany.org
003 * Copyright (C) 2011-2016 Philipp C. Heckel <philipp.heckel@gmail.com>
004 *
005 * This program is free software: you can redistribute it and/or modify
006 * it under the terms of the GNU General Public License as published by
007 * the Free Software Foundation, either version 3 of the License, or
008 * (at your option) any later version.
009 *
010 * This program is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
013 * GNU General Public License for more details.
014 *
015 * You should have received a copy of the GNU General Public License
016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
017 */
018package org.syncany.operations.plugin;
019
020import org.syncany.operations.OperationOptions;
021
022public class PluginOperationOptions implements OperationOptions {
023        public enum PluginListMode {
024                ALL, LOCAL, REMOTE
025        }
026
027        private PluginOperationAction action = null;
028        private String pluginId = null;
029        private PluginListMode listMode = PluginListMode.ALL;
030        private boolean snapshots = false;
031        private String apiEndpoint = null;
032
033        public PluginOperationAction getAction() {
034                return action;
035        }
036
037        public void setAction(PluginOperationAction action) {
038                this.action = action;
039        }
040
041        public String getPluginId() {
042                return pluginId;
043        }
044
045        public void setPluginId(String pluginId) {
046                this.pluginId = pluginId;
047        }
048
049        public PluginListMode getListMode() {
050                return listMode;
051        }
052
053        public void setListMode(PluginListMode listMode) {
054                this.listMode = listMode;
055        }
056
057        public boolean isSnapshots() {
058                return snapshots;
059        }
060
061        public void setSnapshots(boolean snapshots) {
062                this.snapshots = snapshots;
063        }
064
065        public String getApiEndpoint() {
066                return apiEndpoint;
067        }
068
069        public void setApiEndpoint(String apiEndpoint) {
070                this.apiEndpoint = apiEndpoint;
071        }
072}