Skip to content

Commit eff9472

Browse files
ciis0chonton
authored andcommitted
1 parent 378b5df commit eff9472

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import org.kohsuke.stapler.QueryParameter;
6060
import org.kohsuke.stapler.Stapler;
6161
import org.kohsuke.stapler.StaplerRequest;
62+
import org.kohsuke.stapler.verb.POST;
6263

6364
import com.opencsv.CSVReader;
6465
import groovy.lang.Binding;
@@ -114,6 +115,7 @@ public String getDisplayName() {
114115
return Messages.ExtendedChoiceParameterDefinition_DisplayName();
115116
}
116117

118+
@POST
117119
public FormValidation doCheckPropertyFile(@QueryParameter final String propertyFile, @QueryParameter final String propertyKey,
118120
@QueryParameter final String type) throws IOException, ServletException {
119121
if(StringUtils.isBlank(propertyFile)) {
@@ -158,16 +160,19 @@ else if(StringUtils.isNotBlank(propertyKey)) {
158160
}
159161
}
160162

163+
@POST
161164
public FormValidation doCheckPropertyKey(@QueryParameter final String propertyFile, @QueryParameter final String propertyKey,
162165
@QueryParameter final String type) throws IOException, ServletException {
163166
return doCheckPropertyFile(propertyFile, propertyKey, type);
164167
}
165168

169+
@POST
166170
public FormValidation doCheckDefaultPropertyFile(@QueryParameter final String defaultPropertyFile,
167171
@QueryParameter final String defaultPropertyKey, @QueryParameter final String type) throws IOException, ServletException {
168172
return doCheckPropertyFile(defaultPropertyFile, defaultPropertyKey, type);
169173
}
170174

175+
@POST
171176
public FormValidation doCheckDefaultPropertyKey(@QueryParameter final String defaultPropertyFile,
172177
@QueryParameter final String defaultPropertyKey, @QueryParameter final String type) throws IOException, ServletException {
173178
return doCheckPropertyFile(defaultPropertyFile, defaultPropertyKey, type);

0 commit comments

Comments
 (0)