当前位置: 首页>>代码示例>>Java>>正文


Java FormValidation.errorWithMarkup方法代码示例

本文整理汇总了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();
}
 
开发者ID:IBM,项目名称:ibm-cloud-devops,代码行数:8,代码来源:PublishSQ.java

示例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();
}
 
开发者ID:IBM,项目名称:ibm-cloud-devops,代码行数:8,代码来源:PublishDeploy.java

示例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();
}
 
开发者ID:IBM,项目名称:ibm-cloud-devops,代码行数:8,代码来源:EvaluateGate.java

示例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();
        }
 
开发者ID:IBM,项目名称:ibm-cloud-devops,代码行数:8,代码来源:PublishTest.java

示例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>");
}
 
开发者ID:kevinfealey,项目名称:appscansource-scanner,代码行数:13,代码来源:AppScanSourceBuilder.java


注:本文中的hudson.util.FormValidation.errorWithMarkup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。