當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。