1 package fr.paris.lutece.portal.business.securityheader;
2
3 import javax.validation.constraints.NotEmpty;
4 import javax.validation.constraints.Size;
5
6
7
8
9
10
11
12 public class SecurityHeader
13 {
14
15 private int _nId;
16
17 @NotEmpty( message = "portal.securityheader.validation.securityheader.Name.notEmpty" )
18 @Size( max = 60 , message = "portal.securityheader.validation.securityheader.Name.size" )
19 private String _strName;
20
21 @NotEmpty( message = "portal.securityheader.validation.securityheader.Value.notEmpty" )
22 @Size( max = 1024 , message = "portal.securityheader.validation.securityheader.Value.size" )
23 private String _strValue;
24
25 @Size( max = 1024 , message = "portal.securityheader.validation.securityheader.Description.size" )
26 private String _strDescription;
27
28 @NotEmpty( message = "portal.securityheader.validation.securityheader.Type.notEmpty" )
29 @Size( max = 10 , message = "portal.securityheader.validation.securityheader.Type.size" )
30 private String _strType;
31
32 @Size( max = 25 , message = "portal.securityheader.validation.securityheader.PageCategory.size" )
33 private String _strPageCategory;
34
35 private boolean _bIsActive;
36
37
38
39
40
41
42 public int getId( )
43 {
44 return _nId;
45 }
46
47
48
49
50
51
52
53 public void setId( int nId )
54 {
55 this._nId = nId;
56 }
57
58
59
60
61
62
63 public String getName( )
64 {
65 return _strName;
66 }
67
68
69
70
71
72
73
74 public void setName( String strName )
75 {
76 _strName = strName;
77 }
78
79
80
81
82
83
84 public String getValue( )
85 {
86 return _strValue;
87 }
88
89
90
91
92
93
94
95 public void setValue( String strValue )
96 {
97 _strValue = strValue;
98 }
99
100
101
102
103
104
105 public String getDescription( )
106 {
107 return _strDescription;
108 }
109
110
111
112
113
114
115
116 public void setDescription( String strDescription )
117 {
118 this._strDescription = strDescription;
119 }
120
121
122
123
124
125
126 public String getType( )
127 {
128 return _strType;
129 }
130
131
132
133
134
135
136
137 public void setType( String strType )
138 {
139 this._strType = strType;
140 }
141
142
143
144
145
146
147 public String getPageCategory( )
148 {
149 return _strPageCategory;
150 }
151
152
153
154
155
156
157
158 public void setPageCategory( String strPageCategory )
159 {
160 this._strPageCategory = strPageCategory;
161 }
162
163
164
165
166
167
168 public boolean isActive( )
169 {
170 return _bIsActive;
171 }
172
173
174
175
176
177
178
179 public void setActive( boolean isActive )
180 {
181 this._bIsActive = isActive;
182 }
183 }