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.pluginwizard.business.model;
35
36 import java.io.Serializable;
37
38 import javax.validation.constraints.NotEmpty;
39 import javax.validation.constraints.Pattern;
40
41
42
43
44 public class Portlet implements Serializable
45 {
46
47
48
49 private static final long serialVersionUID = 1L;
50
51 private int _nIdPortletPlugin;
52 @NotEmpty( message = "pluginwizard.error.portlet.class.notEmpty" )
53 @Pattern( regexp = "[A-Z][a-zA-Z]*Portlet", message = "pluginwizard.error.portlet.class.pattern" )
54 private String _strPortletClass;
55 @NotEmpty( message = "pluginwizard.error.portlet.type.notEmpty" )
56 @Pattern( regexp = "[A-Z]*_PORTLET", message = "pluginwizard.error.portlet.type.pattern" )
57 private String _strPortletTypeName;
58 @NotEmpty( message = "pluginwizard.error.portlet.jspBaseName.notEmpty" )
59 @Pattern( regexp = "Portlet[A-Z][a-zA-Z.]*", message = "pluginwizard.error.portlet.jspBaseName.pattern" )
60 @Pattern( regexp = "Portlet[A-Z].*", message = "pluginwizard.error.portlet.jspBaseName.firstLetterInCapitalize" )
61 @Pattern( regexp = "^[A-Za-z]*$", message = "pluginwizard.error.portlet.jspBaseName.forbiddenCaracters" )
62 private String _strJspBaseName;
63
64
65
66
67
68
69 public String getPortletClass( )
70 {
71 return _strPortletClass;
72 }
73
74
75
76
77
78
79
80 public void setPortletClass( String strPortletClass )
81 {
82 _strPortletClass = strPortletClass;
83 }
84
85
86
87
88
89
90 public String getPortletTypeName( )
91 {
92 return _strPortletTypeName;
93 }
94
95
96
97
98
99
100
101 public void setPortletTypeName( String strPortletTypeName )
102 {
103 _strPortletTypeName = strPortletTypeName;
104 }
105
106
107
108
109
110
111 public String getJspBaseName( )
112 {
113 return _strJspBaseName;
114 }
115
116
117
118
119
120
121
122 public void setJspBaseName( String strJspBaseName )
123 {
124 _strJspBaseName = strJspBaseName;
125 }
126
127
128
129
130
131
132
133 public void setId( int nIdPortletPlugin )
134 {
135 _nIdPortletPlugin = nIdPortletPlugin;
136 }
137
138
139
140
141
142
143 public int getId( )
144 {
145 return _nIdPortletPlugin;
146 }
147 }