1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.waarp.openr66.protocol.localhandler.packet.json;
21
22 import org.waarp.openr66.protocol.localhandler.packet.LocalPacketFactory;
23
24
25
26
27 public class ConfigExportJsonPacket extends JsonPacket {
28
29 protected boolean host;
30 protected boolean rule;
31 protected boolean business;
32 protected boolean alias;
33 protected boolean roles;
34
35
36
37
38 public final boolean isHost() {
39 return host;
40 }
41
42
43
44
45 public final void setHost(final boolean host) {
46 this.host = host;
47 }
48
49
50
51
52 public final boolean isRule() {
53 return rule;
54 }
55
56
57
58
59 public final void setRule(final boolean rule) {
60 this.rule = rule;
61 }
62
63
64
65
66 public final boolean isBusiness() {
67 return business;
68 }
69
70
71
72
73 public final void setBusiness(final boolean business) {
74 this.business = business;
75 }
76
77
78
79
80 public final boolean isAlias() {
81 return alias;
82 }
83
84
85
86
87 public final void setAlias(final boolean alias) {
88 this.alias = alias;
89 }
90
91
92
93
94 public final boolean isRoles() {
95 return roles;
96 }
97
98
99
100
101 public final void setRoles(final boolean roles) {
102 this.roles = roles;
103 }
104
105 @Override
106 public final void fromJson(final JsonPacket other) {
107 super.fromJson(other);
108 if (other instanceof ConfigExportJsonPacket) {
109 final ConfigExportJsonPacket other2 = (ConfigExportJsonPacket) other;
110 host = other2.host;
111 rule = other2.rule;
112 business = other2.business;
113 alias = other2.alias;
114 roles = other2.roles;
115 }
116 }
117
118 @Override
119 public void setRequestUserPacket() {
120 setRequestUserPacket(LocalPacketFactory.CONFEXPORTPACKET);
121 }
122 }