fr.cnes.sitools.collections
Class AbstractCollectionsResource

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.collections.AbstractCollectionsResource
Direct Known Subclasses:
CollectionsCollectionResource, CollectionsResource, CommonConceptsResource, PropertyListResource

public abstract class AbstractCollectionsResource
extends SitoolsResource

Base class for resource of management of collections

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractCollectionsResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 java.lang.String getCollectionId()
          Gets the collectionId value
 DataSet getDataset(java.lang.String id)
          Get DataSet object from its id
 Collection getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the object collection representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 SitoolsStore<Collection> getStore()
          Gets the store value
 void setCollectionId(java.lang.String collectionId)
          Sets the value of collectionId
 void setStore(SitoolsStore<Collection> store)
          Sets the value of store
 
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, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCollectionsResource

public AbstractCollectionsResource()
Method Detail

doInit

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


getRepresentation

public final org.restlet.representation.Representation getRepresentation(Response response,
                                                                         org.restlet.data.MediaType media)
Response to Representation

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - the server response
media - the media used
Returns:
Representation

getObject

public final Collection getObject(org.restlet.representation.Representation representation,
                                  org.restlet.representation.Variant variant)
Get the object collection representation

Parameters:
representation - the representation used
variant - the variant used
Returns:
Collection

setCollectionId

public final void setCollectionId(java.lang.String collectionId)
Sets the value of collectionId

Parameters:
collectionId - the collectionId to set

getCollectionId

public final java.lang.String getCollectionId()
Gets the collectionId value

Returns:
the collectionId

setStore

public final void setStore(SitoolsStore<Collection> store)
Sets the value of store

Parameters:
store - the store to set

getStore

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

Returns:
the store

getDataset

public DataSet getDataset(java.lang.String id)
Get DataSet object from its id

Parameters:
id - the id of the DataSet
Returns:
a DataSet object


Copyright © 2010-2013 CNES. All Rights Reserved.