Class SpaceShowProjectsController
- 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.space.SpaceOAuthPopupControllerBase
-
- jetbrains.buildServer.serverSide.oauth.space.SpaceShowProjectsController
-
- 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 SpaceShowProjectsController extends SpaceOAuthPopupControllerBase
-
-
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.space.SpaceOAuthPopupControllerBase
mySpaceClientFactory, mySpaceService
-
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 SpaceShowProjectsController(WebControllerManager controllerManager, OAuthConnectionsManager oauthConnectionsManager, ProjectManager projectManager, OAuthTokensStorage OAuthTokensStorage, AdminPermissionsUtil adminPermissionsUtil, WebLoginModel webLoginModel, SSLTrustStoreProvider sslTrustStoreProvider, SpaceClientFactory spaceClientFactory, SpaceService spaceService)
-
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 void
fillFallbackModel(Map<String,Object> model, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
protected String
getScope(OAuthConnectionDescriptor opb, TokenIntent ignored)
protected TokenIntent
getTokenIntent()
protected org.springframework.web.servlet.ModelAndView
newModelAndView(boolean pageMode)
protected org.springframework.web.servlet.ModelAndView
postProcessAfterToken(javax.servlet.http.HttpServletRequest request, SProject project, OAuthConnectionDescriptor connection, org.springframework.web.servlet.ModelAndView modelAndView, OAuthToken token)
Allows implementations to post process the model onceOAuthPopupControllerBase.doWithToken(jetbrains.buildServer.serverSide.oauth.OAuthToken, jetbrains.buildServer.serverSide.oauth.OAuthConnectionDescriptor, org.springframework.web.servlet.ModelAndView, java.lang.String)
is done.-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.space.SpaceOAuthPopupControllerBase
findExistingToken, getAccessTokenControllerPath, getFallbackModelForPending, handleSpaceRequestException, handleUnexpecedException, redirectToAccessTokenController, withError
-
Methods inherited from class jetbrains.buildServer.serverSide.oauth.OAuthPopupControllerBase
buildCallbackUrl, buildNewTokenRequestParams, checkRepositoryAccess, determineAccessibleEntities, determineProjectScope, determineTokenIntent, determineTokenIntentType, doHandle, findMatchingToken, findNewlyIssuedToken, finish, getCurrentProject, getScope, getShowMode, handleTokenObtained, isReuseWindow, loadAndUseTokenIfPossible, noExplicitProjectScopeRequested, prepareContext, prepareToAcquireToken, 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
-
SpaceShowProjectsController
public SpaceShowProjectsController(@NotNull WebControllerManager controllerManager, @NotNull OAuthConnectionsManager oauthConnectionsManager, @NotNull ProjectManager projectManager, @NotNull OAuthTokensStorage OAuthTokensStorage, @NotNull AdminPermissionsUtil adminPermissionsUtil, @NotNull WebLoginModel webLoginModel, @NotNull SSLTrustStoreProvider sslTrustStoreProvider, @NotNull SpaceClientFactory spaceClientFactory, @NotNull SpaceService spaceService)
-
-
Method Detail
-
getTokenIntent
protected TokenIntent getTokenIntent()
- Overrides:
getTokenIntent
in classSpaceOAuthPopupControllerBase
-
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 ignored)
- Overrides:
getScope
in classOAuthPopupControllerBase
-
doWithToken
@NotNull protected org.springframework.web.servlet.ModelAndView doWithToken(@NotNull OAuthToken curOAuthToken, @NotNull OAuthConnectionDescriptor opb, @NotNull org.springframework.web.servlet.ModelAndView modelAndView, @Nullable String vcsType)
Description copied from class:OAuthPopupControllerBase
Do something with the token that we acquired, e.g. list repositories.- Overrides:
doWithToken
in classSpaceOAuthPopupControllerBase
- Parameters:
curOAuthToken
- tokenopb
- connection describermodelAndView
- model and viewvcsType
- VCS type
-
postProcessAfterToken
@NotNull protected org.springframework.web.servlet.ModelAndView postProcessAfterToken(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull SProject project, @NotNull OAuthConnectionDescriptor connection, @NotNull org.springframework.web.servlet.ModelAndView modelAndView, @NotNull OAuthToken token)
Description copied from class:OAuthPopupControllerBase
Allows implementations to post process the model onceOAuthPopupControllerBase.doWithToken(jetbrains.buildServer.serverSide.oauth.OAuthToken, jetbrains.buildServer.serverSide.oauth.OAuthConnectionDescriptor, org.springframework.web.servlet.ModelAndView, java.lang.String)
is done.- Overrides:
postProcessAfterToken
in classOAuthPopupControllerBase
- Parameters:
request
- the http requestproject
- the current projectconnection
- the current connectionmodelAndView
- the model and view- Returns:
- some model and view
-
fillFallbackModel
protected void fillFallbackModel(@NotNull Map<String,Object> model, OAuthConnectionDescriptor connection, OAuthToken curOAuthToken)
- Overrides:
fillFallbackModel
in classSpaceOAuthPopupControllerBase
-
-