Class BranchesPopupController
- 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.controllers.BasePopupController
-
- jetbrains.buildServer.controllers.admin.BranchesPopupController
-
- All Implemented Interfaces:
BranchFilterHelperExtension
,ServerExtension
,TeamCityExtension
,PositionAware
,PositionConstraintAware
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.web.context.ServletContextAware
,org.springframework.web.servlet.mvc.Controller
public class BranchesPopupController extends BasePopupController implements BranchFilterHelperExtension, PositionAware
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description BranchesPopupController(ProjectManagerEx projectManager, EditBuildTypeFormFactory buildTypeFormFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fillModel(javax.servlet.http.HttpServletRequest request, org.springframework.web.servlet.ModelAndView mv)
Fill the model with data.PositionConstraint
getConstraint()
Constraint to be respected during objects sorting.String
getDisplayName()
String
getId()
String
getJspPath()
String
getOrderId()
Returns object id that can be referenced by {PositionConstraint
}protected org.springframework.web.servlet.ModelAndView
processRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Performs actual request processing.-
Methods inherited from class jetbrains.buildServer.controllers.BasePopupController
doHandle
-
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
-
-
-
-
Constructor Detail
-
BranchesPopupController
public BranchesPopupController(@NotNull ProjectManagerEx projectManager, @NotNull EditBuildTypeFormFactory buildTypeFormFactory)
-
-
Method Detail
-
processRequest
@Nullable protected org.springframework.web.servlet.ModelAndView processRequest(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
Description copied from class:BasePopupController
Performs actual request processing.- Specified by:
processRequest
in classBasePopupController
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- model and view components
-
fillModel
public boolean fillModel(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull org.springframework.web.servlet.ModelAndView mv)
Description copied from interface:BranchFilterHelperExtension
Fill the model with data. It's better to use some prefix so that names won't intercect between extensions- Specified by:
fillModel
in interfaceBranchFilterHelperExtension
- Returns:
- true if should include extension page in helper, false otherwise
-
getDisplayName
@NotNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceBranchFilterHelperExtension
- Returns:
- The name that will be displayed in the ui
-
getJspPath
@NotNull public String getJspPath()
- Specified by:
getJspPath
in interfaceBranchFilterHelperExtension
-
getId
@NotNull public String getId()
- Specified by:
getId
in interfaceBranchFilterHelperExtension
- Returns:
- unique id of the extension without spaces
-
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAware
Returns object id that can be referenced by {PositionConstraint
}- Specified by:
getOrderId
in interfacePositionAware
- Returns:
- object id
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAware
Constraint to be respected during objects sorting.- Specified by:
getConstraint
in interfacePositionConstraintAware
- Returns:
- position constraint
-
-