fr.cnes.sitools.dictionary
Class AbstractDictionaryResource

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.AbstractDictionaryResource
Direct Known Subclasses:
ConceptResource, DictionaryCollectionResource, DictionaryResource

public abstract class AbstractDictionaryResource
extends SitoolsResource

Base resource for dictionary management

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractDictionaryResource()
           
 
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 (Dictionary, Notion) et type (data / item)
 void doInit()
          Initiate the resource
 java.lang.String getConceptId()
          Gets the conceptId value
 java.lang.String getDictionaryId()
          Gets the dictionaryId value
 java.lang.String getNotionId()
          Gets the notionId value
 Dictionary getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Decodes a representation to a Dictionary object.
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Encode a response into a Representation according to the given media type.
 SitoolsStore<Dictionary> getStore()
          Gets the store value
 
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

AbstractDictionaryResource

public AbstractDictionaryResource()
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 (Dictionary, Notion) et type (data / item)

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

getObject

public final Dictionary getObject(org.restlet.representation.Representation representation,
                                  org.restlet.representation.Variant variant)
                           throws java.io.IOException
Decodes a representation to a Dictionary object.

Parameters:
representation - Representation
variant - Variant
Returns:
Dictionary
Throws:
java.io.IOException - if there is an error while parsing the serialize java object

getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
Encode a response into a Representation according to the given media type.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - Response
media - Response
Returns:
Representation

getNotionId

public final java.lang.String getNotionId()
Gets the notionId value

Returns:
the notionId

getConceptId

public java.lang.String getConceptId()
Gets the conceptId value

Returns:
the conceptId

getDictionaryId

public final java.lang.String getDictionaryId()
Gets the dictionaryId value

Returns:
the dictionaryId

getStore

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

Returns:
the store


Copyright © 2010-2013 CNES. All Rights Reserved.