本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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));
}
示例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;
}
示例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;
}
示例9: getSecurityService
import com.atlassian.stash.user.SecurityService; //导入依赖的package包/类
public SecurityService getSecurityService() {
return ss;
}