CQRouteWrapper.java
1.8 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.workflow.exec.Route
* com.adobe.granite.workflow.model.WorkflowTransition
* com.day.cq.workflow.exec.Route
* com.day.cq.workflow.model.WorkflowTransition
*/
package com.day.cq.workflow.impl.exec;
import com.adobe.granite.workflow.model.WorkflowTransition;
import com.day.cq.workflow.exec.Route;
import com.day.cq.workflow.impl.model.CQWorkflowTransitionWrapper;
import java.util.ArrayList;
import java.util.List;
public class CQRouteWrapper
implements Route {
com.adobe.granite.workflow.exec.Route graniteRoute;
public CQRouteWrapper(com.adobe.granite.workflow.exec.Route route) {
this.graniteRoute = route;
}
public String getId() {
return this.graniteRoute.getId();
}
public String getName() {
return this.graniteRoute.getName();
}
public boolean hasDefault() {
return this.graniteRoute.hasDefault();
}
public List<com.day.cq.workflow.model.WorkflowTransition> getDestinations() {
List graniteDestinations = this.graniteRoute.getDestinations();
if (graniteDestinations != null) {
ArrayList<com.day.cq.workflow.model.WorkflowTransition> transitions = new ArrayList<com.day.cq.workflow.model.WorkflowTransition>(graniteDestinations.size());
for (WorkflowTransition transition : graniteDestinations) {
if (transition == null) continue;
transitions.add(new CQWorkflowTransitionWrapper(transition));
}
return transitions;
}
return null;
}
public boolean isBackRoute() {
return this.graniteRoute.isBackRoute();
}
public com.adobe.granite.workflow.exec.Route getGraniteRoute() {
return this.graniteRoute;
}
}