-
Notifications
You must be signed in to change notification settings - Fork 188
/
ApproverEngagementDto.java
84 lines (66 loc) · 2.47 KB
/
ApproverEngagementDto.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
/*
* Copyright (c) 2010-2017 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.workflow.dto;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractWorkItemOutputType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectReferenceType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.xml.datatype.XMLGregorianCalendar;
import java.io.Serializable;
/**
* GUI-friendly information about an engagement of given approver in a historic, current or future execution of an approval stage.
*/
public class ApproverEngagementDto implements Serializable {
private static final long serialVersionUID = 1L;
@NotNull private final ObjectReferenceType approverRef; // with the whole object, if possible
@Nullable private AbstractWorkItemOutputType output;
@Nullable private XMLGregorianCalendar completedAt;
@Nullable private ObjectReferenceType completedBy; // the user that really completed the work item originally assigned to that approver
@Nullable private ObjectReferenceType attorney; // the attorney (of completedBy)
private boolean last;
ApproverEngagementDto(@NotNull ObjectReferenceType approverRef) {
this.approverRef = approverRef;
}
@NotNull
public ObjectReferenceType getApproverRef() {
return approverRef;
}
@Nullable
public AbstractWorkItemOutputType getOutput() {
return output;
}
public void setOutput(@Nullable AbstractWorkItemOutputType output) {
this.output = output;
}
@Nullable
public XMLGregorianCalendar getCompletedAt() {
return completedAt;
}
void setCompletedAt(@Nullable XMLGregorianCalendar completedAt) {
this.completedAt = completedAt;
}
@Nullable
public ObjectReferenceType getCompletedBy() {
return completedBy;
}
void setCompletedBy(@Nullable ObjectReferenceType completedBy) {
this.completedBy = completedBy;
}
@Nullable
public ObjectReferenceType getAttorney() {
return attorney;
}
void setAttorney(@Nullable ObjectReferenceType attorney) {
this.attorney = attorney;
}
public boolean isLast() {
return last;
}
public void setLast(boolean last) {
this.last = last;
}
}