View Javadoc
1   /*
2    * This file is part of Waarp Project (named also Waarp or GG).
3    *
4    *  Copyright (c) 2019, Waarp SAS, and individual contributors by the @author
5    *  tags. See the COPYRIGHT.txt in the distribution for a full listing of
6    * individual contributors.
7    *
8    *  All Waarp Project is free software: you can redistribute it and/or
9    * modify it under the terms of the GNU General Public License as published by
10   * the Free Software Foundation, either version 3 of the License, or (at your
11   * option) any later version.
12   *
13   * Waarp is distributed in the hope that it will be useful, but WITHOUT ANY
14   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15   * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16   *
17   *  You should have received a copy of the GNU General Public License along with
18   * Waarp . If not, see <http://www.gnu.org/licenses/>.
19   */
20  package org.waarp.openr66.protocol.localhandler.packet.json;
21  
22  import org.waarp.openr66.protocol.localhandler.packet.LocalPacketFactory;
23  
24  /**
25   * Import Configuration response JSON packet
26   */
27  public class ConfigImportResponseJsonPacket extends ConfigImportJsonPacket {
28  
29    protected byte command;
30    protected boolean purgedhost;
31    protected boolean purgedrule;
32    protected boolean purgedbusiness;
33    protected boolean purgedalias;
34    protected boolean purgedroles;
35    protected boolean importedhost;
36    protected boolean importedrule;
37    protected boolean importedbusiness;
38    protected boolean importedalias;
39    protected boolean importedroles;
40  
41    /**
42     * @return the command
43     */
44    public final byte getCommand() {
45      return command;
46    }
47  
48    /**
49     * @param command the command to set
50     */
51    public final void setCommand(final byte command) {
52      this.command = command;
53    }
54  
55    /**
56     * @return the purgedhost
57     */
58    public final boolean isPurgedhost() {
59      return purgedhost;
60    }
61  
62    /**
63     * @param purgedhost the purgedhost to set
64     */
65    public final void setPurgedhost(final boolean purgedhost) {
66      this.purgedhost = purgedhost;
67    }
68  
69    /**
70     * @return the purgedrule
71     */
72    public final boolean isPurgedrule() {
73      return purgedrule;
74    }
75  
76    /**
77     * @param purgedrule the purgedrule to set
78     */
79    public final void setPurgedrule(final boolean purgedrule) {
80      this.purgedrule = purgedrule;
81    }
82  
83    /**
84     * @return the purgedbusiness
85     */
86    public final boolean isPurgedbusiness() {
87      return purgedbusiness;
88    }
89  
90    /**
91     * @param purgedbusiness the purgedbusiness to set
92     */
93    public final void setPurgedbusiness(final boolean purgedbusiness) {
94      this.purgedbusiness = purgedbusiness;
95    }
96  
97    /**
98     * @return the purgedalias
99     */
100   public final boolean isPurgedalias() {
101     return purgedalias;
102   }
103 
104   /**
105    * @param purgedalias the purgedalias to set
106    */
107   public final void setPurgedalias(final boolean purgedalias) {
108     this.purgedalias = purgedalias;
109   }
110 
111   /**
112    * @return the purgedroles
113    */
114   public final boolean isPurgedroles() {
115     return purgedroles;
116   }
117 
118   /**
119    * @param purgedroles the purgedroles to set
120    */
121   public final void setPurgedroles(final boolean purgedroles) {
122     this.purgedroles = purgedroles;
123   }
124 
125   /**
126    * @return the importedhost
127    */
128   public final boolean isImportedhost() {
129     return importedhost;
130   }
131 
132   /**
133    * @param importedhost the importedhost to set
134    */
135   public final void setImportedhost(final boolean importedhost) {
136     this.importedhost = importedhost;
137   }
138 
139   /**
140    * @return the importedrule
141    */
142   public final boolean isImportedrule() {
143     return importedrule;
144   }
145 
146   /**
147    * @param importedrule the importedrule to set
148    */
149   public final void setImportedrule(final boolean importedrule) {
150     this.importedrule = importedrule;
151   }
152 
153   /**
154    * @return the importedbusiness
155    */
156   public final boolean isImportedbusiness() {
157     return importedbusiness;
158   }
159 
160   /**
161    * @param importedbusiness the importedbusiness to set
162    */
163   public final void setImportedbusiness(final boolean importedbusiness) {
164     this.importedbusiness = importedbusiness;
165   }
166 
167   /**
168    * @return the importedalias
169    */
170   public final boolean isImportedalias() {
171     return importedalias;
172   }
173 
174   /**
175    * @param importedalias the importedalias to set
176    */
177   public final void setImportedalias(final boolean importedalias) {
178     this.importedalias = importedalias;
179   }
180 
181   /**
182    * @return the importedroles
183    */
184   public final boolean isImportedroles() {
185     return importedroles;
186   }
187 
188   /**
189    * @param importedroles the importedroles to set
190    */
191   public final void setImportedroles(final boolean importedroles) {
192     this.importedroles = importedroles;
193   }
194 
195   @Override
196   public final void setRequestUserPacket() {
197     setRequestUserPacket(LocalPacketFactory.CONFIMPORTPACKET);
198   }
199 }