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.document.business.workflow;
35
36 import fr.paris.lutece.portal.service.i18n.I18nService;
37 import fr.paris.lutece.portal.service.i18n.Localizable;
38 import fr.paris.lutece.portal.service.rbac.RBACAction;
39
40 import java.util.Locale;
41
42
43
44
45 public class DocumentAction implements Localizable, RBACAction
46 {
47 public static final int ACTION_SUBMIT = 3;
48 public static final int ACTION_SUBMIT_CHANGE = 10;
49 public static final int ACTION_VALIDATE = 4;
50 public static final int ACTION_VALIDATE_CHANGE = 12;
51 public static final int ACTION_REFUSE = 6;
52 public static final int ACTION_REFUSE_CHANGE = 11;
53 public static final int ACTION_ARCHIVE = 8;
54 public static final int ACTION_UNARCHIVE = 13;
55
56
57 private int _nIdAction;
58 private String _strUrl;
59 private String _strNameKey;
60 private String _strDescriptionKey;
61 private Locale _locale;
62 private String _strIconUrl;
63 private String _strPermission;
64 private DocumentState _finishDocumentState;
65
66
67
68
69
70 public int getIdAction( )
71 {
72 return _nIdAction;
73 }
74
75
76
77
78
79
80
81 public void setIdAction( int idAction )
82 {
83 _nIdAction = idAction;
84 }
85
86
87
88
89
90 public DocumentState getFinishDocumentState( )
91 {
92 return _finishDocumentState;
93 }
94
95
96
97
98
99
100
101 public void setFinishDocumentState( DocumentState documentState )
102 {
103 _finishDocumentState = documentState;
104 }
105
106
107
108
109
110
111
112 public void setLocale( Locale locale )
113 {
114 _locale = locale;
115 }
116
117
118
119
120
121
122 public String getUrl( )
123 {
124 return _strUrl;
125 }
126
127
128
129
130
131
132
133 public void setUrl( String strUrl )
134 {
135 _strUrl = strUrl;
136 }
137
138
139
140
141
142
143 public String getNameKey( )
144 {
145 return _strNameKey;
146 }
147
148
149
150
151
152
153 public String getName( )
154 {
155 return I18nService.getLocalizedString( _strNameKey, _locale );
156 }
157
158
159
160
161
162
163
164 public void setNameKey( String strNameKey )
165 {
166 _strNameKey = strNameKey;
167 }
168
169
170
171
172
173
174 public String getDescriptionKey( )
175 {
176 return _strDescriptionKey;
177 }
178
179
180
181
182
183
184 public String getDescription( )
185 {
186 return I18nService.getLocalizedString( _strDescriptionKey, _locale );
187 }
188
189
190
191
192
193
194
195 public void setDescriptionKey( String strDescriptionKey )
196 {
197 _strDescriptionKey = strDescriptionKey;
198 }
199
200
201
202
203
204
205 public String getIconUrl( )
206 {
207 return _strIconUrl;
208 }
209
210
211
212
213
214
215
216 public void setIconUrl( String strIconUrl )
217 {
218 _strIconUrl = strIconUrl;
219 }
220
221
222
223
224
225
226 public String getPermission( )
227 {
228 return _strPermission;
229 }
230
231
232
233
234
235
236
237 public void setPermission( String strPermission )
238 {
239 _strPermission = strPermission;
240 }
241 }