fr.cnes.sitools.order
Class AbstractOrderResource

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.order.AbstractOrderResource
Direct Known Subclasses:
OrderActionResource, OrderCollectionResource, OrderConfigurationResource, OrderResource, UserOrderResource

public abstract class AbstractOrderResource
extends SitoolsResource

Abstract order resource

Author:
m.marseille (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractOrderResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 java.lang.String getActionId()
          Get the action identifier for resource treatments
 Event getEvent(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the event using representation and variant
 Order getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the order using representation and variant
 java.lang.String getOrderId()
          Get the order identifier for resource treatments
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified mediaType.
 SitoolsStore<Order> getStore()
          Get the store attached to the application
 java.lang.String getUserId()
          Get the order identifier for resource treatments
 void setUserId(java.lang.String uid)
          Set the order identifier for resource treatments
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOrderResource

public AbstractOrderResource()
Method Detail

doInit

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


getRepresentation

public final org.restlet.representation.Representation getRepresentation(Response response,
                                                                         org.restlet.data.MediaType media)
Gets representation according to the specified mediaType.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - the response to treat
media - the media to deal with
Returns:
Representation

getObject

public final Order getObject(org.restlet.representation.Representation representation,
                             org.restlet.representation.Variant variant)
Get the order using representation and variant

Parameters:
representation - the representation to use
variant - the variant to use
Returns:
the corresponding order

getEvent

public final Event getEvent(org.restlet.representation.Representation representation,
                            org.restlet.representation.Variant variant)
Get the event using representation and variant

Parameters:
representation - the representation to use
variant - the variant to use
Returns:
the corresponding event

getStore

public final SitoolsStore<Order> getStore()
Get the store attached to the application

Returns:
the order store

getOrderId

public final java.lang.String getOrderId()
Get the order identifier for resource treatments

Returns:
the order identifier

getUserId

public final java.lang.String getUserId()
Get the order identifier for resource treatments

Returns:
the user identifier

setUserId

public final void setUserId(java.lang.String uid)
Set the order identifier for resource treatments

Parameters:
uid - the user identifier to set

getActionId

public final java.lang.String getActionId()
Get the action identifier for resource treatments

Returns:
the action identifier


Copyright © 2010-2013 CNES. All Rights Reserved.