fr.cnes.sitools.tasks.exposition
Class TaskResource

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.TaskResource

public class TaskResource
extends AbstractTaskResource

Resource to manage single Task

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
TaskResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteTask(org.restlet.representation.Variant variant)
          Delete a Task
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET method.
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Get a Task, return it with the specified variant
 org.restlet.representation.Representation put(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Modify a task, it can only be set to finish or modify the whole task
 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

TaskResource

public TaskResource()
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

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Get a Task, return it with the specified variant

Parameters:
variant - the Variant needed
Returns:
a Representation representing the Task with the specified Variant

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the GET method.

Parameters:
info - the WADL method information

put

@Put
public org.restlet.representation.Representation put(org.restlet.representation.Representation representation,
                                                         org.restlet.representation.Variant variant)
Modify a task, it can only be set to finish or modify the whole task

Parameters:
representation - The input Task
variant - the Variant needed
Returns:
a Representation representing the modified Task with the specified Variant

describePut

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

deleteTask

@Delete
public org.restlet.representation.Representation deleteTask(org.restlet.representation.Variant variant)
Delete a Task

Parameters:
variant - the Variant needed for the response
Returns:
A response telling whether to Task has beed deleted or not

describeDelete

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


Copyright © 2010-2013 CNES. All Rights Reserved.