fr.cnes.sitools.plugins.applications
Class AbstractApplicationPluginCommonResource

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.common.AbstractPluginResource
                  extended by fr.cnes.sitools.plugins.applications.AbstractApplicationPluginCommonResource
Direct Known Subclasses:
AbstractApplicationPluginResource, ApplicationPluginListingResource

public abstract class AbstractApplicationPluginCommonResource
extends AbstractPluginResource

SVA model resource for SVA application

Author:
m.marseille (AKKA Technologies) (AKKA)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractApplicationPluginCommonResource()
           
 
Method Summary
 java.util.Set<ConstraintViolation> checkValidity(ApplicationPluginModel input)
          Check the validaty of the given SvaModel
 ApplicationPluginModelDTO getApplicationModelDTO(ApplicationPluginModel application)
          Get a ApplicationPluginModelDTO from a ApplicationPluginModel
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified MediaType.
 
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource
checkValidity, configure, fromListToMap
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
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

AbstractApplicationPluginCommonResource

public AbstractApplicationPluginCommonResource()
Method Detail

getRepresentation

public 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 get the representation from
media - : The MediaType asked
Returns:
The Representation of the response with the selected mediaType

checkValidity

public java.util.Set<ConstraintViolation> checkValidity(ApplicationPluginModel input)
Check the validaty of the given SvaModel

Parameters:
input - the SvaModel to validate
Returns:
a set of ConstraintViolation if the validation fail, null otherwise

getApplicationModelDTO

public ApplicationPluginModelDTO getApplicationModelDTO(ApplicationPluginModel application)
Get a ApplicationPluginModelDTO from a ApplicationPluginModel

Parameters:
application - the ApplicationPluginModel
Returns:
a ApplicationPluginModelDTO


Copyright © 2010-2013 CNES. All Rights Reserved.