fr.cnes.sitools.dictionary
Class AbstractConceptTemplateResource

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
Direct Known Subclasses:
ConceptTemplateCollectionResource, ConceptTemplateResource, PropertyResource

public abstract class AbstractConceptTemplateResource
extends SitoolsResource

Base resource for concept template management

Author:
c

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractConceptTemplateResource()
           
 
Method Summary
 void configure(com.thoughtworks.xstream.XStream xstream, Response response)
          Configure XStream mapping for xml and json serialization TODO Optimisation possible au lieu de créer à chaque fois une instance de XStream conserver 4 instances d'XStream correspondant aux 4 combinaisons possibles : classe retournée (ConceptTemplate, Property) et type (data / item)
 void doInit()
          Initiate the resource
 java.lang.String getConceptTemplateId()
          Gets the templateId value
 ConceptTemplate getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Decodes a representation to a ConceptTemplate object.
 java.lang.String getPropertyId()
          Gets the propertyId value
 SitoolsStore<ConceptTemplate> getStore()
          Gets the store value
 
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, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConceptTemplateResource

public AbstractConceptTemplateResource()
Method Detail

doInit

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


configure

public void configure(com.thoughtworks.xstream.XStream xstream,
                      Response response)
Configure XStream mapping for xml and json serialization TODO Optimisation possible au lieu de créer à chaque fois une instance de XStream conserver 4 instances d'XStream correspondant aux 4 combinaisons possibles : classe retournée (ConceptTemplate, Property) et type (data / item)

Overrides:
configure in class SitoolsResource
Parameters:
xstream - XStream
response - Response

getObject

public final ConceptTemplate getObject(org.restlet.representation.Representation representation,
                                       org.restlet.representation.Variant variant)
Decodes a representation to a ConceptTemplate object.

Parameters:
representation - Representation
variant - Variant
Returns:
ConceptTemplate

getPropertyId

public final java.lang.String getPropertyId()
Gets the propertyId value

Returns:
the propertyId

getConceptTemplateId

public final java.lang.String getConceptTemplateId()
Gets the templateId value

Returns:
the templateId

getStore

public final SitoolsStore<ConceptTemplate> getStore()
Gets the store value

Returns:
the store


Copyright © 2010-2013 CNES. All Rights Reserved.