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