當前位置: 首頁>>代碼示例>>Java>>正文


Java DataBoundConstructor類代碼示例

本文整理匯總了Java中org.kohsuke.stapler.DataBoundConstructor的典型用法代碼示例。如果您正苦於以下問題:Java DataBoundConstructor類的具體用法?Java DataBoundConstructor怎麽用?Java DataBoundConstructor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DataBoundConstructor類屬於org.kohsuke.stapler包,在下文中一共展示了DataBoundConstructor類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: EnvironmentScope

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public EnvironmentScope(String value, String branchName, String envName) {
    switch (value) {
        case "build":
            this.isBuild = true;
            this.isDeploy = false;
            this.isAll = false;
            break;
        case "deploy":
            this.isDeploy = true;
            this.isBuild = false;
            this.isAll = false;
            break;
        default:
            this.isAll = true;
            this.isBuild = false;
            this.isDeploy = false;
            break;
    }

    this.branchName = branchName;
    this.envName = envName;
}
 
開發者ID:IBM,項目名稱:ibm-cloud-devops,代碼行數:24,代碼來源:EnvironmentScope.java

示例2: AwsBatchBuilder

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
/**
 * This annotation tells Hudson to call this constructor, with
 * values from the configuration form page with matching parameter names.
 */
@DataBoundConstructor
public AwsBatchBuilder(String jobname, String jobdefinition,
                       String command, String jobqueue,
                       String vcpu, String memory, String retries){/*,
                         HashMap<String, String> params,
                         HashMap<String, String> environment) {*/
    this.jobname = jobname;
    this.jobdefinition = jobdefinition;
    this.jobqueue = jobqueue;
    this.command = Arrays.asList(command.split("\\s+"));
    this.vcpu = parseIntOrNull(vcpu);
    this.memory = parseIntOrNull(memory);
    this.retries = parseIntOrNull(retries);
    this.params = null;
    this.environment = null;
}
 
開發者ID:nfultz,項目名稱:aws-batch,代碼行數:21,代碼來源:AwsBatchBuilder.java

示例3: RanorexRunnerBuilder

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
/**
 * When this builder is created in the project configuration step, the
 * builder object will be created from the strings below
 *
 * @param rxTestSuiteFilePath The name/location of the Ranorex Test Suite /
 * Ranorex Test Exe File
 * @param rxRunConfiguration The Ranorex Run configuration which will be
 * executed
 * @param rxReportDirectory The directory where the Ranorex Report should be
 * saved
 * @param rxReportFile The name of the Ranorex Report
 * @param rxReportExtension The extension of your Ranorex Report
 * @param rxJUnitReport If true, a JUnit compatible Report will be saved
 * @param rxZippedReport If true, the report will also be saved as RXZLOG
 * @param rxZippedReportDirectory The directory where the Ranorex Zipped
 * Report should be saved
 * @param rxZippedReportFile The name of the zipped Ranorex Report
 * @param rxGlobalParameter Global test suite parameters
 * @param cmdLineArgs Additional CMD line arguments
 */
@DataBoundConstructor

public RanorexRunnerBuilder(
        String rxTestSuiteFilePath,
        String rxRunConfiguration,
        String rxReportDirectory,
        String rxReportFile,
        String rxReportExtension,
        Boolean rxJUnitReport,
        Boolean rxZippedReport,
        String rxZippedReportDirectory,
        String rxZippedReportFile,
        String rxGlobalParameter,
        String cmdLineArgs
)
{
    this.rxTestSuiteFilePath = rxTestSuiteFilePath;
    this.rxRunConfiguration = rxRunConfiguration;
    this.rxReportDirectory = rxReportDirectory;
    this.rxReportFile = rxReportFile;
    this.rxReportExtension = rxReportExtension;
    this.rxJUnitReport = rxJUnitReport;
    this.rxZippedReport = rxZippedReport;
    this.rxZippedReportDirectory = rxZippedReportDirectory;
    this.rxZippedReportFile = rxZippedReportFile;
    this.rxGlobalParameter = rxGlobalParameter;
    this.cmdLineArgs = cmdLineArgs;
}
 
開發者ID:ranorex,項目名稱:Jenkins-Ranorex-Plugin,代碼行數:49,代碼來源:RanorexRunnerBuilder.java

示例4: ForkPullRequestDiscoveryTrait

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
/**
 * Constructor for stapler.
 *
 * @param strategyId the strategy id.
 * @param trust      the authority to use.
 */
@DataBoundConstructor
public ForkPullRequestDiscoveryTrait(int strategyId,
                                     @NonNull SCMHeadAuthority<? super GiteaSCMSourceRequest, ? extends
                                             ChangeRequestSCMHead2, ? extends SCMRevision> trust) {
    this.strategyId = strategyId;
    this.trust = trust;
}
 
開發者ID:jenkinsci,項目名稱:gitea-plugin,代碼行數:14,代碼來源:ForkPullRequestDiscoveryTrait.java

示例5: OcWatch

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public OcWatch(String server, String project, boolean skipTLSVerify, String caPath, String verb, List advArgs, List verbArgs,
               List userArgs, List options, String token,
               int logLevel) {
    this.watchLoglevel = logLevel;
    this.cmdBuilder = new ClientCommandBuilder(server, project, skipTLSVerify, caPath, verb,
            advArgs, verbArgs, userArgs, options, token, logLevel);
}
 
開發者ID:openshift,項目名稱:jenkins-client-plugin,代碼行數:9,代碼來源:OcWatch.java

示例6: Config

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public Config(String siteName) {
  if (siteName == null) {
    Site[] sites = DESCRIPTOR.getSites();
    if (sites.length > 0) {
      siteName = sites[0].getName();
    }
  }
  this.siteName = siteName;
}
 
開發者ID:jenkinsci,項目名稱:jira-steps-plugin,代碼行數:11,代碼來源:Config.java

示例7: Config

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public Config(String siteName) {
	if (siteName == null) {
		Site[] sites = DESCRIPTOR.getSites();
		if (sites.length > 0) {
			siteName = sites[0].getName();
		}
	}
	this.siteName = siteName;
}
 
開發者ID:ThoughtsLive,項目名稱:jira-steps,代碼行數:11,代碼來源:Config.java

示例8: ASFMetadataSCMNavigatorTrait

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public ASFMetadataSCMNavigatorTrait(String avatarUrl, String avatarDescription, String objectDisplayName,
                                    String objectDescription, String objectUrl) {
    this.avatarUrl = StringUtils.trimToNull(avatarUrl);
    this.avatarDescription = StringUtils.trimToNull(avatarDescription);
    this.objectDisplayName = StringUtils.trimToNull(objectDisplayName);
    this.objectDescription = StringUtils.trimToNull(objectDescription);
    this.objectUrl = StringUtils.trimToNull(objectUrl);
}
 
開發者ID:stephenc,項目名稱:asf-gitpubsub-jenkins-plugin,代碼行數:10,代碼來源:ASFMetadataSCMNavigatorTrait.java

示例9: PublishSQStep

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public PublishSQStep(String SQHostURL, String SQAuthToken, String SQProjectKey) {

    this.SQHostURL = SQHostURL;
    this.SQAuthToken = SQAuthToken;
    this.SQProjectKey = SQProjectKey;
}
 
開發者ID:IBM,項目名稱:ibm-cloud-devops,代碼行數:8,代碼來源:PublishSQStep.java

示例10: AwsBucketCredentialsImpl

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public AwsBucketCredentialsImpl(@CheckForNull CredentialsScope scope, @CheckForNull String id, @CheckForNull String region,
                                @CheckForNull String bucketName, @CheckForNull String bucketPath,
                                @CheckForNull String username, @CheckForNull boolean s3Proxy, @CheckForNull String description,
                                @CheckForNull String kmsEncryptionContextKey, @CheckForNull String kmsSecretName, @CheckForNull boolean kmsProxy,
                                String proxyHost, String proxyPort) {
    super(scope, id, description);
    this.bucketName = bucketName;
    this.bucketPath = bucketPath;
    this.s3Proxy = s3Proxy;
    this.kmsEncryptionContextKey = kmsEncryptionContextKey;
    this.kmsSecretName = kmsSecretName;
    this.username = username;
    this.region=region;
    this.kmsProxy = kmsProxy;
    this.proxyHost = proxyHost;
    this.proxyPort = proxyPort;
    this.amazonS3ClientBuilder = new AwsS3ClientBuilder();
    this.amazonS3ClientBuilder.region(region);
    if (s3Proxy) {
        this.amazonS3ClientBuilder.proxyHost(proxyHost).proxyPort(Integer.parseInt(proxyPort));
    }
    this.amazonKmsClientBuilder = new AwsKmsClientBuilder();
    this.amazonKmsClientBuilder.region(region);
    if (kmsProxy) {
        this.amazonKmsClientBuilder.proxyHost(proxyHost).proxyPort(Integer.parseInt(proxyPort));
    }
}
 
開發者ID:stevegal,項目名稱:jenkins-aws-bucket-credentials,代碼行數:29,代碼來源:AwsBucketCredentialsImpl.java

示例11: EvaluateGate

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public EvaluateGate(String policyName,
                    String orgName,
                    String applicationName,
                    String toolchainName,
                    String environmentName,
                    String buildJobName,
                    String credentialsId,
                    boolean willDisrupt,
                    EnvironmentScope scope,
                    OptionalBuildInfo additionalBuildInfo) {
    this.policyName = policyName;
    this.orgName = orgName;
    this.applicationName = applicationName;
    this.toolchainName = toolchainName;
    this.environmentName = environmentName;
    this.buildJobName = buildJobName;
    this.credentialsId = credentialsId;
    this.willDisrupt = willDisrupt;
    this.scope = scope;
    this.envName = scope.getEnvName();
    this.isDeploy = scope.isDeploy();
    if (additionalBuildInfo == null) {
        this.buildNumber = null;
    } else {
        this.buildNumber = additionalBuildInfo.buildNumber;
    }
}
 
開發者ID:IBM,項目名稱:ibm-cloud-devops,代碼行數:29,代碼來源:EvaluateGate.java

示例12: StandardAwsCredentials

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public StandardAwsCredentials(CredentialsScope scope, String id, String description, String displayName, String accessKey, String secretKey) {
    super(scope, id, description);

    this.displayName = displayName;
    this.accessKey = accessKey;
    this.secretKey = Secret.fromString(secretKey);
}
 
開發者ID:riboseinc,項目名稱:aws-codecommit-trigger-plugin,代碼行數:9,代碼來源:StandardAwsCredentials.java

示例13: OTCNotifier

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public OTCNotifier(boolean onStarted,
                   boolean onCompleted,
                   boolean onFinalized,
                   boolean failureOnly,
                   boolean enableTraceability
                   ){
    this.onStarted = onStarted;
    this.onCompleted = onCompleted;
    this.onFinalized = onFinalized;
    this.failureOnly = failureOnly;
    this.enableTraceability = enableTraceability;
}
 
開發者ID:IBM,項目名稱:ibm-cloud-devops,代碼行數:14,代碼來源:OTCNotifier.java

示例14: WebhookPublisher

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public WebhookPublisher(String webhookURL, boolean sendOnStateChange, boolean enableUrlLinking, boolean enableArtifactList, boolean enableFooterInfo) {
    this.webhookURL = webhookURL;
    this.sendOnStateChange = sendOnStateChange;
    this.enableUrlLinking = enableUrlLinking;
    this.enableArtifactList = enableArtifactList;
    this.enableFooterInfo = enableFooterInfo;
}
 
開發者ID:jammehcow,項目名稱:jenkins-discord,代碼行數:9,代碼來源:WebhookPublisher.java

示例15: AzureKeyVaultSecret

import org.kohsuke.stapler.DataBoundConstructor; //導入依賴的package包/類
@DataBoundConstructor
public AzureKeyVaultSecret(String _secretType, String _name,
    String _version, String _envVariable) {
    secretType = _secretType;
    envVariable = _envVariable;
    name = _name;
    version = _version;
}
 
開發者ID:mbearup,項目名稱:azure-keyvault-plugin,代碼行數:9,代碼來源:AzureKeyVaultSecret.java


注:本文中的org.kohsuke.stapler.DataBoundConstructor類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。