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


Java SecurityService类代码示例

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


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

示例1: RepositorySettingsServlet

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public RepositorySettingsServlet(
    ApplicationPropertiesService propertiesService,
    SettingsManager settingsManager,
    PermissionValidationService validationService,
    RepositoryService repositoryService,
    SearchUpdater searchUpdater,
    SecurityService securityService,
    SoyTemplateRenderer soyTemplateRenderer) {
    this.propertiesService = propertiesService;
    this.settingsManager = settingsManager;
    this.validationService = validationService;
    this.repositoryService = repositoryService;
    this.searchUpdater = searchUpdater;
    this.securityService = securityService;
    this.soyTemplateRenderer = soyTemplateRenderer;
}
 
开发者ID:palantir,项目名称:stash-codesearch-plugin,代码行数:17,代码来源:RepositorySettingsServlet.java

示例2: BuildSuccessReportingServlet

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public BuildSuccessReportingServlet(
    ConfigurationPersistenceService configurationPersistenceManager,
    RepositoryService repositoryService,
    BuildStatusService buildStatusService,
    PullRequestService pullRequestService, StashbotUrlBuilder ub,
    JobTemplateManager jtm, SecurityService ss, UserService us, PluginLoggerFactory lf) {
    this.configurationPersistanceManager = configurationPersistenceManager;
    this.repositoryService = repositoryService;
    this.buildStatusService = buildStatusService;
    this.pullRequestService = pullRequestService;
    this.ub = ub;
    this.jtm = jtm;
    this.log = lf.getLoggerForThis(this);
    this.ss = ss;
    this.us = us;
}
 
开发者ID:palantir,项目名称:stashbot,代码行数:17,代码来源:BuildSuccessReportingServlet.java

示例3: JenkinsManager

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

示例4: MockSecurityServiceBuilder

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public MockSecurityServiceBuilder() throws Throwable {
    ss = Mockito.mock(SecurityService.class);
    esc = Mockito.mock(EscalatedSecurityContext.class);

    Answer<Void> justDoIt = new Answer<Void>() {

        @Override
        public Void answer(InvocationOnMock invocation) throws Throwable {
            Object oop = invocation.getArguments()[0];
            @SuppressWarnings("unchecked")
            Operation<Void, Exception> op = (Operation<Void, Exception>) oop;
            op.perform();
            return null;
        }
    };
    Mockito.when(esc.call(Mockito.<Operation<Void, Throwable>> any())).thenAnswer(justDoIt);

    Mockito.when(ss.impersonating(Mockito.any(StashUser.class), Mockito.anyString())).thenReturn(esc);
    Mockito.when(ss.anonymously(Mockito.anyString())).thenReturn(esc);
}
 
开发者ID:palantir,项目名称:stashbot,代码行数:21,代码来源:MockSecurityServiceBuilder.java

示例5: JenkinsJobSchedulerRegister

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public JenkinsJobSchedulerRegister(SchedulerService schedulerService, PullRequestService pullRequestService,UserService userService,SecurityService securityService,JobTrigger jenkinsCiIntergration) { 
      this.schedulerService = schedulerService;
this.pullRequestService = pullRequestService;
this.userService = userService;
this.securityService = securityService;
this.jenkinsCiIntergration = jenkinsCiIntergration; 
  }
 
开发者ID:umbrew,项目名称:stash-pullrequest-jenkins,代码行数:8,代码来源:JenkinsJobSchedulerRegister.java

示例6: ManualTriggerBuildServlet

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public ManualTriggerBuildServlet(JobTrigger jenkinsCiIntergration, PullRequestService pullRequestService, SchedulerService schedulerService, PluginSettingsFactory pluginSettingsFactory,StashAuthenticationContext stashAuthContext,SecurityService securityService,LoginUriProvider loginUriProvider, UserService userService) {
    super(loginUriProvider, stashAuthContext);
    log.debug("invoked constructor");
    this.schedulerService = schedulerService;
    this.pullRequestService = pullRequestService;
    this.settings = pluginSettingsFactory.createGlobalSettings();
    
    schedulerService.registerJobRunner(JenkinsJobScheduler.jobRunnerKey, new JenkinsJobScheduler(pullRequestService,userService,securityService,jenkinsCiIntergration));
    
}
 
开发者ID:umbrew,项目名称:stash-pullrequest-jenkins,代码行数:11,代码来源:ManualTriggerBuildServlet.java

示例7: GlobalSettingsServlet

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public GlobalSettingsServlet(
    ApplicationPropertiesService propertiesService,
    SettingsManager settingsManager,
    PermissionValidationService validationService,
    SearchUpdater searchUpdater,
    SecurityService securityService,
    SoyTemplateRenderer soyTemplateRenderer) {
    this.propertiesService = propertiesService;
    this.settingsManager = settingsManager;
    this.validationService = validationService;
    this.searchUpdater = searchUpdater;
    this.securityService = securityService;
    this.soyTemplateRenderer = soyTemplateRenderer;
}
 
开发者ID:palantir,项目名称:stash-codesearch-plugin,代码行数:15,代码来源:GlobalSettingsServlet.java

示例8: JenkinsJobScheduler

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public JenkinsJobScheduler(PullRequestService pullRequestService, UserService userService,SecurityService securityService, JobTrigger jenkinsCiIntergration) {
	this.pullRequestService = pullRequestService;
	this.userService = userService;
	this.securityService = securityService;
	this.jenkinsCI = jenkinsCiIntergration;
}
 
开发者ID:umbrew,项目名称:stash-pullrequest-jenkins,代码行数:7,代码来源:JenkinsJobScheduler.java

示例9: getSecurityService

import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public SecurityService getSecurityService() {
    return ss;
}
 
开发者ID:palantir,项目名称:stashbot,代码行数:4,代码来源:MockSecurityServiceBuilder.java


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