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.identityimport.business;
35
36 import javax.validation.constraints.NotEmpty;
37 import javax.validation.constraints.NotNull;
38 import javax.validation.constraints.Size;
39 import java.io.Serializable;
40 import java.sql.Date;
41
42
43
44
45 public class Batch implements Serializable
46 {
47
48 private static final String RESOURCE_TYPE = "IDENTITYIMPORT_BATCH_RESOURCE";
49 private static final long serialVersionUID = 1L;
50
51
52 private int _nId;
53 private String _strReference;
54 private Date _dateDate;
55
56 @NotEmpty( message = "#i18n{identityimport.validation.batch.User.notEmpty}" )
57 @Size( max = 255, message = "#i18n{identityimport.validation.batch.User.size}" )
58 private String _strUser;
59
60 @NotEmpty( message = "#i18n{identityimport.validation.batch.AppCode.notEmpty}" )
61 @Size( max = 50, message = "#i18n{identityimport.validation.batch.AppCode.size}" )
62 private String _strAppCode;
63
64 private String _strComment;
65
66
67
68
69
70
71 public int getId( )
72 {
73 return _nId;
74 }
75
76
77
78
79
80
81
82 public void setId( int nId )
83 {
84 _nId = nId;
85 }
86
87
88
89
90
91
92 public Date getDate( )
93 {
94 return _dateDate;
95 }
96
97
98
99
100
101
102
103 public void setDate( Date dateDate )
104 {
105 _dateDate = dateDate;
106 }
107
108
109
110
111
112
113 public String getReference( )
114 {
115 return _strReference;
116 }
117
118
119
120
121
122
123
124 public void setReference( String strReference )
125 {
126 _strReference = strReference;
127 }
128
129
130
131
132
133
134 public String getUser( )
135 {
136 return _strUser;
137 }
138
139
140
141
142
143
144
145 public void setUser( String strUser )
146 {
147 _strUser = strUser;
148 }
149
150
151
152
153
154
155 public String getAppCode( )
156 {
157 return _strAppCode;
158 }
159
160
161
162
163
164
165
166 public void setAppCode( String strAppCode )
167 {
168 _strAppCode = strAppCode;
169 }
170
171
172
173
174
175
176 public String getComment( )
177 {
178 return _strComment;
179 }
180
181
182
183
184
185
186
187 public void setComment( String strComment )
188 {
189 _strComment = strComment;
190 }
191
192 public String toLog( )
193 {
194 return "[ID : " + getId( ) + "]" + "[REFERENCE : " + getReference( ) + "]" + "[DATE : " + getDate( ) + "]" + "[USER : " + getUser( ) + "]"
195 + "[APP CODE : " + getAppCode( ) + "]";
196 }
197 }