/** * Retrieves and returns the web resource manager instance * * @return web resource manager */ public static WebResourceManager getWebResourceManager() { return getComponent(WebResourceManager.class); }
private synchronized MessageHandlerContext getContext() { if (context == null) { context = new DefaultMessageHandlerContext(ComponentAccessor.getCommentManager(), new Log4jMessageHandlerExecutionMonitor(), ComponentAccessor.getIssueManager(), ComponentAccessor.getAttachmentManager(), ComponentAccessor.getComponent(TextFieldCharacterLengthValidator.class), ComponentAccessor.getPermissionManager(), ComponentAccessor.getApplicationProperties(), ComponentAccessor.getComponent(ApplicationRoleManager.class), ComponentAccessor.getComponent(UserService.class)); } return context; }
public ExtendedSystemInfoUtilsImpl(final I18nHelper i18nHelper) { this(new SystemInfoUtilsImpl(), getComponentOfType(ServiceManager.class), getComponentOfType(PluginAccessor.class), ComponentAccessor.getApplicationProperties(), getComponentOfType(TrustedApplicationService.class), ComponentAccessor.getOfBizDelegator(), i18nHelper, ComponentAccessor.getUserUtil(), getComponentOfType(HashRegistryCache.class), getComponentOfType(LocaleManager.class), getComponentOfType(JiraLicenseService.class), getComponentOfType(BuildUtilsInfo.class), getComponentOfType(UpgradeManager.class), getComponentOfType(IssueIndexManager.class), getComponentOfType(JiraProperties.class), getComponentOfType(ClusterManager.class), getComponentOfType(JiraStartStopAnalyticHelper.class)); }
public MultiBulkMoveBeanImpl(String operationName, IssueManager issueManager) { this.operationName = operationName; this.issueManager = issueManager; this.constantsManager = ComponentAccessor.getConstantsManager(); this.authenticationContext = ComponentAccessor.getJiraAuthenticationContext(); }
public SearchDescriptionEnabledAction(IssueSearcherManager issueSearcherManager, SearchService searchService, final SearchSortUtil searchSortUtil) { this.issueSearcherManager = issueSearcherManager; this.searchService = searchService; this.searchSortUtil = searchSortUtil; this.permissionManager = ComponentAccessor.getPermissionManager(); this.authenticationContext = ComponentAccessor.getJiraAuthenticationContext(); this.favouritesService = ComponentAccessor.getComponentOfType(FavouritesService.class); }
@Override public void init() { this.ofBizDelegator = ComponentAccessor.getOfBizDelegator(); this.constantsManager = ComponentAccessor.getConstantsManager(); this.versionManager = ComponentAccessor.getVersionManager(); this.componentManager = ComponentAccessor.getProjectComponentManager(); this.levelManager = ComponentAccessor.getIssueSecurityLevelManager(); this.screenManager = ComponentAccessor.getFieldScreenManager(); this.screenSchemeManager = ComponentAccessor.getComponent(FieldScreenSchemeManager.class); }
/** * Used in jira-mail-plugin tests. * * @deprecated Use {@link DefaultMessageHandlerContext#DefaultMessageHandlerContext(CommentManager, MessageHandlerExecutionMonitor, IssueManager, AttachmentManager, TextFieldCharacterLengthValidator, PermissionManager, ApplicationProperties, ApplicationRoleManager, UserService)} */ @Deprecated public DefaultMessageHandlerContext(final CommentManager commentManager, final MessageHandlerExecutionMonitor monitor, final IssueManager issueManager, final AttachmentManager attachmentManager) { this(commentManager, monitor, issueManager, attachmentManager, ComponentAccessor.getComponent(TextFieldCharacterLengthValidator.class), ComponentAccessor.getPermissionManager(), ComponentAccessor.getApplicationProperties(), ComponentAccessor.getComponent(ApplicationRoleManager.class), ComponentAccessor.getComponent(UserService.class)); }
/** * Set the indexing language for the selected (or default) locale. */ public void setIndexingLanguageForDefaultServerLocale() { // Always get a fresh copy of the application properties because during the short life of some actions // (eg. SetupDatabase) the Pico container can be swapped out from underneath us. final ApplicationProperties applicationProperties = ComponentAccessor.getApplicationProperties(); final IndexLanguageToLocaleMapper languageToLocaleMapper = ComponentAccessor.getComponent(IndexLanguageToLocaleMapper.class); applicationProperties.setString(APKeys.JIRA_I18N_LANGUAGE_INPUT, languageToLocaleMapper.getLanguageForLocale(getLocale().toString())); }
private void handleImportErrors(DataImportService.ImportResult lastResult) { ImportResultHandler importResultHandler = ComponentAccessor.getComponent(ImportResultHandler.class); importResultHandler.handleErrorResult(lastResult, ComponentAccessor.getI18nHelperFactory().getInstance(ComponentAccessor.getApplicationProperties().getDefaultLocale()), new SimpleErrorCollection()); }
/** * Constructor. * @deprecated Use {@link #GenericTextCFType(com.atlassian.jira.issue.customfields.persistence.CustomFieldValuePersister, com.atlassian.jira.issue.customfields.manager.GenericConfigManager, com.atlassian.jira.issue.fields.TextFieldCharacterLengthValidator, com.atlassian.jira.security.JiraAuthenticationContext)} instead. Since v6.4.1 */ @Deprecated protected GenericTextCFType(CustomFieldValuePersister customFieldValuePersister, GenericConfigManager genericConfigManager) { this(customFieldValuePersister, genericConfigManager, ComponentAccessor.getComponent(TextFieldCharacterLengthValidator.class), ComponentAccessor.getJiraAuthenticationContext()); }
private void refreshSearchersAndIndexers() { // @todo These must be statically called since otherwise a cyclic dependency will occur. There really needs to be a CacheManager that handles all these dependent caches ComponentAccessor.getComponent(FieldConfigSchemeManager.class).init(); // Resets the issue search manager final IssueSearcherManager issueSearcherManager = ComponentAccessor.getComponentOfType(IssueSearcherManager.class); issueSearcherManager.refresh(); final FieldIndexerManager fieldIndexerManager = ComponentAccessor.getComponentOfType(FieldIndexerManager.class); fieldIndexerManager.refresh(); }
UserKeyService getUserKeyService() { return ComponentAccessor.getComponentOfType(UserKeyService.class); } }
@VisibleForTesting ApplicationProperties getApplicationProperties() { return ComponentAccessor.getApplicationProperties(); }
/** * @deprecated Use {@link #ChangeHistory(org.ofbiz.core.entity.GenericValue, com.atlassian.jira.issue.IssueManager, com.atlassian.jira.user.util.UserManager)} ()} instead. Since v6.0. */ public ChangeHistory(GenericValue changeHistoryGV, IssueManager issueManager) { this(changeHistoryGV, issueManager, ComponentAccessor.getUserManager()); }
/** * This constructor is for the benefit of plugins which may be expecting there to be a no-arg constructor for this * and sub classes. */ protected AbstractProjectTabPanel() { this.authenticationContext = ComponentAccessor.getJiraAuthenticationContext(); }
public static void dispatchEvent(int type, ApplicationUser user, Map<String,Object> params) { final MapBuilder<String, Object> mapBuilder = MapBuilder.newBuilder(params); mapBuilder.add("baseurl", ComponentAccessor.getApplicationProperties().getString(APKeys.JIRA_BASEURL)); UserEvent event = new UserEvent(mapBuilder.toMap(), user, type); ComponentAccessor.getComponentOfType(EventPublisher.class).publish(event); } }
private FieldManager getFieldManager() { if (fieldManager == null) { fieldManager = ComponentAccessor.getFieldManager(); } return fieldManager; }
public ConstantsManager get() { return ComponentAccessor.getConstantsManager(); } });
public SearchContextImpl() { constantsManager = ComponentAccessor.getConstantsManager(); projectManager = ComponentAccessor.getProjectManager(); }
@Deprecated public FieldVisibilityManagerImpl(final FieldManager fieldManager, final ProjectManager projectManager) { this(fieldManager, projectManager, ComponentAccessor.getConstantsManager(), ComponentAccessor.getFieldLayoutManager(), ComponentAccessor.getSubTaskManager()); }