本文整理匯總了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;
}