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 package fr.paris.lutece.plugins.workflow.service.json;
35
36 import java.util.ArrayList;
37 import java.util.List;
38
39 import fr.paris.lutece.plugins.workflowcore.business.action.Action;
40 import fr.paris.lutece.plugins.workflowcore.business.prerequisite.Prerequisite;
41 import fr.paris.lutece.plugins.workflowcore.business.state.State;
42 import fr.paris.lutece.plugins.workflowcore.business.workflow.Workflow;
43 import fr.paris.lutece.plugins.workflowcore.service.task.ITask;
44
45 public class WorkflowJsonData
46 {
47
48 private Workflow _workflow;
49
50 private List<State> _stateList;
51
52 private List<Action> _actionList;
53
54 private List<ITask> _taskList;
55
56 private List<Prerequisite> _prerequisiteList;
57
58
59
60
61 public Workflow getWorkflow( )
62 {
63 return _workflow;
64 }
65
66
67
68
69
70 public void setWorkflow( Workflow workflow )
71 {
72 _workflow = workflow;
73 }
74
75
76
77
78 public List<State> getStateList( )
79 {
80 return new ArrayList<>( _stateList );
81 }
82
83
84
85
86
87 public void setStateList( List<State> stateList )
88 {
89 this._stateList = new ArrayList<>( stateList );
90 }
91
92
93
94
95 public List<Action> getActionList( )
96 {
97 return new ArrayList<>( _actionList );
98 }
99
100
101
102
103
104 public void setActionList( List<Action> actionList )
105 {
106 _actionList = new ArrayList<>( actionList );
107 }
108
109
110
111
112 public List<ITask> getTaskList( )
113 {
114 return new ArrayList<>( _taskList );
115 }
116
117
118
119
120
121 public void setTaskList( List<ITask> taskList )
122 {
123 _taskList = new ArrayList<>( taskList );
124 }
125
126
127
128
129 public List<Prerequisite> getPrerequisiteList( )
130 {
131 return new ArrayList<>( _prerequisiteList );
132 }
133
134
135
136
137
138 public void setPrerequisiteList( List<Prerequisite> prerequisiteList )
139 {
140 _prerequisiteList = new ArrayList<>( prerequisiteList );
141 }
142 }