fr.cnes.sitools.tasks.exposition
Class TaskCollectionResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.tasks.exposition.AbstractTaskResource
                  extended by fr.cnes.sitools.tasks.exposition.TaskCollectionResource

public class TaskCollectionResource
extends AbstractTaskResource

Handle the list of tasks or only the list for a particular User

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
TaskCollectionResource()
           
 
Method Summary
 org.restlet.representation.Representation cleanTasks(org.restlet.representation.Variant variant)
          Delete all tasks
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePost(org.restlet.ext.wadl.MethodInfo info)
           
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation getTasks(org.restlet.representation.Variant variant)
          Get the list of tasks or the list of tasks for a particular User
 org.restlet.representation.Representation newTaskModel(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create a new DataSet
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.tasks.exposition.AbstractTaskResource
getTaskApplication, getTaskModelFromRepresentation, getUserId
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskCollectionResource

public TaskCollectionResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Overrides:
sitoolsDescribe in class AbstractTaskResource

doInit

public void doInit()
Description copied from class: SitoolsResource
Initiate the resource

Overrides:
doInit in class AbstractTaskResource

cleanTasks

@Delete
public org.restlet.representation.Representation cleanTasks(org.restlet.representation.Variant variant)
Delete all tasks

Parameters:
variant - the variant needed
Returns:
a Response representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)

getTasks

@Get
public org.restlet.representation.Representation getTasks(org.restlet.representation.Variant variant)
Get the list of tasks or the list of tasks for a particular User

Parameters:
variant - the variant needed
Returns:
a response containing the list of Tasks

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)

newTaskModel

@Post
public org.restlet.representation.Representation newTaskModel(org.restlet.representation.Representation representation,
                                                                   org.restlet.representation.Variant variant)
Create a new DataSet

Parameters:
representation - DataSet Representation
variant - Variant user preferred MediaType
Returns:
Representation

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info)


Copyright © 2010-2013 CNES. All Rights Reserved.