本文整理汇总了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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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;
}
示例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;
}
示例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;
}