當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。