Class ShowRepositoriesController
- java.lang.Object
-
- org.springframework.context.support.ApplicationObjectSupport
-
- org.springframework.web.context.support.WebApplicationObjectSupport
-
- org.springframework.web.servlet.support.WebContentGenerator
-
- org.springframework.web.servlet.mvc.AbstractController
-
- jetbrains.buildServer.controllers.BaseController
-
- jetbrains.buildServer.serverSide.oauth.OAuthPopupControllerBase
-
- jetbrains.buildServer.serverSide.oauth.github.ShowRepositoriesController
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
public class ShowRepositoriesController extends OAuthPopupControllerBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jetbrains.buildServer.serverSide.oauth.OAuthPopupControllerBase
OAuthPopupControllerBase.HandlerContext
-
-
Field Summary
Fields Modifier and Type Field Description static String
PATH
-
Fields inherited from class jetbrains.buildServer.serverSide.oauth.OAuthPopupControllerBase
myAdminPermissionsUtil, myOauthConnectionsManager, myOAuthTokensStorage, myPath, mySslTrustStoreProvider
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description ShowRepositoriesController(WebControllerManager controllerManager, OAuthConnectionsManager oauthConnectionsManager, ProjectManager projectManager, OAuthTokensStorage OAuthTokensStorage, AdminPermissionsUtil adminPermissionsUtil, WebLoginModel webLoginModel, SSLTrustStoreProvider sslTrustStoreProvider, GitHubRepositoriesService gitHubRepositoriesService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
doWithToken(OAuthToken curOAuthToken, OAuthConnectionDescriptor opb, org.springframework.web.servlet.ModelAndView modelAndView, String vcsType)
Do something with the token that we acquired, e.g.protected String
getAccessTokenControllerPath()
protected String
getScope(OAuthConnectionDescriptor opb, TokenIntent tokenIntent)
protected org.springframework.web.servlet.ModelAndView
newModelAndView(boolean pageMode)
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.OAuthPopupControllerBase
buildCallbackUrl, buildNewTokenRequestParams, checkRepositoryAccess, determineAccessibleEntities, determineProjectScope, determineTokenIntent, determineTokenIntentType, doHandle, findExistingToken, findMatchingToken, findNewlyIssuedToken, finish, getCurrentProject, getScope, getShowMode, handleTokenObtained, isReuseWindow, loadAndUseTokenIfPossible, noExplicitProjectScopeRequested, postProcessAfterToken, prepareContext, prepareToAcquireToken, redirectToAccessTokenController, rememberIssueTokenParameters, startAuthCodeFlowIfNecessary, validateVcsTypeParameter
-
Methods inherited from class jetbrains.buildServer.controllers.BaseController
getOrCreateMessages, handleRequest, handleRequestInternal, isGet, isPost, redirectTo, setExceptionResolvers, simpleView
-
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
isSynchronizeOnSession, setSynchronizeOnSession
-
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
applyCacheControl, applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, checkRequest, getAllowHeader, getCacheControl, getCacheSeconds, getSupportedMethods, getVaryByRequestHeaders, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, prepareResponse, preventCaching, setAlwaysMustRevalidate, setCacheControl, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader, setVaryByRequestHeaders
-
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
-
-
-
-
Field Detail
-
PATH
public static final String PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShowRepositoriesController
public ShowRepositoriesController(@NotNull WebControllerManager controllerManager, @NotNull OAuthConnectionsManager oauthConnectionsManager, @NotNull ProjectManager projectManager, @NotNull OAuthTokensStorage OAuthTokensStorage, @NotNull AdminPermissionsUtil adminPermissionsUtil, @NotNull WebLoginModel webLoginModel, @NotNull SSLTrustStoreProvider sslTrustStoreProvider, @NotNull GitHubRepositoriesService gitHubRepositoriesService)
-
-
Method Detail
-
newModelAndView
@NotNull protected org.springframework.web.servlet.ModelAndView newModelAndView(boolean pageMode)
- Specified by:
newModelAndView
in classOAuthPopupControllerBase
-
getScope
@Nullable protected String getScope(@NotNull OAuthConnectionDescriptor opb, @NotNull TokenIntent tokenIntent)
- Overrides:
getScope
in classOAuthPopupControllerBase
-
getAccessTokenControllerPath
@NotNull protected String getAccessTokenControllerPath()
- Specified by:
getAccessTokenControllerPath
in classOAuthPopupControllerBase
-
doWithToken
@NotNull protected org.springframework.web.servlet.ModelAndView doWithToken(@NotNull OAuthToken curOAuthToken, @NotNull OAuthConnectionDescriptor opb, @NotNull org.springframework.web.servlet.ModelAndView modelAndView, String vcsType) throws Exception
Description copied from class:OAuthPopupControllerBase
Do something with the token that we acquired, e.g. list repositories.- Specified by:
doWithToken
in classOAuthPopupControllerBase
- Parameters:
curOAuthToken
- tokenopb
- connection describermodelAndView
- model and viewvcsType
- VCS type- Throws:
Exception
-
-