fr.cnes.sitools.dictionary
Class ConceptTemplateCollectionResource

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.dictionary.AbstractConceptTemplateResource
                  extended by fr.cnes.sitools.dictionary.ConceptTemplateCollectionResource

public class ConceptTemplateCollectionResource
extends AbstractConceptTemplateResource

Resource for concept template collection

Author:
jp.boignard (AKKA technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ConceptTemplateCollectionResource()
           
 
Method Summary
 org.restlet.representation.Representation newTemplate(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create a new template
 org.restlet.representation.Representation retrieveTemplate(org.restlet.representation.Variant variant)
          get all template
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dictionary.AbstractConceptTemplateResource
configure, doInit, getConceptTemplateId, getObject, getPropertyId, getStore
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, 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

ConceptTemplateCollectionResource

public ConceptTemplateCollectionResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

newTemplate

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

Parameters:
representation - input
variant - client preferred media type
Returns:
Representation

retrieveTemplate

@Get
public org.restlet.representation.Representation retrieveTemplate(org.restlet.representation.Variant variant)
get all template

Parameters:
variant - client preferred media type
Returns:
Representation


Copyright © 2010-2013 CNES. All Rights Reserved.