2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.freebox.internal.api.model;
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/#
20 * @author Laurent Garnier - Initial contribution
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;
33 public Boolean isEnabled() {
37 public void setEnabled(Boolean enabled) {
38 this.enabled = enabled;
41 public Boolean isAllowAnonymous() {
42 return allowAnonymous;
45 public void setAllowAnonymous(Boolean allowAnonymous) {
46 this.allowAnonymous = allowAnonymous;
49 public Boolean isAllowAnonymousWrite() {
50 return allowAnonymousWrite;
53 public void setAllowAnonymousWrite(Boolean allowAnonymousWrite) {
54 this.allowAnonymousWrite = allowAnonymousWrite;
57 public void setPassword(String password) {
58 this.password = password;
61 public Boolean isAllowRemoteAccess() {
62 return allowRemoteAccess;
65 public void setAllowRemoteAccess(Boolean allowRemoteAccess) {
66 this.allowRemoteAccess = allowRemoteAccess;
69 public Boolean isWeakPassword() {
73 public void setWeakPassword(Boolean weakPassword) {
74 this.weakPassword = weakPassword;
77 public Integer getPortCtrl() {
81 public void setPortCtrl(Integer portCtrl) {
82 this.portCtrl = portCtrl;
85 public Integer getPortData() {
89 public void setPortData(Integer portData) {
90 this.portData = portData;
93 public String getRemoteDomain() {
97 public void setRemoteDomain(String remoteDomain) {
98 this.remoteDomain = remoteDomain;