本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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));
}
}
示例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;
}
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}