本文整理汇总了Java中hudson.util.FormValidation.errorWithMarkup方法的典型用法代码示例。如果您正苦于以下问题:Java FormValidation.errorWithMarkup方法的具体用法?Java FormValidation.errorWithMarkup怎么用?Java FormValidation.errorWithMarkup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hudson.util.FormValidation
的用法示例。
在下文中一共展示了FormValidation.errorWithMarkup方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doCheckToolchainName
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckToolchainName(@QueryParameter String value)
throws IOException, ServletException {
if (value == null || value.equals("empty")) {
return FormValidation.errorWithMarkup("Could not retrieve list of toolchains. Please check your username and password. If you have not created a toolchain, create one <a target='_blank' href='https://console.ng.bluemix.net/devops/create'>here</a>.");
}
return FormValidation.ok();
}
示例2: doCheckToolchainName
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckToolchainName(@QueryParameter String value)
throws IOException, ServletException {
if (value == null || value.equals("empty")) {
return FormValidation.errorWithMarkup("Could not retrieve list of toolchains. Please check your username and password. If you have not created a toolchain, create one <a target='_blank' href='https://console.ng.bluemix.net/devops/create'>here</a>.");
}
return FormValidation.ok();
}
示例3: doCheckPolicyName
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckPolicyName(@QueryParameter String value)
throws IOException, ServletException {
if (value == null || value.equals("empty")) {
return FormValidation.errorWithMarkup("Fail to get the policies, please check your username/password or org name and make sure you have created policies for this org and toolchain.");
}
return FormValidation.ok();
}
示例4: doCheckPolicyName
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckPolicyName(@QueryParameter String value) {
if (value == null || value.equals("empty")) {
return FormValidation.errorWithMarkup("Fail to get the policies, please check your username/password or org name and make sure you have created policies for this org and toolchain.");
}
return FormValidation.ok();
}
示例5: doCheckAcceptLicense
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckAcceptLicense(@QueryParameter boolean value) {
if (username==null || password==null)
return FormValidation.errorWithMarkup(Messages.JDKInstaller_RequireOracleAccount(Stapler.getCurrentRequest().getContextPath()+'/'+getDescriptorUrl()+"/enterCredential"));
if (value) {
return FormValidation.ok();
} else {
return FormValidation.error(Messages.JDKInstaller_DescriptorImpl_doCheckAcceptLicense());
}
}
开发者ID:jenkinsci,项目名称:apache-httpcomponents-client-4-api-plugin,代码行数:10,代码来源:Client4JDKInstaller.java
示例6: doCheckInstallation
import hudson.util.FormValidation; //导入方法依赖的package包/类
public FormValidation doCheckInstallation(@QueryParameter String value){
if (AppScanSourceInstallation.allInstallations().length >= 0){
try{
if(AppScanSourceInstallation.allInstallations()[0].getName() != null){
return FormValidation.ok();
}
} catch (Exception e){
return FormValidation.errorWithMarkup("Please configure AppScan Source installations from <a href=\""+ j.getRootUrl() +"configure\" target=\"_new\">the system configuration.</a>");
}
}
return FormValidation.errorWithMarkup("Please configure AppScan Source installations from <a href=\""+ j.getRootUrl() +"configure\" target=\"_new\">the system configuration.</a>");
}