1 /*
2 * Copyright (c) 2002-2025, City of Paris
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright notice
10 * and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright notice
13 * and the following disclaimer in the documentation and/or other materials
14 * provided with the distribution.
15 *
16 * 3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 *
32 * License 1.0
33 */
34 package fr.paris.lutece.plugins.pluginwizard.web.formbean;
35
36 import java.io.Serializable;
37
38 import javax.validation.constraints.NotEmpty;
39 import javax.validation.constraints.Pattern;
40
41 /**
42 * Configuration FormBean
43 */
44 public class ConfigurationFormBean implements Serializable
45 {
46 // Variables declarations
47 private int _nIdPlugin;
48 @NotEmpty( message = "pluginwizard.error.workflow.configuration.workflowTaskName.notEmpty" )
49 @Pattern( regexp = "^[A-Z][A-Za-z]*Task$", message = "pluginwizard.error.workflow.configuration.workflowTaskName.pattern" )
50 private String _strWorkflowTaskName;
51 @Pattern( regexp = "^0|1$", message = "pluginwizard.error.workflow.configuration.workflowFormConfigRequired.pattern" )
52 private String _strWorkflowFormConfigRequired;
53 @Pattern( regexp = "^0|1$", message = "pluginwizard.error.workflow.configuration.workflowFormTaskRequired.pattern" )
54 private String _strWorkflowFormTaskRequired;
55 @Pattern( regexp = "^0|1$", message = "pluginwizard.error.workflow.configuration.workflowTaskForAutomaticAction.pattern" )
56 private String _strWorkflowTaskForAutomaticAction;
57
58 /**
59 *
60 */
61 public ConfigurationFormBean( )
62 {
63 }
64
65 /**
66 * Returns the IdPlugin
67 *
68 * @return The IdPlugin
69 */
70 public int getIdPlugin( )
71 {
72 return _nIdPlugin;
73 }
74
75 /**
76 * Sets the IdPlugin
77 *
78 * @param nIdPlugin
79 * The IdPlugin
80 */
81 public void setIdPlugin( int nIdPlugin )
82 {
83 _nIdPlugin = nIdPlugin;
84 }
85
86 /**
87 * Returns WorkflowFormConfigRequired
88 *
89 * @return The WorkflowFormConfigRequired
90 */
91 public String getWorkflowFormConfigRequired( )
92 {
93 return _strWorkflowFormConfigRequired;
94 }
95
96 /**
97 * Sets the WorkflowFormConfigRequired
98 *
99 * @param strWorkflowFormConfigRequired
100 * The WorkflowFormConfigRequired
101 */
102 public void setWorkflowFormConfigRequired( String strWorkflowFormConfigRequired )
103 {
104 _strWorkflowFormConfigRequired = strWorkflowFormConfigRequired;
105 }
106
107 /**
108 * Returns the WorkflowFormTaskRequired
109 *
110 * @return The WorkflowFormTaskRequired
111 */
112 public String getWorkflowFormTaskRequired( )
113 {
114 return _strWorkflowFormTaskRequired;
115 }
116
117 /**
118 * Sets the WorkflowFormTaskRequired
119 *
120 * @param strWorkflowFormTaskRequired
121 * The WorkflowFormTaskRequired
122 */
123 public void setWorkflowFormTaskRequired( String strWorkflowFormTaskRequired )
124 {
125 _strWorkflowFormTaskRequired = strWorkflowFormTaskRequired;
126 }
127
128 /**
129 * Returns the WorkflowTaskForAutomaticAction
130 *
131 * @return The WorkflowTaskForAutomaticAction
132 */
133 public String getWorkflowTaskForAutomaticAction( )
134 {
135 return _strWorkflowTaskForAutomaticAction;
136 }
137
138 /**
139 * Sets the WorkflowTaskForAutomaticAction
140 *
141 * @param strWorkflowTaskForAutomaticAction
142 * The WorkflowTaskForAutomaticAction
143 */
144 public void setWorkflowTaskForAutomaticAction( String strWorkflowTaskForAutomaticAction )
145 {
146 _strWorkflowTaskForAutomaticAction = strWorkflowTaskForAutomaticAction;
147 }
148
149 /**
150 * Returns the WorkflowTaskName
151 *
152 * @return The WorkflowTaskName
153 */
154 public String getWorkflowTaskName( )
155 {
156 return _strWorkflowTaskName;
157 }
158
159 /**
160 * Sets the WorkflowTaskName
161 *
162 * @param strWorkflowTaskName
163 * The WorkflowTaskName
164 */
165 public void setWorkflowTaskName( String strWorkflowTaskName )
166 {
167 _strWorkflowTaskName = strWorkflowTaskName;
168 }
169 }