-
Notifications
You must be signed in to change notification settings - Fork 188
/
TaskDtoProviderOptions.java
136 lines (108 loc) · 3.97 KB
/
TaskDtoProviderOptions.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
* Copyright (c) 2010-2013 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.web.page.admin.server.dto;
import java.io.Serializable;
/**
* @author mederly
*/
public class TaskDtoProviderOptions implements Serializable {
// default values must be 'most informative'
/**
* Whether to ask for things requiring cluster communication (e.g. on which node is the task really executing)
*/
private boolean useClusterInformation = true;
private boolean resolveObjectRef = true;
private boolean resolveOwnerRef = true; // currently unused
private boolean getNextRunStartTime = true;
private boolean retrieveModelContext = true;
private boolean retrieveWorkflowContext = true;
private boolean getTaskParent = true;
private boolean retrieveSiblings = true;
private boolean retrieveOperationResult = true;
private boolean createHandlerDto = true;
private boolean resolveNames = true;
public static TaskDtoProviderOptions minimalOptions() {
TaskDtoProviderOptions options = new TaskDtoProviderOptions();
options.setUseClusterInformation(false);
options.setResolveObjectRef(false);
options.setResolveOwnerRef(false);
options.setGetNextRunStartTime(false);
options.setRetrieveModelContext(false);
options.setRetrieveWorkflowContext(false);
options.setGetTaskParent(false);
options.setRetrieveSiblings(false);
options.setRetrieveOperationResult(false);
options.setCreateHandlerDto(false);
return options;
}
public static TaskDtoProviderOptions fullOptions() {
return new TaskDtoProviderOptions();
}
public boolean isUseClusterInformation() {
return useClusterInformation;
}
public void setUseClusterInformation(boolean useClusterInformation) {
this.useClusterInformation = useClusterInformation;
}
public boolean isResolveObjectRef() {
return resolveObjectRef;
}
public void setResolveObjectRef(boolean resolveObjectRef) {
this.resolveObjectRef = resolveObjectRef;
}
public boolean isResolveOwnerRef() {
return resolveOwnerRef;
}
public void setResolveOwnerRef(boolean resolveOwnerRef) {
this.resolveOwnerRef = resolveOwnerRef;
}
public boolean isGetNextRunStartTime() {
return getNextRunStartTime;
}
public void setGetNextRunStartTime(boolean getNextRunStartTime) {
this.getNextRunStartTime = getNextRunStartTime;
}
public boolean isRetrieveModelContext() {
return retrieveModelContext;
}
public void setRetrieveModelContext(boolean retrieveModelContext) {
this.retrieveModelContext = retrieveModelContext;
}
public boolean isRetrieveWorkflowContext() {
return retrieveWorkflowContext;
}
public void setRetrieveWorkflowContext(boolean retrieveWorkflowContext) {
this.retrieveWorkflowContext = retrieveWorkflowContext;
}
public boolean isGetTaskParent() {
return getTaskParent;
}
public void setGetTaskParent(boolean getTaskParent) {
this.getTaskParent = getTaskParent;
}
public boolean isRetrieveSiblings() {
return retrieveSiblings;
}
public void setRetrieveSiblings(boolean retrieveSiblings) {
this.retrieveSiblings = retrieveSiblings;
}
public boolean isRetrieveOperationResult() {
return retrieveOperationResult;
}
public void setRetrieveOperationResult(boolean retrieveOperationResult) {
this.retrieveOperationResult = retrieveOperationResult;
}
public boolean isCreateHandlerDto() {
return createHandlerDto;
}
public void setCreateHandlerDto(boolean createHandlerDto) {
this.createHandlerDto = createHandlerDto;
}
public boolean isResolveNames() {
return resolveNames;
}
}