fr.cnes.sitools.dataset
Class DataSetDictionaryMappingResource

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.dataset.AbstractDataSetResource
                  extended by fr.cnes.sitools.dataset.DataSetDictionaryMappingResource

public class DataSetDictionaryMappingResource
extends AbstractDataSetResource

Resource for managing Dictionary mappings on a DataSet

Author:
m.gond (Akka Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
DataSetDictionaryMappingResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteMapping(org.restlet.representation.Variant variant)
          Delete a mapping
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 void doInit()
          Initiate the resource
 java.lang.String getDictionaryId()
          Gets the dictionaryId value
 org.restlet.representation.Representation putMapping(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Put a mapping to add or modify it on the dataset object
 org.restlet.representation.Representation retrieveMappings(org.restlet.representation.Variant variant)
          Get a Mapping from a given dictionaryId
 void setDictionaryId(java.lang.String dictionaryId)
          Sets the value of dictionaryId
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dataset.AbstractDataSetResource
getDatasetId, getObject, getRepresentation, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, 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

DataSetDictionaryMappingResource

public DataSetDictionaryMappingResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

public void doInit()
Initiate the resource


retrieveMappings

@Get
public org.restlet.representation.Representation retrieveMappings(org.restlet.representation.Variant variant)
Get a Mapping from a given dictionaryId

Parameters:
variant - client preferred media type
Returns:
Representation

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)

putMapping

@Put
public org.restlet.representation.Representation putMapping(org.restlet.representation.Representation representation,
                                                                org.restlet.representation.Variant variant)
Put a mapping to add or modify it on the dataset object

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

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)

deleteMapping

@Delete
public org.restlet.representation.Representation deleteMapping(org.restlet.representation.Variant variant)
Delete a mapping

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)

getDictionaryId

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

Returns:
the dictionaryId

setDictionaryId

public void setDictionaryId(java.lang.String dictionaryId)
Sets the value of dictionaryId

Parameters:
dictionaryId - the dictionaryId to set


Copyright © 2010-2013 CNES. All Rights Reserved.