]> git.basschouten.com Git - openhab-addons.git/blob
49f52f06f0c1b12a3feb78fb568609b5cb5be103
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.freebox.internal.api.model;
14
15 /**
16  * The {@link FreeboxFtpConfig} is the Java class used to map the "FtpConfig"
17  * structure used by the FTP configuration API
18  * https://dev.freebox.fr/sdk/os/ftp/#
19  *
20  * @author Laurent Garnier - Initial contribution
21  */
22 public class FreeboxFtpConfig {
23     private Boolean enabled;
24     private Boolean allowAnonymous;
25     private Boolean allowAnonymousWrite;
26     private String password;
27     private Boolean allowRemoteAccess;
28     private Boolean weakPassword;
29     private Integer portCtrl;
30     private Integer portData;
31     private String remoteDomain;
32
33     public Boolean isEnabled() {
34         return enabled;
35     }
36
37     public void setEnabled(Boolean enabled) {
38         this.enabled = enabled;
39     }
40
41     public Boolean isAllowAnonymous() {
42         return allowAnonymous;
43     }
44
45     public void setAllowAnonymous(Boolean allowAnonymous) {
46         this.allowAnonymous = allowAnonymous;
47     }
48
49     public Boolean isAllowAnonymousWrite() {
50         return allowAnonymousWrite;
51     }
52
53     public void setAllowAnonymousWrite(Boolean allowAnonymousWrite) {
54         this.allowAnonymousWrite = allowAnonymousWrite;
55     }
56
57     public void setPassword(String password) {
58         this.password = password;
59     }
60
61     public Boolean isAllowRemoteAccess() {
62         return allowRemoteAccess;
63     }
64
65     public void setAllowRemoteAccess(Boolean allowRemoteAccess) {
66         this.allowRemoteAccess = allowRemoteAccess;
67     }
68
69     public Boolean isWeakPassword() {
70         return weakPassword;
71     }
72
73     public void setWeakPassword(Boolean weakPassword) {
74         this.weakPassword = weakPassword;
75     }
76
77     public Integer getPortCtrl() {
78         return portCtrl;
79     }
80
81     public void setPortCtrl(Integer portCtrl) {
82         this.portCtrl = portCtrl;
83     }
84
85     public Integer getPortData() {
86         return portData;
87     }
88
89     public void setPortData(Integer portData) {
90         this.portData = portData;
91     }
92
93     public String getRemoteDomain() {
94         return remoteDomain;
95     }
96
97     public void setRemoteDomain(String remoteDomain) {
98         this.remoteDomain = remoteDomain;
99     }
100 }