Revision 42174
Added by Michele Artini about 8 years ago
WorkflowItem.java | ||
---|---|---|
8 | 8 |
private String wfId; |
9 | 9 |
private String name; |
10 | 10 |
private String desc; |
11 |
private boolean destroy; |
|
11 | 12 |
|
12 |
public WorkflowItem() { |
|
13 |
} |
|
13 |
public WorkflowItem() {} |
|
14 | 14 |
|
15 |
public WorkflowItem(final String wfId, final String name, final String desc) { |
|
15 |
public WorkflowItem(final String wfId, final String name, final String desc, final boolean destroy) {
|
|
16 | 16 |
this.wfId = wfId; |
17 | 17 |
this.name = name; |
18 | 18 |
this.desc = desc; |
19 |
this.setDestroy(destroy); |
|
19 | 20 |
} |
20 | 21 |
|
21 | 22 |
public String getWfId() { |
22 |
return wfId; |
|
23 |
return this.wfId;
|
|
23 | 24 |
} |
24 | 25 |
|
25 | 26 |
public void setWfId(final String wfId) { |
... | ... | |
27 | 28 |
} |
28 | 29 |
|
29 | 30 |
public String getName() { |
30 |
return name; |
|
31 |
return this.name;
|
|
31 | 32 |
} |
32 | 33 |
|
33 | 34 |
public void setName(final String name) { |
... | ... | |
35 | 36 |
} |
36 | 37 |
|
37 | 38 |
public String getDesc() { |
38 |
return desc; |
|
39 |
return this.desc;
|
|
39 | 40 |
} |
40 | 41 |
|
41 | 42 |
public void setDesc(final String desc) { |
... | ... | |
46 | 47 |
public int compareTo(final WorkflowItem wp) { |
47 | 48 |
return getWfId().compareTo(wp.getWfId()); |
48 | 49 |
} |
50 |
|
|
51 |
public boolean isDestroy() { |
|
52 |
return destroy; |
|
53 |
} |
|
54 |
|
|
55 |
public void setDestroy(boolean destroy) { |
|
56 |
this.destroy = destroy; |
|
57 |
} |
|
49 | 58 |
} |
Also available in: Unified diff
Repo Bye