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

Java I18nResolver类代码示例

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

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



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

示例1: DvcsStreamsActivityProvider

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public DvcsStreamsActivityProvider(@ComponentImport I18nResolver i18nResolver,
        @ComponentImport ApplicationProperties applicationProperties,
        @ComponentImport UserProfileAccessor userProfileAccessor,
        IssueLinker issueLinker,
        @ComponentImport TemplateRenderer templateRenderer,
        @ComponentImport PermissionManager permissionManager,
        @ComponentImport JiraAuthenticationContext jiraAuthenticationContext,
        @ComponentImport ProjectManager projectManager,
        ChangesetService changesetService,
        RepositoryService repositoryService,
        IssueAndProjectKeyManager issueAndProjectKeyManager)
{
    this.applicationProperties = applicationProperties;
    this.i18nResolver = i18nResolver;
    this.userProfileAccessor = userProfileAccessor;
    this.issueLinker = issueLinker;
    this.templateRenderer = checkNotNull(templateRenderer);
    this.permissionManager = permissionManager;
    this.jiraAuthenticationContext = jiraAuthenticationContext;
    this.projectManager = projectManager;
    this.changesetService = changesetService;
    this.repositoryService = repositoryService;
    this.issueAndProjectKeyManager = issueAndProjectKeyManager;
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:25,代码来源:DvcsStreamsActivityProvider.java


示例2: JamInboundConfigurationServlet

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public JamInboundConfigurationServlet(TemplateRenderer templateRenderer,
                                      I18nResolver i18nResolver,
                                      ApplicationLinkService applicationLinkService,
                                      AuthenticationConfigurationManager authenticationConfigurationManager)
{
    this.templateRenderer = templateRenderer;
    this.i18nResolver = i18nResolver;
    this.applicationLinkService = applicationLinkService;
    this.authenticationConfigurationManager = authenticationConfigurationManager;
}
 
开发者ID:SAP,项目名称:SAPJamWorkPatternJIRAIntegration,代码行数:11,代码来源:JamInboundConfigurationServlet.java


示例3: JamOutboundConfigurationServlet

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public JamOutboundConfigurationServlet(TemplateRenderer templateRenderer,
                                       I18nResolver i18nResolver,
                                       ApplicationLinkService applicationLinkService,
                                       AuthenticationConfigurationManager authenticationConfigurationManager) {
    this.templateRenderer = templateRenderer;
    this.i18nResolver = i18nResolver;
    this.applicationLinkService = applicationLinkService;
    this.authenticationConfigurationManager = authenticationConfigurationManager;
}
 
开发者ID:SAP,项目名称:SAPJamWorkPatternJIRAIntegration,代码行数:10,代码来源:JamOutboundConfigurationServlet.java


示例4: SecSignIDAuthenticator

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param templateRenderer the template renderer
 * @param authenticationContext the authentication context to check whether a user is logged.
 * @param pluginSettingsFactory the plugin factory for access to plugin settings
 * @param ao the active objects instance
 */
public SecSignIDAuthenticator(ApplicationProperties applicationProperties, TemplateRenderer templateRenderer, I18nResolver i18nResolver, JiraAuthenticationContext authenticationContext, PluginSettingsFactory pluginSettingsFactory, ActiveObjects ao, UserManager userManager) {
    this.applicationProperties = applicationProperties;
    this.templateRenderer = templateRenderer;
    this.i18nResolver = i18nResolver;
    this.authenticationContext = authenticationContext;
    this.pluginSettingsFactory = pluginSettingsFactory;
    this.ao = ao;
    this.userManager = userManager;
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:17,代码来源:SecSignIDAuthenticator.java


示例5: SecSignIDCreateUserFilter

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param templateRenderer
 * @param ao
 */
public SecSignIDCreateUserFilter(TemplateRenderer templateRenderer, ActiveObjects ao, I18nResolver i18nResolver)
{
    this.templateRenderer = templateRenderer;
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:12,代码来源:SecSignIDCreateUserFilter.java


示例6: super

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param userService
 * @param userUtil
 * @param userManager
 * @param webInterfaceManager
 * @param eventPublisher
 * @throws Exception 
 */
/*public SecSignIDAddUserAction(UserService userService, 
                              UserUtil userUtil, 
                              UserManager userManager, 
                              WebInterfaceManager webInterfaceManager, 
                              EventPublisher eventPublisher,
                              ActiveObjects ao, 
                              I18nResolver i18nResolver) {
    super(userService, userUtil, userManager, webInterfaceManager, eventPublisher);
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}*/
/*public SecSignIDAddUserAction(UserService userService,
        UserManager userManager, WebInterfaceManager webInterfaceManager,
        EventPublisher eventPublisher,
        ApplicationRoleManager roleManager,
        
        ActiveObjects ao, 
        I18nResolver i18nResolver) {
    super(userService, userManager, webInterfaceManager, eventPublisher, ComponentAccessor.getComponent(CreateUserApplicationHelper.class), roleManager);
    
    this.userUtil = null;
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}*/
public SecSignIDAddUserAction(ActiveObjects ao, I18nResolver i18nResolver) {
    super(ao, i18nResolver);
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:37,代码来源:SecSignIDAddUserAction.java


示例7: super

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param userService
 * @param userUtil
 * @param userManager
 * @param webInterfaceManager
 * @param eventPublisher
 */
/*public SecSignIDSignUpAction(ApplicationProperties applicationProperties, 
        UserService userService, 
        UserUtil userUtil, 
        ActiveObjects ao, 
        I18nResolver i18nResolver) {
        super(applicationProperties, userService, userUtil, new JiraCaptchaServiceImpl(), ExternalLinkUtilImpl.getInstance());
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}*/
/*public SecSignIDSignUpAction(ApplicationProperties applicationProperties,
        UserService userService,
        ApplicationRoleManager roleManager, 
        UserUtil userUtil,

        ActiveObjects ao, 
        I18nResolver i18nResolver) {
    
    // calling this constructor will be compiled but at runtime a org.springframework.beans.factory.BeanCreationException exception.
    // nested exception is java.lang.NoSuchMethodError: com.atlassian.jira.web.action.user.Signup...
    super(applicationProperties, userService, 
            ComponentAccessor.getComponent(JiraCaptchaService.class), 
            ComponentAccessor.getComponent(ExternalLinkUtil.class), 
            ComponentAccessor.getComponent(CreateUserApplicationHelper.class), 
            roleManager, userUtil, 
            ComponentAccessor.getComponent(PageBuilderService.class));

    
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}*/

public SecSignIDSignUpAction(ActiveObjects ao,  I18nResolver i18nResolver) {
    super(ao, i18nResolver);
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:43,代码来源:SecSignIDSignUpAction.java


示例8: SecSignIDCreateJiraUserAction

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param ao
 * @param i18nResolver
 */
public SecSignIDCreateJiraUserAction(ActiveObjects ao, I18nResolver i18nResolver) {
    super();
    
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:12,代码来源:SecSignIDCreateJiraUserAction.java


示例9: Admin

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param pluginSettingsFactory object to save data
 * @param userManager           manage users of JIRA
 * @param i18nResolver          translate
 */
public Admin(PluginSettingsFactory pluginSettingsFactory, UserManager userManager, I18nResolver i18nResolver) {
    this.modelo = new LatchModel(pluginSettingsFactory);
    this.request = ServletActionContext.getRequest();
    this.i18nResolver = i18nResolver;
    this.jiraAuthenticationContext = ComponentAccessor.getJiraAuthenticationContext();
    this.userManager = userManager;
}
 
开发者ID:ElevenPaths,项目名称:latch-plugin-jira,代码行数:15,代码来源:Admin.java


示例10: Unpair

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 * @param pluginSettingsFactory object to save data
 * @param i18nResolver translate
 */
public Unpair(PluginSettingsFactory pluginSettingsFactory, I18nResolver i18nResolver) {
	this.modelo = new LatchModel(pluginSettingsFactory);
	this.request = ServletActionContext.getRequest();
	this.i18nResolver = i18nResolver;
	this.jiraAuthenticationContext = ComponentAccessor.getJiraAuthenticationContext();
}
 
开发者ID:ElevenPaths,项目名称:latch-plugin-jira,代码行数:12,代码来源:Unpair.java


示例11: Index

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param pluginSettingsFactory object to save data
 */

public Index(PluginSettingsFactory pluginSettingsFactory, I18nResolver i18nResolver) {
    this.request = ServletActionContext.getRequest();
    this.i18nResolver = i18nResolver;
    this.model = new LatchModel(pluginSettingsFactory);
    this.jiraAuthenticationContext = ComponentAccessor.getJiraAuthenticationContext();
}
 
开发者ID:ElevenPaths,项目名称:latch-plugin-jira,代码行数:13,代码来源:Index.java


示例12: Pair

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 *
 * @param pluginSettingsFactory object to save data
 * @param i18nResolver          translate
 */
public Pair(PluginSettingsFactory pluginSettingsFactory, I18nResolver i18nResolver) {
    this.modelo = new LatchModel(pluginSettingsFactory);
    this.request = ServletActionContext.getRequest();
    this.i18nResolver = i18nResolver;
    this.jiraAuthenticationContext = ComponentAccessor.getJiraAuthenticationContext();
}
 
开发者ID:ElevenPaths,项目名称:latch-plugin-jira,代码行数:13,代码来源:Pair.java


示例13: SonarTestStatusMacro

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public SonarTestStatusMacro(/* XhtmlContent xhtmlUtils, */
/* ApplicationLinkService applicationLinkService, */Renderer renderer,
		UserAccessor userAccessor,
		FormatSettingsManager formatSettingsManager,
		LocaleManager localeManager, I18nResolver i18n) {
	super(renderer, userAccessor, formatSettingsManager, localeManager,
			i18n);
}
 
开发者ID:baloise,项目名称:dashboard-plus,代码行数:9,代码来源:SonarTestStatusMacro.java


示例14: JenkinsJobStatusMacro

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public JenkinsJobStatusMacro(/* XhtmlContent xhtmlUtils, */
/* ApplicationLinkService applicationLinkService, */Renderer renderer,
		UserAccessor userAccessor,
		FormatSettingsManager formatSettingsManager,
		LocaleManager localeManager, I18nResolver i18n) {
	super(renderer, userAccessor, formatSettingsManager, localeManager,
			i18n);
}
 
开发者ID:baloise,项目名称:dashboard-plus,代码行数:9,代码来源:JenkinsJobStatusMacro.java


示例15: StaticStatusLightMacro

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public StaticStatusLightMacro(/* XhtmlContent xhtmlUtils, */
/* ApplicationLinkService applicationLinkService, */Renderer renderer,
		UserAccessor userAccessor,
		FormatSettingsManager formatSettingsManager,
		LocaleManager localeManager, I18nResolver i18n) {
	super(renderer, userAccessor, formatSettingsManager, localeManager,
			i18n);
}
 
开发者ID:baloise,项目名称:dashboard-plus,代码行数:9,代码来源:StaticStatusLightMacro.java


示例16: StatusLightBasedMacro

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public StatusLightBasedMacro(Renderer renderer, UserAccessor userAccessor,
		FormatSettingsManager formatSettingsManager,
		LocaleManager localeManager, I18nResolver i18n) {
	super();
	this.renderer = renderer;
	this.userAccessor = userAccessor;
	this.formatSettingsManager = formatSettingsManager;
	this.localeManager = localeManager;
	this.i18n = i18n;
}
 
开发者ID:baloise,项目名称:dashboard-plus,代码行数:11,代码来源:StatusLightBasedMacro.java


示例17: TrackDuckApplicationLinkInstallerImpl

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public TrackDuckApplicationLinkInstallerImpl(EventPublisher eventPublisher,
                                             PluginRetrievalService pluginRetrievalService,
                                             MutatingApplicationLinkService applicationLinkService,
                                             TypeAccessor typeAccessor,
                                             ServiceProviderConsumerStore serviceProviderConsumerStore,
                                             I18nResolver i18nResolver) {
    this.eventPublisher = eventPublisher;
    this.pluginRetrievalService = pluginRetrievalService;
    this.applicationLinkService = applicationLinkService;
    this.typeAccessor = typeAccessor;
    this.serviceProviderConsumerStore = serviceProviderConsumerStore;
    this.i18nResolver = i18nResolver;
}
 
开发者ID:TrackDuck,项目名称:td-jira-plugin,代码行数:14,代码来源:TrackDuckApplicationLinkInstallerImpl.java


示例18: setI18nResolver

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public void setI18nResolver(I18nResolver i18nResolver) {
    this.i18nResolver = i18nResolver;
}
 
开发者ID:wwwlicious,项目名称:wwwlicious.bamboo.xunit,代码行数:4,代码来源:xUnitParserConfigurator.java


示例19: doValidation

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
public ErrorCollection doValidation(I18nResolver i18nResolver, JiraAuthenticationContext authenticationContext, SearchService searchService, OfBizDelegator ofBizDelegator) {
    ErrorCollection errorCollection = new ErrorCollection();

    if (StringUtils.isBlank(filter)) {
        errorCollection.addError(GadgetFieldEnum.FILTER.toString(), i18nResolver.getText(BUNDLE_ERROR_EMPTY_FILTER));
        logger.info("Filter cannot be blank.");
    } else {
        projectOrFilter = ProjectOrFilter.createProjectOrFilter(filter,ofBizDelegator);
        if (!projectOrFilter.isValid()) {
            errorCollection.addError(GadgetFieldEnum.FILTER.toString(), i18nResolver.getText(BUNDLE_ERROR_FILTER_IS_INCORRECT));
            logger.info("Project of filter field is invalid for given field:" + projectOrFilter);
        } else {
            if (projectOrFilter.getQuery() == null) {
                errorCollection.addError(GadgetFieldEnum.FILTER.toString(), i18nResolver.getText(BUNDLE_ERROR_FILTER_IS_INCORRECT));
                logger.info("Cannot get filter for given ProjectOrFilter filed query: " + projectOrFilter.getQuery());
            } else {
                MessageSet messageSet = searchService.validateQuery(authenticationContext.getLoggedInUser(), projectOrFilter.getQuery());
                if (messageSet.hasAnyErrors()) {
                    logger.warn("Query is invalid. Enable info for search errors list");
                    if (logger.isInfoEnabled()) {
                        StringBuilder sb = new StringBuilder();
                        sb.append("Search error messages: \n");
                        for (String msg : messageSet.getErrorMessagesInEnglish()) {
                            sb.append(msg +"\n");
                        }
                        logger.info(sb.toString());
                    }
                    errorCollection.addError(GadgetFieldEnum.FILTER.toString(), i18nResolver.getText(BUNDLE_ERROR_FILTER_IS_INCORRECT));
                }
            }
        }


    }

    if (StringUtils.isBlank(date)) {
        errorCollection.addError(GadgetFieldEnum.DATE.toString(), i18nResolver.getText(BUNDLE_ERROR_EMPTY_DATE));
        logger.info("Date field is blank");
    }

    try {
        dateModel = DateModel.valueOf(date);
    } catch (NullPointerException e) {
        errorCollection.addError(GadgetFieldEnum.DATE.toString(), i18nResolver.getText("risk.management.validation.error.wrong_date"));
        logger.info("Invalid date field: " + date);
    }

    if (StringUtils.isBlank(refreshRate)) {
        errorCollection.addError(GadgetFieldEnum.REFRESH.toString(), i18nResolver.getText("risk.management.validation.error.empty_refresh"));
        logger.info("refresh rate field is blank");
    }

    return errorCollection;
}
 
开发者ID:adamkrol93,项目名称:JRMP,代码行数:55,代码来源:MatrixRequest.java


示例20: SecSignIDAction

import com.atlassian.sal.api.message.I18nResolver; //导入依赖的package包/类
/**
 * Constructor
 */
public SecSignIDAction(ActiveObjects ao, I18nResolver i18nResolver) {
    super();
    this.ao = ao;
    this.i18nResolver = i18nResolver;
}
 
开发者ID:SecSign,项目名称:SecSign-ID-JIRA-Plugin,代码行数:9,代码来源:SecSignIDAction.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java SwitchDrawerItem类代码示例发布时间:2022-05-22
下一篇:
Java DateUtils类代码示例发布时间: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