org.jboss.seam.rest.examples.tasks.resource
Class TaskResource
java.lang.Object
org.jboss.seam.rest.examples.tasks.resource.AbstractEntityResource
org.jboss.seam.rest.examples.tasks.resource.TaskResource
@ValidateRequest(groups=TaskValidationGroup.class)
public class TaskResource
- extends AbstractEntityResource
CRUD resource for resources
- Author:
- Jozef Hartinger
|
Method Summary |
void |
deleteTask(long taskId,
javax.ws.rs.core.UriInfo uriInfo)
|
Task |
getTask(long taskId,
javax.ws.rs.core.UriInfo uriInfo)
|
protected Task |
loadTask(long taskId,
javax.ws.rs.core.UriInfo uriInfo)
|
void |
move(long taskId,
String newCategoryName,
javax.ws.rs.core.UriInfo uriInfo)
|
void |
updateTask(long taskId,
javax.ws.rs.core.UriInfo uriInfo,
JaxbTaskWrapper incommingTask)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskResource
public TaskResource()
getTask
@ResponseTemplate(value="/freemarker/task.ftl",
produces="application/task+xml",
responseName="task")
public Task getTask(long taskId,
@Context
javax.ws.rs.core.UriInfo uriInfo)
move
public void move(long taskId,
String newCategoryName,
@Context
javax.ws.rs.core.UriInfo uriInfo)
updateTask
public void updateTask(long taskId,
@Context
javax.ws.rs.core.UriInfo uriInfo,
JaxbTaskWrapper incommingTask)
deleteTask
public void deleteTask(long taskId,
@Context
javax.ws.rs.core.UriInfo uriInfo)
loadTask
protected Task loadTask(long taskId,
javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2011 Seam Framework. All Rights Reserved.