@RolesAllowed(value="users") public class TaskRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
TaskRestService(TaskService taskService,
ProjectService projectService,
StatusService statusService,
UserService userService,
org.exoplatform.social.core.space.spi.SpaceService spaceService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addTaskComment(String commentText,
long id) |
javax.ws.rs.core.Response |
addTaskSubComment(String commentText,
long commentId,
long id) |
javax.ws.rs.core.Response |
addTaskToLabel(Label addedLabel,
long id) |
javax.ws.rs.core.Response |
deleteComment(long commentId) |
javax.ws.rs.core.Response |
findUsersToMention(String query) |
javax.ws.rs.core.Response |
getDefaultStatusByProjectId(long id) |
javax.ws.rs.core.Response |
getLabels() |
javax.ws.rs.core.Response |
getLabelsByTaskId(long id) |
javax.ws.rs.core.Response |
getProjects() |
javax.ws.rs.core.Response |
getStatusesByProjectId(long id) |
javax.ws.rs.core.Response |
getTaskComments(long id,
int offset,
int limit) |
javax.ws.rs.core.Response |
getTaskLogs(long id,
int offset,
int limit) |
javax.ws.rs.core.Response |
getTasks(String status,
String query,
int offset,
int limit,
boolean returnSize) |
javax.ws.rs.core.Response |
getUsersByQueryAndProjectName(String query,
String projectName) |
javax.ws.rs.core.Response |
removeTaskFromLabel(long labelId,
long id) |
javax.ws.rs.core.Response |
updateTaskById(long id,
Task updatedTask) |
public TaskRestService(TaskService taskService, ProjectService projectService, StatusService statusService, UserService userService, org.exoplatform.social.core.space.spi.SpaceService spaceService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getTasks(String status, String query, int offset, int limit, boolean returnSize) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response updateTaskById(long id, Task updatedTask) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response getProjects()
@RolesAllowed(value="users") public javax.ws.rs.core.Response getDefaultStatusByProjectId(long id) throws EntityNotFoundException
EntityNotFoundException@RolesAllowed(value="users") public javax.ws.rs.core.Response getStatusesByProjectId(long id) throws EntityNotFoundException
EntityNotFoundException@RolesAllowed(value="users") public javax.ws.rs.core.Response getLabels()
@RolesAllowed(value="users") public javax.ws.rs.core.Response getLabelsByTaskId(long id)
@RolesAllowed(value="users") public javax.ws.rs.core.Response addTaskToLabel(Label addedLabel, long id) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response removeTaskFromLabel(long labelId, long id) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response getTaskLogs(long id, int offset, int limit) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response getTaskComments(long id, int offset, int limit) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response addTaskComment(String commentText, long id) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response addTaskSubComment(String commentText, long commentId, long id) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteComment(long commentId) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response findUsersToMention(String query) throws Exception
Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response getUsersByQueryAndProjectName(String query, String projectName) throws Exception
ExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.