org.jboss.seam.rest.example.tasks.resource
Class TaskResource

java.lang.Object
  extended by org.jboss.seam.rest.example.tasks.resource.AbstractEntityResource
      extended by org.jboss.seam.rest.example.tasks.resource.TaskResource

@ValidateRequest(groups=TaskValidationGroup.class)
public class TaskResource
extends AbstractEntityResource

CRUD resource for resources

Author:
Jozef Hartinger

Constructor Summary
TaskResource()
           
 
Method Summary
 void deleteTask(long taskId, UriInfo uriInfo)
           
 Task getTask(long taskId, UriInfo uriInfo)
           
protected  Task loadTask(long taskId, UriInfo uriInfo)
           
 void move(long taskId, String newCategoryName, UriInfo uriInfo)
           
 void updateTask(long taskId, UriInfo uriInfo, JaxbTaskWrapper incommingTask)
           
 
Methods inherited from class org.jboss.seam.rest.example.tasks.resource.AbstractEntityResource
loadCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskResource

public TaskResource()
Method Detail

getTask

@ResponseTemplate(value="/freemarker/task.ftl",
                  produces="application/task+xml",
                  responseName="task")
public Task getTask(long taskId,
                                                              @Context
                                                              UriInfo uriInfo)

move

public void move(long taskId,
                 String newCategoryName,
                 @Context
                 UriInfo uriInfo)

updateTask

public void updateTask(long taskId,
                       @Context
                       UriInfo uriInfo,
                       JaxbTaskWrapper incommingTask)

deleteTask

public void deleteTask(long taskId,
                       @Context
                       UriInfo uriInfo)

loadTask

protected Task loadTask(long taskId,
                        UriInfo uriInfo)


Copyright © 2011 Seam Framework. All Rights Reserved.