• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ActionParametersMap类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.atlassian.bamboo.collections.ActionParametersMap的典型用法代码示例。如果您正苦于以下问题:Java ActionParametersMap类的具体用法?Java ActionParametersMap怎么用?Java ActionParametersMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ActionParametersMap类属于com.atlassian.bamboo.collections包,在下文中一共展示了ActionParametersMap类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@NotNull
@Override
public Map<String, String> generateTaskConfigMap(@NotNull final ActionParametersMap params, @Nullable final TaskDefinition previousTaskDefinition)
{
	final Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);

	config.put("host", params.getString("host"));
	config.put("path", params.getString("path"));
	config.put("product", params.getString("product"));
	config.put("major", params.getString("major"));
	config.put("minor", params.getString("minor"));
	config.put("servicepack", params.getString("servicepack"));
	config.put("plug-build", params.getString("plug-build"));

	return config;
}
 
开发者ID:orionhealth,项目名称:xbdd-bamboo-plugin,代码行数:17,代码来源:XBDDTestResultsSenderConfigurator.java


示例2: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public void validate(final ActionParametersMap params, final ErrorCollection errorCollection)
{
	super.validate(params, errorCollection);

	if (StringUtils.isEmpty(params.getString(DeployTaskConstants.STACK_NAME)))
	{
		errorCollection.addError(DeployTaskConstants.STACK_NAME, textProvider.getText("bamboo-opsworks.stack_name.required"));
	}
	if (StringUtils.isEmpty(params.getString(DeployTaskConstants.APP_NAME)))
	{
		errorCollection.addError(DeployTaskConstants.APP_NAME, textProvider.getText("bamboo-opsworks.app_name.required"));
	}
	
	if(StringUtils.isEmpty(params.getString(AWSConstants.ACCESS_KEY_ID))
			&& !StringUtils.isEmpty(params.getString(AWSConstants.SECRET_ACCESS_KEY))) {
		errorCollection.addError(AWSConstants.ACCESS_KEY_ID, textProvider.getText("bamboo-opsworks.access_key_id.required_with_secret"));
	}
	
	if(StringUtils.isEmpty(params.getString(AWSConstants.SECRET_ACCESS_KEY))
			&& !StringUtils.isEmpty(params.getString(AWSConstants.ACCESS_KEY_ID))) {
		errorCollection.addError(AWSConstants.SECRET_ACCESS_KEY, textProvider.getText("bamboo-opsworks.secret_access_key.required_with_access"));
	}
}
 
开发者ID:KabbageInc,项目名称:bamboo-opsworks,代码行数:25,代码来源:DeployTaskConfigurator.java


示例3: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params, final TaskDefinition previousTaskDefinition)
{
    final Map<String, String> context = super.generateTaskConfigMap(params, previousTaskDefinition);

    context.put("zs_url", params.getString("zs_url"));
    context.put("api_key", params.getString("api_key"));
    context.put("api_secret", params.getString("api_secret"));
    context.put("base_url", params.getString("base_url"));
    context.put("app_name", params.getString("app_name"));
    context.put("zsversion", params.getString("zsversion"));
    context.put("userparams", params.getString("userparams"));
    context.put("custom_options", params.getString("custom_options"));
    context.put("customzpk", params.getString("customzpk"));
    context.put("buildnr", params.getString("buildnr"));
    
    return context;
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:18,代码来源:DeploymentTaskConfigurator.java


示例4: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params, final TaskDefinition previousTaskDefinition)
{
    final Map<String, String> context = super.generateTaskConfigMap(params, previousTaskDefinition);

    context.put("zs_url", params.getString("zs_url"));
    context.put("api_key", params.getString("api_key"));
    context.put("api_secret", params.getString("api_secret"));
    context.put("package", params.getString("package"));
    context.put("base_url", params.getString("base_url"));
    context.put("app_name", params.getString("app_name"));
    context.put("zsversion", params.getString("zsversion"));
    context.put("custom_options", params.getString("custom_options"));
    context.put("retry", params.getString("retry"));
    context.put("waittime", params.getString("waittime"));
    
    return context;
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:18,代码来源:RollbackTaskConfigurator.java


示例5: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public void validate(final ActionParametersMap params, final ErrorCollection errorCollection)
{
    super.validate(params, errorCollection);
    
    this.validator.params = params;
    this.validator.errorCollection = errorCollection;
    this.errorCollection = errorCollection;

    validator.validateZsUrl();
    validator.validateApiKey();
    validator.validateApiSecret();
    validator.validateAppName();
    validator.validateBaseUrl();
    validator.validateZsVersion();
    validateRetry(params.getString("retry"));
    validateWaittime(params.getString("waittime"));
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:18,代码来源:RollbackTaskConfigurator.java


示例6: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params, final TaskDefinition previousTaskDefinition)
{
    final Map<String, String> context = super.generateTaskConfigMap(params, previousTaskDefinition);

    context.put("zs_url", params.getString("zs_url"));
    context.put("api_key", params.getString("api_key"));
    context.put("api_secret", params.getString("api_secret"));
    context.put("package", params.getString("package"));
    context.put("base_url", params.getString("base_url"));
    context.put("app_name", params.getString("app_name"));
    context.put("zsversion", params.getString("zsversion"));
    context.put("custom_options", params.getString("custom_options"));
    context.put("retry", params.getString("retry"));
    context.put("waittime", params.getString("waittime"));
    context.put("rollback", params.getString("rollback"));
    
    return context;
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:19,代码来源:DeploymentCheckTaskConfigurator.java


示例7: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public void validate(final ActionParametersMap params, final ErrorCollection errorCollection)
{
    super.validate(params, errorCollection);
    
    this.validator.params = params;
    this.validator.errorCollection = errorCollection;
    this.errorCollection = errorCollection;

    validator.validateZsUrl();
    validator.validateApiKey();
    validator.validateApiSecret();
    validator.validateAppName();
    validator.validateBaseUrl();
    validator.validateZsVersion();
    validateRetry(params.getString("retry"));
    validateWaittime(params.getString("waittime"));
    
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:20,代码来源:DeploymentCheckTaskConfigurator.java


示例8: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@NotNull
@Override
public Map<String, String> generateTaskConfigMap(
		@NotNull final ActionParametersMap params,
		@Nullable final TaskDefinition previousTaskDefinition) {
	final Map<String, String> config = super.generateTaskConfigMap(params,
			previousTaskDefinition);

	config.put("hammer", params.getString("hammer"));
	config.put("drivers", params.getString("drivers"));
	config.put("projectDir", params.getString("projectDir"));
	config.put("command", params.getString("command"));
	config.put("args", params.getString("args"));
	config.put("exportSQL", params.getString("exportSQL"));
	config.put("exportRollbackSQL", params.getString("exportRollbackSQL"));

	return config;
}
 
开发者ID:Datical,项目名称:DaticalDB4Bamboo,代码行数:19,代码来源:DaticalDBTaskConfigurator.java


示例9: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
/**
 * Validate gui form when Saving params
 */
@Override
public void validate(ActionParametersMap params, ErrorCollection errorCollection) {
    super.validate(params, errorCollection);
    utils.getNotifier().notifyInfo("Validating BlazeMeter task settings before saving.");
    final String selectedTest = Utils.cutTestType(params.getString(Constants.SETTINGS_SELECTED_TEST_ID));
    fillErrorCollection(selectedTest, errorCollection);
    if (errorCollection.hasAnyErrors()) {
        return;
    }
    try {
        if (StringUtils.isBlank(User.getUser(utils).getId())) {
            errorCollection.addErrorMessage("Cannot load tests from BlazeMeter server. Invalid user key!");
        } else {
            //verify if the test still exists on BlazeMeter server
            AbstractTest receivedTest = TestDetector.detectTest(utils, selectedTest);
            if (receivedTest == null) {
                errorCollection.addErrorMessage("Test '" + selectedTest + "' doesn't exits on BlazeMeter server.");
            }
        }
    } catch (Exception e) {
        errorCollection.addErrorMessage("Failed to get tests from BlazeMeter account: " + e.getMessage());
    }
    utils.getNotifier().notifyInfo("BlazeMeter task settings were validated and saved.");
}
 
开发者ID:Blazemeter,项目名称:blazemeter-bamboo-plugin,代码行数:28,代码来源:ConfigTask.java


示例10: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
/**
 * from gui to backend
 */
@Override
public Map<String, String> generateTaskConfigMap(ActionParametersMap params, TaskDefinition previousTaskDefinition) {
    final Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);

    config.put(Constants.SETTINGS_SELECTED_TEST_ID, params.getString(Constants.SETTINGS_SELECTED_TEST_ID).trim());
    config.put(Constants.SETTINGS_JMETER_PROPERTIES, params.getString(Constants.SETTINGS_JMETER_PROPERTIES).trim());
    config.put(Constants.SETTINGS_NOTES, params.getString(Constants.SETTINGS_NOTES).trim());
    config.put(Constants.SETTINGS_JTL_PATH, params.getString(Constants.SETTINGS_JTL_PATH).trim());
    config.put(Constants.SETTINGS_JUNIT_PATH, params.getString(Constants.SETTINGS_JUNIT_PATH).trim());
    String jtlReport = params.getString(Constants.SETTINGS_JTL_REPORT) == null ? "false" : "true";
    String junitReport = params.getString(Constants.SETTINGS_JUNIT_REPORT) == null ? "false" : "true";
    config.put(Constants.SETTINGS_JTL_REPORT, jtlReport);
    config.put(Constants.SETTINGS_JUNIT_REPORT, junitReport);

    PluginSettings pluginSettings = this.pluginSettingsFactory.createGlobalSettings();
    config.put(AdminServlet.API_ID,
            (String) pluginSettings.get(AdminServlet.API_ID));
    config.put(AdminServlet.API_SECRET,
            (String) pluginSettings.get(AdminServlet.API_SECRET));
    config.put(AdminServlet.URL,
            (String) pluginSettings.get(AdminServlet.URL));
    return config;
}
 
开发者ID:Blazemeter,项目名称:blazemeter-bamboo-plugin,代码行数:27,代码来源:ConfigTask.java


示例11: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@NotNull
public Map<String, String> generateTaskConfigMap(@NotNull final ActionParametersMap params, @Nullable final TaskDefinition previousTaskDefinition) {
    final Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);
    config.put(xUnitParserTask.TEST_FILE_PATTERN, params.getString(xUnitParserTask.TEST_FILE_PATTERN));
    config.put(xUnitParserTask.COLLECT_OUTDATED_FILES, params.getString(xUnitParserTask.COLLECT_OUTDATED_FILES));
    return config;
}
 
开发者ID:wwwlicious,项目名称:wwwlicious.bamboo.xunit,代码行数:8,代码来源:xUnitParserConfigurator.java


示例12: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public void validate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection) {
    super.validate(params, errorCollection);

    final String directory = params.getString(xUnitParserTask.TEST_FILE_PATTERN);
    if (StringUtils.isEmpty(directory))
    {
        errorCollection.addError(xUnitParserTask.TEST_FILE_PATTERN, i18nResolver.getText(xUnitParserTask.TEST_FILE_PATTERN + ".error"));
    }
}
 
开发者ID:wwwlicious,项目名称:wwwlicious.bamboo.xunit,代码行数:10,代码来源:xUnitParserConfigurator.java


示例13: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public void validate(ActionParametersMap params, ErrorCollection errorCollection) {
	validateRequired(params, errorCollection, CFG_SELECTED_UTIL);
	validateRequired(params, errorCollection, CFG_SELECTED_CRED);
	validateRequired(params, errorCollection, CFG_APP_ID);
	validateNumber(params, errorCollection, CFG_MAX_HIGH);
	validateNumber(params, errorCollection, CFG_MAX_MEDIUM);
	validateNumber(params, errorCollection, CFG_MAX_LOW);
}
 
开发者ID:AppSecDev,项目名称:asoc-bamboo-plugin,代码行数:10,代码来源:SASTScanTaskConfigurator.java


示例14: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public Map<String, String> generateTaskConfigMap(ActionParametersMap params, TaskDefinition previousTaskDefinition) {
	Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);
	config.put(CFG_SELECTED_UTIL, params.getString(CFG_SELECTED_UTIL));
	config.put(CFG_SELECTED_CRED, params.getString(CFG_SELECTED_CRED));
	config.put(CFG_APP_ID, params.getString(CFG_APP_ID));
	config.put(CFG_SUSPEND, Boolean.toString(params.getBoolean(CFG_SUSPEND)));
	config.put(CFG_MAX_HIGH, params.getString(CFG_MAX_HIGH));
	config.put(CFG_MAX_MEDIUM, params.getString(CFG_MAX_MEDIUM));
	config.put(CFG_MAX_LOW, params.getString(CFG_MAX_LOW));
	return config;
}
 
开发者ID:AppSecDev,项目名称:asoc-bamboo-plugin,代码行数:13,代码来源:SASTScanTaskConfigurator.java


示例15: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params,
        final TaskDefinition previousTaskDefinition) {
    final Map<String, String> configMap = super.generateTaskConfigMap(params, previousTaskDefinition);

    for (final HubScanConfigFieldEnum param : HubScanConfigFieldEnum.values()) {
        final String key = param.getKey();
        final String value = params.getString(key);
        configMap.put(key, value);
    }
    return configMap;
}
 
开发者ID:blackducksoftware,项目名称:hub-bamboo,代码行数:13,代码来源:HubScanTaskConfigurator.java


示例16: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params, final TaskDefinition previousTaskDefinition) {
	final Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);

	for (String field : fields) {
		config.put(field, params.getString(field));
	}
	
	return config;
}
 
开发者ID:KabbageInc,项目名称:bamboo-opsworks,代码行数:11,代码来源:DeployTaskConfigurator.java


示例17: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@NotNull
@Override
public Map<String, String> generateTaskConfigMap(@NotNull ActionParametersMap params, @Nullable TaskDefinition previousTaskDefinition)
{
    final Map<String, String> config = super.generateTaskConfigMap(params, previousTaskDefinition);
    taskConfiguratorHelper.populateTaskConfigMapWithActionParameters(config, params, FIELDS);
    return config;
}
 
开发者ID:javiergutites,项目名称:bamboo-checkstyle-plugin,代码行数:9,代码来源:CheckStyleTaskConfigurator.java


示例18: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
@Override
public void validate(@NotNull ActionParametersMap params, @NotNull ErrorCollection errorCollection)
{
    super.validate(params, errorCollection);

    if (StringUtils.isEmpty(params.getString(CheckStyleTaskConfigurator.CHECKSTYLE_PATH)))
    {
        errorCollection.addError(CheckStyleTaskConfigurator.CHECKSTYLE_PATH, "Please specify the directory containing the XML CheckStyle output files.");
    }
}
 
开发者ID:javiergutites,项目名称:bamboo-checkstyle-plugin,代码行数:11,代码来源:CheckStyleTaskConfigurator.java


示例19: validate

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public void validate(final ActionParametersMap params, final ErrorCollection errorCollection)
{
    super.validate(params, errorCollection);

    this.validator.params = params;
    this.validator.errorCollection = errorCollection;
    
    validator.validateZsUrl();
    validator.validateApiKey();
    validator.validateApiSecret();
    validator.validateAppName();
    validator.validateBaseUrl();
    validator.validateZsVersion();
    validator.validateCustomZpkFilename();
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:16,代码来源:DeploymentTaskConfigurator.java


示例20: generateTaskConfigMap

import com.atlassian.bamboo.collections.ActionParametersMap; //导入依赖的package包/类
public Map<String, String> generateTaskConfigMap(final ActionParametersMap params, final TaskDefinition previousTaskDefinition)
{
    final Map<String, String> context = super.generateTaskConfigMap(params, previousTaskDefinition);

    context.put("custom_options", params.getString("custom_options"));
    context.put("customzpk", params.getString("customzpk"));
    
    return context;
}
 
开发者ID:zend-patterns,项目名称:ZendServerBamboo,代码行数:10,代码来源:PackagingTaskConfigurator.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java InstructionUtils类代码示例发布时间:2022-05-22
下一篇:
Java AmazonSNSClientBuilder类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap