public class ListTasks extends java.lang.Object implements RestReadView<ConfigResource>
Modifier and Type | Class and Description |
---|---|
static class |
ListTasks.TaskInfo |
Constructor and Description |
---|
ListTasks(PermissionBackend permissionBackend,
WorkQueue workQueue,
com.google.inject.Provider<CurrentUser> self,
ProjectCache projectCache) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ListTasks.TaskInfo> |
apply(ConfigResource resource)
Process the view operation by reading from the resource.
|
@Inject public ListTasks(PermissionBackend permissionBackend, WorkQueue workQueue, com.google.inject.Provider<CurrentUser> self, ProjectCache projectCache)
public java.util.List<ListTasks.TaskInfo> apply(ConfigResource resource) throws AuthException, PermissionBackendException
RestReadView
apply
in interface RestReadView<ConfigResource>
resource
- resource to read.BinaryResult
to avoid automatic conversion
to JSON.AuthException
- the client is not permitted to access this view.PermissionBackendException