Class CreateDashboard
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.CreateDashboard
-
- All Implemented Interfaces:
RestCollectionCreateView<ProjectResource,DashboardResource,SetDashboardInput>,RestCollectionView<ProjectResource,DashboardResource,SetDashboardInput>,RestView<DashboardResource>
public class CreateDashboard extends Object implements RestCollectionCreateView<ProjectResource,DashboardResource,SetDashboardInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<DashboardInfo>apply(ProjectResource parent, IdString id, SetDashboardInput input)Process the view operation by creating the resource.
-
-
-
Method Detail
-
apply
public Response<DashboardInfo> apply(ProjectResource parent, IdString id, SetDashboardInput input) throws RestApiException, IOException, PermissionBackendException
Description copied from interface:RestCollectionCreateViewProcess the view operation by creating the resource.- Specified by:
applyin interfaceRestCollectionCreateView<ProjectResource,DashboardResource,SetDashboardInput>- Parameters:
parent- parent resource of the resource that should be createdinput- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
RestApiException- if the resource creation is rejectedIOExceptionPermissionBackendException
-
-