com.atlassian.jira.user.util.UserManager Java Examples
The following examples show how to use
com.atlassian.jira.user.util.UserManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MetricCollectorImpl.java From jira-prometheus-exporter with BSD 2-Clause "Simplified" License | 6 votes |
public MetricCollectorImpl( IssueManager issueManager, ClusterManager clusterManager, UserManager userManager, LicenseCountService licenseCountService, ApplicationManager jiraApplicationManager, ScheduledMetricEvaluator scheduledMetricEvaluator, InstrumentRegistry instrumentRegistry, MailQueue mailQueue, ApplicationRoleManager applicationRoleManager) { this.issueManager = issueManager; this.jiraUserSessionTracker = JiraUserSessionTracker.getInstance(); this.clusterManager = clusterManager; this.userManager = userManager; this.licenseCountService = licenseCountService; this.jiraApplicationManager = jiraApplicationManager; this.scheduledMetricEvaluator = scheduledMetricEvaluator; this.registry = CollectorRegistry.defaultRegistry; this.instrumentRegistry = instrumentRegistry; this.mailQueue = mailQueue; this.applicationRoleManager = applicationRoleManager; }
Example #2
Source File: SessionService.java From planning-poker-plugin with MIT License | 5 votes |
public SessionService(PluginSettingsFactory pluginSettingsFactory, IssueService issueService, JiraAuthenticationContext authContext, UserManager userManager, VoteService voteService) { this.pluginSettings = pluginSettingsFactory.createGlobalSettings(); this.issueService = issueService; this.authContext = authContext; this.userManager = userManager; this.voteService = voteService; }
Example #3
Source File: VoteService.java From planning-poker-plugin with MIT License | 5 votes |
public VoteService(PluginSettingsFactory pluginSettingsFactory, IssueService issueService, JiraAuthenticationContext authContext, UserManager userManager) { this.pluginSettings = pluginSettingsFactory.createGlobalSettings(); this.issueService = issueService; this.authContext = authContext; this.userManager = userManager; }
Example #4
Source File: ScriptTemplateManagerImpl.java From jira-groovioli with BSD 2-Clause "Simplified" License | 4 votes |
public ScriptTemplateManagerImpl( GroupManager groupManager, ProjectRoleManager projectRoleManager, WatcherManager watcherManager, UserManager userManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, JiraAuthenticationContext jiraAuthenticationContext, IssueLinkManager issueLinkManager, CommentManager commentManager, IssueFactory issueFactory, IssueManager issueManager, SubTaskManager subTaskManager, ConstantsManager constantsManager, ProjectManager projectManager, LabelManager labelManager, ChangeHistoryManager changeHistoryManager, VoteManager voteManager, WorklogManager worklogManager, VersionManager versionManager, OptionsManager optionsManager, ApplicationProperties applicationProperties) { baseVariables = new HashMap<>(); baseVariables.put("groupManager", groupManager); baseVariables.put("watcherManager", watcherManager); baseVariables.put("userManager", userManager); baseVariables.put("customFieldManager", customFieldManager); baseVariables.put("workflowTransitionUtil", JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class)); baseVariables.put("attachmentManager", attachmentManager); baseVariables.put("jiraAuthenticationContext", jiraAuthenticationContext); baseVariables.put("projectRoleManager", projectRoleManager); baseVariables.put("issueLinkManager", issueLinkManager); baseVariables.put("commentManager", commentManager); baseVariables.put("issueFactory", issueFactory); baseVariables.put("issueManager", issueManager); baseVariables.put("subTaskManager", subTaskManager); baseVariables.put("constantsManager", constantsManager); baseVariables.put("projectManager", projectManager); baseVariables.put("labelManager", labelManager); baseVariables.put("changeHistoryManager", changeHistoryManager); baseVariables.put("voteManager", voteManager); baseVariables.put("worklogManager", worklogManager); baseVariables.put("versionManager", versionManager); baseVariables.put("optionsManager", optionsManager); baseVariables.put("applicationProperties", applicationProperties); }
Example #5
Source File: ScriptManagerImpl.java From jira-groovioli with BSD 2-Clause "Simplified" License | 4 votes |
public ScriptManagerImpl( GroupManager groupManager, ProjectRoleManager projectRoleManager, WatcherManager watcherManager, UserManager userManager, CustomFieldManager customFieldManager, AttachmentManager attachmentManager, JiraAuthenticationContext jiraAuthenticationContext, IssueLinkManager issueLinkManager, CommentManager commentManager, IssueFactory issueFactory, IssueManager issueManager, SubTaskManager subTaskManager, ConstantsManager constantsManager, ProjectManager projectManager, LabelManager labelManager, ChangeHistoryManager changeHistoryManager, VoteManager voteManager, WorklogManager worklogManager, VersionManager versionManager, OptionsManager optionsManager, ApplicationProperties applicationProperties) { CompilerConfiguration config = new CompilerConfiguration(); config.setScriptBaseClass(GroovioliBase.class.getName()); shell = new GroovyShell(this.getClass().getClassLoader(), config); baseVariables = new HashMap<>(); baseVariables.put("groupManager", groupManager); baseVariables.put("watcherManager", watcherManager); baseVariables.put("userManager", userManager); baseVariables.put("customFieldManager", customFieldManager); baseVariables.put("workflowTransitionUtil", JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class)); baseVariables.put("attachmentManager", attachmentManager); baseVariables.put("jiraAuthenticationContext", jiraAuthenticationContext); baseVariables.put("projectRoleManager", projectRoleManager); baseVariables.put("issueLinkManager", issueLinkManager); baseVariables.put("commentManager", commentManager); baseVariables.put("issueFactory", issueFactory); baseVariables.put("issueManager", issueManager); baseVariables.put("subTaskManager", subTaskManager); baseVariables.put("constantsManager", constantsManager); baseVariables.put("projectManager", projectManager); baseVariables.put("labelManager", labelManager); baseVariables.put("changeHistoryManager", changeHistoryManager); baseVariables.put("voteManager", voteManager); baseVariables.put("worklogManager", worklogManager); baseVariables.put("versionManager", versionManager); baseVariables.put("optionsManager", optionsManager); baseVariables.put("applicationProperties", applicationProperties); // DSL baseVariables.put("fieldOptionDsl", new FieldOptionDsl()); baseVariables.put("projectDsl", new ProjectDsl()); baseVariables.put("constantDsl", new ConstantDsl()); baseVariables.put("issueDsl", new IssueDsl()); scriptCache = CacheBuilder.newBuilder() .maximumSize(10_000) .expireAfterWrite(7, TimeUnit.DAYS) .build(new CacheLoader<String, Script>() { @Override public Script load(String scriptSource) throws CompilationFailedException { return shell.parse(scriptSource); } }); }