Package com.google.gerrit.server.config
Class FlushCache
- java.lang.Object
-
- com.google.gerrit.server.config.FlushCache
-
- All Implemented Interfaces:
RestModifyView<CacheResource,FlushCache.Input>
,RestView<CacheResource>
public class FlushCache extends Object implements RestModifyView<CacheResource,FlushCache.Input>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlushCache.Input
-
Field Summary
Fields Modifier and Type Field Description static String
WEB_SESSIONS
-
Constructor Summary
Constructors Constructor Description FlushCache(PermissionBackend permissionBackend, com.google.inject.Provider<CurrentUser> self)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<String>
apply(CacheResource rsrc, FlushCache.Input input)
Process the view operation by altering the resource.
-
-
-
Field Detail
-
WEB_SESSIONS
public static final String WEB_SESSIONS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FlushCache
@Inject public FlushCache(PermissionBackend permissionBackend, com.google.inject.Provider<CurrentUser> self)
-
-
Method Detail
-
apply
public Response<String> apply(CacheResource rsrc, FlushCache.Input input) throws AuthException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<CacheResource,FlushCache.Input>
- Parameters:
rsrc
- resource to modify.input
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
- the client is not permitted to access this view.PermissionBackendException
-
-