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