1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.syncope.client.console.tasks;
20
21 import java.io.Serializable;
22 import org.apache.syncope.common.lib.command.CommandTO;
23
24 public class CommandWrapper implements Serializable {
25
26 private static final long serialVersionUID = -2423427579112218652L;
27
28 private final boolean isNew;
29
30 private CommandTO command;
31
32 public CommandWrapper(final boolean isNew) {
33 this.isNew = isNew;
34 }
35
36 public boolean isNew() {
37 return isNew;
38 }
39
40 public CommandTO getCommand() {
41 return command;
42 }
43
44 public CommandWrapper setCommand(final CommandTO command) {
45 this.command = command;
46 return this;
47 }
48
49 @Override
50 public String toString() {
51 return "CommandWrapper{" + "isNew=" + isNew + ", command=" + command + '}';
52 }
53 }