Class PostWatchedProjects
- java.lang.Object
-
- com.google.gerrit.server.restapi.account.PostWatchedProjects
-
- All Implemented Interfaces:
RestModifyView<AccountResource,List<ProjectWatchInfo>>
,RestView<AccountResource>
public class PostWatchedProjects extends Object implements RestModifyView<AccountResource,List<ProjectWatchInfo>>
-
-
Constructor Summary
Constructors Constructor Description PostWatchedProjects(com.google.inject.Provider<IdentifiedUser> self, PermissionBackend permissionBackend, GetWatchedProjects getWatchedProjects, ProjectsCollection projectsCollection, com.google.inject.Provider<AccountsUpdate> accountsUpdateProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProjectWatchInfo>
apply(AccountResource rsrc, List<ProjectWatchInfo> input)
Process the view operation by altering the resource.
-
-
-
Constructor Detail
-
PostWatchedProjects
@Inject public PostWatchedProjects(com.google.inject.Provider<IdentifiedUser> self, PermissionBackend permissionBackend, GetWatchedProjects getWatchedProjects, ProjectsCollection projectsCollection, com.google.inject.Provider<AccountsUpdate> accountsUpdateProvider)
-
-
Method Detail
-
apply
public List<ProjectWatchInfo> apply(AccountResource rsrc, List<ProjectWatchInfo> input) throws RestApiException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<AccountResource,List<ProjectWatchInfo>>
- 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.BadRequestException
- the request was incorrectly specified and cannot be handled by this view.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.RestApiException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-