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.init;
019
020import java.io.File;
021import java.util.List;
022
023import org.syncany.config.to.ConfigTO;
024import org.syncany.config.to.RepoTO;
025import org.syncany.crypto.CipherSpec;
026import org.syncany.operations.OperationOptions;
027
028public class InitOperationOptions implements OperationOptions {
029        private boolean createTarget;
030        private File localDir;
031        private ConfigTO configTO;
032        private RepoTO repoTO;
033        private boolean encryptionEnabled;
034        private List<CipherSpec> cipherSpecs;
035        private String password;
036        private boolean daemon;
037        private GenlinkOperationOptions genlinkOptions;
038
039        public InitOperationOptions() {
040                this.genlinkOptions = new GenlinkOperationOptions();
041        }
042        
043        public boolean isCreateTarget() {
044                return createTarget;
045        }
046
047        public void setCreateTarget(boolean createTarget) {
048                this.createTarget = createTarget;
049        }
050
051        public File getLocalDir() {
052                return localDir;
053        }
054
055        public void setLocalDir(File localDir) {
056                this.localDir = localDir;
057        }
058
059        public ConfigTO getConfigTO() {
060                return configTO;
061        }
062
063        public void setConfigTO(ConfigTO configTO) {
064                this.configTO = configTO;
065        }
066
067        public RepoTO getRepoTO() {
068                return repoTO;
069        }
070
071        public void setRepoTO(RepoTO repoTO) {
072                this.repoTO = repoTO;
073        }
074
075        public boolean isEncryptionEnabled() {
076                return encryptionEnabled;
077        }
078
079        public void setEncryptionEnabled(boolean encryptionEnabled) {
080                this.encryptionEnabled = encryptionEnabled;
081        }
082
083        public List<CipherSpec> getCipherSpecs() {
084                return cipherSpecs;
085        }
086
087        public void setCipherSpecs(List<CipherSpec> cipherSpecs) {
088                this.cipherSpecs = cipherSpecs;
089        }
090
091        public String getPassword() {
092                return password;
093        }
094
095        public void setPassword(String password) {
096                this.password = password;
097        }
098
099        public boolean isDaemon() {
100                return daemon;
101        }
102
103        public void setDaemon(boolean daemon) {
104                this.daemon = daemon;
105        }
106
107        public GenlinkOperationOptions getGenlinkOptions() {
108                return genlinkOptions;
109        }
110
111        public void setGenlinkOptions(GenlinkOperationOptions genlinkOptions) {
112                this.genlinkOptions = genlinkOptions;
113        }
114}