Class CleanupController
- 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.BaseFormXmlController
-
- jetbrains.buildServer.controllers.admin.cleanup.CleanupController
-
- 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 CleanupController extends BaseFormXmlController
Controller for main cleanup settings: is periodical cleanup enabled, start time etc.
For old cleanup settings seeBaseRulesController
and for the new keep rules seeKeepRulesController
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLEANUP_PAGE_ACTION
static String
START_CLEANUP
static String
STOP_CLEANUP
static String
STORE_SETTINGS
-
Fields inherited from class jetbrains.buildServer.controllers.BaseController
myServer
-
-
Constructor Summary
Constructors Constructor Description CleanupController(MainConfigManager mainConfigManager, ServerCleanupManager serverCleanupManager, AuthorizationInterceptor authInterceptor, ManualCleanupRunner manualCleanupRunner, PagePlaces pagePlaces, CleanupLockInterceptor cleanupLockInterceptor, CleanupHistory cleanupHistory, AuditLogProvider auditLogProvider, AuditLogFactory auditLogFactory, MaintenanceLock maintenanceLock)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.servlet.ModelAndView
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Implement this method to process GET requests.protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.jdom.Element xmlResponse)
Implement this method to process POST requests.static String
getCleanupPoliciesUrl(javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class jetbrains.buildServer.controllers.BaseFormXmlController
addMessage, bindFromRequest, doHandle, forgetFormBean, forgetFormBean, getOrCreateFormBean, getOrCreateFormBean, isInitPageRequest, selfRedirectOnInit, writeErrors, writeRedirect
-
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
-
STORE_SETTINGS
@NonNls public static final String STORE_SETTINGS
- See Also:
- Constant Field Values
-
START_CLEANUP
@NonNls public static final String START_CLEANUP
- See Also:
- Constant Field Values
-
STOP_CLEANUP
@NonNls public static final String STOP_CLEANUP
- See Also:
- Constant Field Values
-
CLEANUP_PAGE_ACTION
@NonNls public static final String CLEANUP_PAGE_ACTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CleanupController
public CleanupController(@NotNull MainConfigManager mainConfigManager, @NotNull ServerCleanupManager serverCleanupManager, @NotNull AuthorizationInterceptor authInterceptor, @NotNull ManualCleanupRunner manualCleanupRunner, @NotNull PagePlaces pagePlaces, @NotNull CleanupLockInterceptor cleanupLockInterceptor, @NotNull CleanupHistory cleanupHistory, @NotNull AuditLogProvider auditLogProvider, @NotNull AuditLogFactory auditLogFactory, @NotNull MaintenanceLock maintenanceLock)
-
-
Method Detail
-
doGet
protected org.springframework.web.servlet.ModelAndView doGet(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response)
Description copied from class:BaseFormXmlController
Implement this method to process GET requests. Usually on GET request a form bean is created and a page is shown.- Specified by:
doGet
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP response- Returns:
- model and view components
-
doPost
protected void doPost(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response, @NotNull org.jdom.Element xmlResponse)
Description copied from class:BaseFormXmlController
Implement this method to process POST requests. Usually POST requests are changing state of the form bean and underlying model. To output errors (if request validation failed)ActionErrors
can be used. To add messages (if request processing was successful) useBaseFormXmlController.addMessage(javax.servlet.http.HttpServletRequest, String, String, String...)
method.- Specified by:
doPost
in classBaseFormXmlController
- Parameters:
request
- HTTP requestresponse
- HTTP responsexmlResponse
- XML response for AJAX requests
-
getCleanupPoliciesUrl
public static String getCleanupPoliciesUrl(javax.servlet.http.HttpServletRequest request)
-
-