当前位置: 首页>>代码示例>>Java>>正文


Java UserManager类代码示例

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


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

示例1: JenkinsManager

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public JenkinsManager(RepositoryService repositoryService,
    ConfigurationPersistenceService cpm, JobTemplateManager jtm, JenkinsJobXmlFormatter xmlFormatter,
    JenkinsClientManager jenkisnClientManager, StashbotUrlBuilder sub, PluginLoggerFactory lf, SecurityService ss,
    UserService us, UserManager um) {
    this.repositoryService = repositoryService;
    this.cpm = cpm;
    this.jtm = jtm;
    this.xmlFormatter = xmlFormatter;
    this.jenkinsClientManager = jenkisnClientManager;
    this.sub = sub;
    this.lf = lf;
    this.log = lf.getLoggerForThis(this);
    this.ss = ss;
    this.us = us;
    this.um = um;
    this.es = Executors.newCachedThreadPool();
}
 
开发者ID:palantir,项目名称:stashbot,代码行数:18,代码来源:JenkinsManager.java

示例2: AdminMetricsSecurityTokenServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public AdminMetricsSecurityTokenServlet(
        SecureTokenManager secureTokenManager,
        UserManager userManager,
        SoyTemplateRenderer soyTemplateRenderer,
        LoginUriProvider loginUriProvider) {
    this.secureTokenManager = secureTokenManager;
    this.userManager = userManager;
    this.soyTemplateRenderer = soyTemplateRenderer;
    this.loginUriProvider = loginUriProvider;
}
 
开发者ID:AndreyVMarkelov,项目名称:prom-bitbucket-exporter,代码行数:11,代码来源:AdminMetricsSecurityTokenServlet.java

示例3: HubBambooServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public HubBambooServlet(final UserManager userManager, final LoginUriProvider loginUriProvider,
        final TemplateRenderer renderer, final PluginSettingsFactory pluginSettingsFactory) {
    this.userManager = userManager;
    this.loginUriProvider = loginUriProvider;
    this.renderer = renderer;
    this.pluginSettingsFactory = pluginSettingsFactory;

}
 
开发者ID:blackducksoftware,项目名称:hub-bamboo,代码行数:9,代码来源:HubBambooServlet.java

示例4: HubConfigController

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public HubConfigController(final UserManager userManager, final PluginSettingsFactory pluginSettingsFactory,
        final TransactionTemplate transactionTemplate, final PluginAccessor pluginAccessor) {
    this.userManager = userManager;
    this.pluginSettingsFactory = pluginSettingsFactory;
    this.transactionTemplate = transactionTemplate;
    this.pluginAccessor = pluginAccessor;
}
 
开发者ID:blackducksoftware,项目名称:hub-bamboo,代码行数:8,代码来源:HubConfigController.java

示例5: MySkillsUserServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
@Inject
public MySkillsUserServlet(UserManager userManager, LoginUriProvider loginUriProvider, TemplateRenderer templateRenderer) {

	this.userManager = userManager;
	this.loginUriProvider = loginUriProvider;
	this.templateRenderer = templateRenderer;
}
 
开发者ID:pmxa,项目名称:plugin,代码行数:8,代码来源:MySkillsUserServlet.java

示例6: CVUserServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
@Inject
public CVUserServlet(UserManager userManager, LoginUriProvider loginUriProvider, TemplateRenderer templateRenderer, IssueService issueService, ProjectService projectService, SearchService searchService,
		com.atlassian.jira.user.util.UserManager jiraUserManager) {
	this.userManager = userManager;
	this.loginUriProvider = loginUriProvider;
	this.templateRenderer = templateRenderer;
	this.issueService = issueService;
	this.projectService = projectService;
	this.searchService = searchService;
	this.renderer = templateRenderer;
	this.jiraUserManager = jiraUserManager;
}
 
开发者ID:pmxa,项目名称:plugin,代码行数:13,代码来源:CVUserServlet.java

示例7: HubJiraServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public HubJiraServlet(final UserManager userManager, final LoginUriProvider loginUriProvider,
        final TemplateRenderer renderer, final PluginSettingsFactory pluginSettingsFactory) {
    this.userManager = userManager;
    this.loginUriProvider = loginUriProvider;
    this.renderer = renderer;
    this.pluginSettingsFactory = pluginSettingsFactory;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:8,代码来源:HubJiraServlet.java

示例8: HubJiraConfigController

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public HubJiraConfigController(final UserManager userManager, final PluginSettingsFactory pluginSettingsFactory, final TransactionTemplate transactionTemplate, final ProjectManager projectManager, final HubMonitor hubMonitor,
        final GroupPickerSearchService groupPickerSearchService, final FieldManager fieldManager) {
    this.userManager = userManager;
    this.pluginSettingsFactory = pluginSettingsFactory;
    this.transactionTemplate = transactionTemplate;
    this.projectManager = projectManager;
    this.hubMonitor = hubMonitor;
    this.groupPickerSearchService = groupPickerSearchService;
    this.fieldManager = fieldManager;

    i18nProperties = new Properties();
    populateI18nProperties();
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:14,代码来源:HubJiraConfigController.java

示例9: ConfigServlet

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public ConfigServlet(UserManager userManager, UserUtils userUtils, RepositoryService repoService,
                     ProjectService projectService, TemplateRenderer renderer, PermissionService permissionService,
                     LoginUriProvider loginUriProvider) {
  this.userManager = userManager;
  this.userUtils = userUtils;
  this.repoService = repoService;
  this.projectService = projectService;
  this.renderer = renderer;
  this.permissionService = permissionService;
  this.loginUriProvider = loginUriProvider;
}
 
开发者ID:monitorjbl,项目名称:pr-harmony,代码行数:12,代码来源:ConfigServlet.java

示例10: SecSignIDAuthenticator

import com.atlassian.sal.api.user.UserManager; //导入依赖的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

示例11: Admin

import com.atlassian.sal.api.user.UserManager; //导入依赖的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

示例12: isAdmin

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
/**
 * check if the current user is the admin
 *
 * @param jiraAuthenticationContext get current user
 * @param userManager               check if user is admin
 * @return if the user is admin or not
 */

public static boolean isAdmin(JiraAuthenticationContext jiraAuthenticationContext, UserManager userManager) {
    ApplicationUser user = jiraAuthenticationContext.getLoggedInUser();
    if (user != null) {
        String key = user.getKey();
        UserKey userKey = new UserKey(key);
        return userManager.isSystemAdmin(userKey);
    } else {
        return false;
    }
}
 
开发者ID:ElevenPaths,项目名称:latch-plugin-jira,代码行数:19,代码来源:Utilities.java

示例13: AdminConfigResource

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public AdminConfigResource(UserManager userManager, AuthenticationContext stashAuthenticationContext,
        PluginSettingsService pluginSettingsService) {
    super();
    this.userManager = userManager;
    this.stashAuthenticationContext = stashAuthenticationContext;
    this.pluginSettingsService = pluginSettingsService;
}
 
开发者ID:libertymutual,项目名称:ssh-key-enforcer-stash,代码行数:8,代码来源:AdminConfigResource.java

示例14:

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public AdminServlet // {{{
(
	UserManager userManager,
	LoginUriProvider loginUriProvider,
	TemplateRenderer renderer
)
{
	this.userManager = userManager;
	this.loginUriProvider = loginUriProvider;
	this.renderer = renderer;
}
 
开发者ID:jmaurice,项目名称:jira-irc-plugin,代码行数:12,代码来源:AdminServlet.java

示例15:

import com.atlassian.sal.api.user.UserManager; //导入依赖的package包/类
public ProjectServlet // {{{
(
	UserManager userManager,
	LoginUriProvider loginUriProvider,
	TemplateRenderer renderer,
	JiraAuthenticationContext authenticationContext,
	ApplicationProperties applicationProperties
)
{
	this.userManager = userManager;
	this.loginUriProvider = loginUriProvider;
	this.renderer = renderer;
	this.authenticationContext = authenticationContext;
	this.applicationProperties = applicationProperties;
}
 
开发者ID:jmaurice,项目名称:jira-irc-plugin,代码行数:16,代码来源:ProjectServlet.java


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