Revision 30160
Added by Michele Artini about 10 years ago
modules/dnet-msro-service/trunk/src/main/java/eu/dnetlib/msro/workflows/util/WorkflowParam.java | ||
---|---|---|
5 | 5 |
private String name; |
6 | 6 |
private String value; |
7 | 7 |
private boolean required; |
8 |
private boolean userParam; |
|
8 | 9 |
private String type; |
9 | 10 |
private String function; |
10 | 11 |
|
... | ... | |
12 | 13 |
|
13 | 14 |
} |
14 | 15 |
|
15 |
public WorkflowParam(final String name, final String value) { |
|
16 |
this(name, value, false, null, null); |
|
16 |
public WorkflowParam(final String name, final String value, final boolean userParam) {
|
|
17 |
this(name, value, false, userParam, null, null);
|
|
17 | 18 |
} |
18 | 19 |
|
19 |
public WorkflowParam(final String name, final String value, final boolean required, final String type, final String function) { |
|
20 |
public WorkflowParam(final String name, final String value, final boolean required, final boolean userParam, final String type, final String function) {
|
|
20 | 21 |
this.name = ((name == null) || name.isEmpty()) ? "" : name; |
21 | 22 |
this.value = ((value == null) || value.isEmpty()) ? "" : value; |
22 | 23 |
this.required = required; |
24 |
this.userParam = userParam; |
|
23 | 25 |
this.type = ((type == null) || type.isEmpty()) ? "string" : type; |
24 | 26 |
this.function = function; |
25 | 27 |
} |
26 | 28 |
|
29 |
|
|
27 | 30 |
public String getName() { |
28 | 31 |
return name; |
29 | 32 |
} |
... | ... | |
48 | 51 |
this.required = required; |
49 | 52 |
} |
50 | 53 |
|
54 |
public boolean isUserParam() { |
|
55 |
return userParam; |
|
56 |
} |
|
57 |
|
|
58 |
public void setUserParam(boolean userParam) { |
|
59 |
this.userParam = userParam; |
|
60 |
} |
|
61 |
|
|
51 | 62 |
public String getType() { |
52 | 63 |
return type; |
53 | 64 |
} |
Also available in: Unified diff
added userParam flag to WorkflowParam