CQHistoryItemWrapper.java
2.09 KB
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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.workflow.exec.HistoryItem
* com.adobe.granite.workflow.exec.WorkItem
* com.day.cq.workflow.exec.HistoryItem
* com.day.cq.workflow.exec.WorkItem
*/
package com.day.cq.workflow.impl.exec;
import com.adobe.granite.workflow.exec.HistoryItem;
import com.adobe.granite.workflow.exec.WorkItem;
import com.day.cq.workflow.impl.exec.CQWorkItemWrapper;
import java.util.Date;
public class CQHistoryItemWrapper
implements com.day.cq.workflow.exec.HistoryItem {
HistoryItem graniteHistoryItem;
public CQHistoryItemWrapper(HistoryItem item) {
if (item == null) {
throw new RuntimeException("Workflow Wrappers cannot be instantiated with null values");
}
this.graniteHistoryItem = item;
}
public String getComment() {
return this.graniteHistoryItem.getComment();
}
public String getAction() {
return this.graniteHistoryItem.getAction();
}
public Date getDate() {
return this.graniteHistoryItem.getDate();
}
public String getUserId() {
return this.graniteHistoryItem.getUserId();
}
public com.day.cq.workflow.exec.HistoryItem getPreviousHistoryItem() {
HistoryItem previousHistoryItem = this.graniteHistoryItem.getPreviousHistoryItem();
if (previousHistoryItem != null) {
return new CQHistoryItemWrapper(previousHistoryItem);
}
return null;
}
public com.day.cq.workflow.exec.HistoryItem getNextHistryItem() {
HistoryItem nextHistryItem = this.graniteHistoryItem.getNextHistryItem();
if (nextHistryItem != null) {
return new CQHistoryItemWrapper(nextHistryItem);
}
return null;
}
public com.day.cq.workflow.exec.WorkItem getWorkItem() {
if (this.graniteHistoryItem.getWorkItem() != null) {
return new CQWorkItemWrapper(this.graniteHistoryItem.getWorkItem());
}
return null;
}
public HistoryItem getGraniteHistoryItem() {
return this.graniteHistoryItem;
}
}