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


Java JiraAuthenticationContext类代码示例

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


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

示例1: ScriptManagerImpl

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public ScriptManagerImpl(
        GroupManager groupManager,
        ProjectRoleManager projectRoleManager,
        WatcherManager watcherManager,
        UserManager userManager,
        CustomFieldManager customFieldManager,
        AttachmentManager attachmentManager,
        JiraAuthenticationContext jiraAuthenticationContext) {
    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);
}
 
开发者ID:AndreyVMarkelov,项目名称:jira-groovioli,代码行数:19,代码来源:ScriptManagerImpl.java

示例2: DefaultSmartcommitsService

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
@Autowired
public DefaultSmartcommitsService(@ComponentImport IssueManager issueManager,
        @Qualifier ("smartcommitsTransitionsHandler") TransitionHandler transitionHandler,
        @Qualifier ("smartcommitsCommentHandler") CommentHandler commentHandler,
        @Qualifier ("smartcommitsWorklogHandler") WorkLogHandler workLogHandler,
        @ComponentImport JiraAuthenticationContext jiraAuthenticationContext,
        @ComponentImport CrowdService crowdService)
{
    this.crowdService = checkNotNull(crowdService);

    NO_CACHE = new CacheControl();
    NO_CACHE.setNoCache(true);

    this.issueManager = checkNotNull(issueManager);
    this.transitionHandler = transitionHandler;
    this.commentHandler = commentHandler;
    this.workLogHandler = workLogHandler;
    this.jiraAuthenticationContext = checkNotNull(jiraAuthenticationContext);
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:20,代码来源:DefaultSmartcommitsService.java

示例3: DvcsStreamsActivityProvider

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的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

示例4: getProjectsForUser

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
@GET
@Path("/user")
@Produces({ MediaType.APPLICATION_JSON })
public Response getProjectsForUser() {
	JiraAuthenticationContext jiraAuthenticationContext = ComponentAccessor.getJiraAuthenticationContext();
	if (jiraAuthenticationContext.isLoggedInUser()) {
		Map<Long, JIRAProject> userProjects = Maps.newHashMap();
		ProjectManager projectManager = ComponentAccessor.getProjectManager();

		for (Hazards hazard : hazardService.getUserHazards(jiraAuthenticationContext.getUser())) {
			if (userProjects.get(hazard.getProjectID()) == null) {
				Project project = projectManager.getProjectObj(hazard.getProjectID());
				userProjects.put(hazard.getProjectID(), JIRAProject.create(project));
			}
		}

		return Response.ok(Lists.newArrayList(userProjects.values())).build();
	} else {
		return ResponseHelper.notLoggedIn();
	}
}
 
开发者ID:FraunhoferCESE,项目名称:HazardTrackingSystem,代码行数:22,代码来源:MissionRestService.java

示例5: getIssueUtilsBean

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
/**
 * Return a IssueUtilsBean which is a utility class from Atlassian to
 * determine available workflow actions for a given user
 * 
 * @param u
 *            The given user
 * @return An IssueUtilsBean instance
 */
private IssueUtilsBean getIssueUtilsBean(User u) {
	final ComponentManager cm = ComponentManager.getInstance();
	final IssueManager im = cm.getIssueManager();
	final WorkflowManager wfm = cm.getWorkflowManager();
	// final PluginAccessor pa = cm.getPluginAccessor();
	final JiraAuthenticationContext jac = cm.getJiraAuthenticationContext();
	final IssueWorkflowManager iwfm = new IssueWorkflowManagerImpl(im, wfm, jac);
	//jac.setUser(u);
	jac.setLoggedInUser(u);

	//IssueUtilsBean iub = new IssueUtilsBean(im, wfm, jac);
	IssueUtilsBean iub = new IssueUtilsBean(wfm, jac, iwfm);

	return iub;
}
 
开发者ID:bcopy,项目名称:JMH,代码行数:24,代码来源:AdvancedCreateOrCommentHandler.java

示例6: MetricListener

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public MetricListener(
        EventPublisher eventPublisher,
        IssueManager issueManager,
        EventTypeManager eventTypeManager,
        JiraAuthenticationContext jiraAuthenticationContext,
        MetricCollector metricCollector) {
    this.eventPublisher = eventPublisher;
    this.issueManager = issueManager;
    this.eventTypeManager = eventTypeManager;
    this.jiraAuthenticationContext = jiraAuthenticationContext;
    this.metricCollector = metricCollector;
}
 
开发者ID:AndreyVMarkelov,项目名称:jira-prometheus-exporter,代码行数:13,代码来源:MetricListener.java

示例7: UsersPossessSkill

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public UsersPossessSkill(CustomFieldValuePersister customFieldValuePersister,
		GenericConfigManager genericConfigManager, MultiUserConverter multiUserConverter,
		ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext,
		UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, JiraBaseUrls jiraBaseUrls,
		UserBeanFactory userBeanFactory) {
	super(customFieldValuePersister, genericConfigManager, multiUserConverter, applicationProperties, authenticationContext,
			searchService, fieldVisibilityManager, jiraBaseUrls, userBeanFactory);
	// TODO Auto-generated constructor stub
}
 
开发者ID:pmxa,项目名称:plugin,代码行数:10,代码来源:UsersPossessSkill.java

示例8: UsersHaveToImproveSkill

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public UsersHaveToImproveSkill(CustomFieldValuePersister customFieldValuePersister,
		GenericConfigManager genericConfigManager, MultiUserConverter multiUserConverter,
		ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext,
		UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, JiraBaseUrls jiraBaseUrls,
		UserBeanFactory userBeanFactory) {
	super(customFieldValuePersister, genericConfigManager, multiUserConverter, applicationProperties, authenticationContext,
			searchService, fieldVisibilityManager, jiraBaseUrls, userBeanFactory);
	// TODO Auto-generated constructor stub
}
 
开发者ID:pmxa,项目名称:plugin,代码行数:10,代码来源:UsersHaveToImproveSkill.java

示例9: UsersHaveToObtainSkill

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public UsersHaveToObtainSkill(CustomFieldValuePersister customFieldValuePersister,
		GenericConfigManager genericConfigManager, MultiUserConverter multiUserConverter,
		ApplicationProperties applicationProperties, JiraAuthenticationContext authenticationContext,
		UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, JiraBaseUrls jiraBaseUrls,
		UserBeanFactory userBeanFactory) {
	super(customFieldValuePersister, genericConfigManager, multiUserConverter, applicationProperties, authenticationContext,
			searchService, fieldVisibilityManager, jiraBaseUrls, userBeanFactory);
	// TODO Auto-generated constructor stub
}
 
开发者ID:pmxa,项目名称:plugin,代码行数:10,代码来源:UsersHaveToObtainSkill.java

示例10: IssueAndProjectKeyManagerImpl

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
@Autowired
@SuppressWarnings("SpringJavaAutowiringInspection")
public IssueAndProjectKeyManagerImpl(@ComponentImport final IssueManager issueManager,
        @ComponentImport final ChangeHistoryManager changeHistoryManager,
        @ComponentImport final ProjectManager projectManager,
        @ComponentImport final PermissionManager permissionManager,
        @ComponentImport final JiraAuthenticationContext authenticationContext)
{
    this.issueManager = checkNotNull(issueManager);
    this.changeHistoryManager = checkNotNull(changeHistoryManager);
    this.projectManager = checkNotNull(projectManager);
    this.permissionManager = checkNotNull(permissionManager);
    this.authenticationContext = checkNotNull(authenticationContext);
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:15,代码来源:IssueAndProjectKeyManagerImpl.java

示例11: TransitionHandler

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
@Autowired
@SuppressWarnings("SpringJavaAutowiringInspection")
public TransitionHandler(@ComponentImport IssueService issueService,
        @ComponentImport WorkflowManager workflowManager,
        @ComponentImport JiraAuthenticationContext jiraAuthenticationContext)
{
    this.issueService = checkNotNull(issueService);
    this.workflowManager = checkNotNull(workflowManager);
    this.jiraAuthenticationContext = checkNotNull(jiraAuthenticationContext);
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:11,代码来源:TransitionHandler.java

示例12: DevSummaryChangedEventResource

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public DevSummaryChangedEventResource(@ComponentImport final FeatureManager featureManager,
        final PermissionManager permissionManager, final JiraAuthenticationContext authenticationContext,
        final DevSummaryChangedEventServiceImpl devSummaryChangedEventService)
{
    this.featureManager = checkNotNull(featureManager);
    this.permissionManager = checkNotNull(permissionManager);
    this.authenticationContext = checkNotNull(authenticationContext);
    this.devSummaryChangedEventService = checkNotNull(devSummaryChangedEventService);
}
 
开发者ID:edgehosting,项目名称:jira-dvcs-connector,代码行数:10,代码来源:DevSummaryChangedEventResource.java

示例13: FeatureIssueInGroupActionSupport

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public FeatureIssueInGroupActionSupport(
    JiraAuthenticationContext authenticationContext,
    ApplicationLinkService applicationLinkService,
    HostApplication hostApplication,
    IssueManager issueManager) {
  this.authenticationContext = authenticationContext;
  this.issueManager = issueManager;
  jamClient = new JamClient(applicationLinkService, hostApplication, issueManager);
  groupIdToNameHt = new Hashtable<String, Group>();
  gson = new Gson();
}
 
开发者ID:SAP,项目名称:SAPJamWorkPatternJIRAIntegration,代码行数:12,代码来源:FeatureIssueInGroupActionSupport.java

示例14: CreateIssueGroupActionSupport

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的package包/类
public CreateIssueGroupActionSupport(JiraAuthenticationContext authenticationContext, ApplicationLinkService applicationLinkService,
        HostApplication hostApplication,
        IssueManager issueManager) {
  this.authenticationContext = authenticationContext;
  this.issueManager = issueManager;
  this.jamClient = new JamClient(applicationLinkService, hostApplication, issueManager);
}
 
开发者ID:SAP,项目名称:SAPJamWorkPatternJIRAIntegration,代码行数:8,代码来源:CreateIssueGroupActionSupport.java

示例15: SecSignIDAuthenticator

import com.atlassian.jira.security.JiraAuthenticationContext; //导入依赖的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


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