fr.cnes.sitools.feeds
Class FeedsCollectionResource

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.feeds.AbstractFeedsResource
                  extended by fr.cnes.sitools.feeds.FeedsCollectionResource

public final class FeedsCollectionResource
extends AbstractFeedsResource

Class Resource for managing Project Collection (GET, POST)

Author:
m.gond (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
FeedsCollectionResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePost(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation newFeed(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create a new feed
 org.restlet.representation.Representation retrieveFeeds(org.restlet.representation.Variant variant)
          get all projects
 org.restlet.representation.Representation setVisibleFeeds(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Handle PUT method on feed collection for setting feeds visibility.
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.feeds.AbstractFeedsResource
doInit, getDataId, getFeedCollectionModel, getFeedsApplication, getFeedsId, getObject, getRepresentation, getRepresentation, getStore, registerObserver, sortEntries, unregisterObserver, validateFeed
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
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

FeedsCollectionResource

public FeedsCollectionResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

newFeed

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

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

describePost

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

retrieveFeeds

@Get
public org.restlet.representation.Representation retrieveFeeds(org.restlet.representation.Variant variant)
get all projects

Parameters:
variant - client preferred media type
Returns:
Representation

describeGet

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

setVisibleFeeds

@Put
public org.restlet.representation.Representation setVisibleFeeds(org.restlet.representation.Representation representation,
                                                                     org.restlet.representation.Variant variant)
Handle PUT method on feed collection for setting feeds visibility.

Parameters:
representation - Representation
variant - Variant
Returns:
Representation

describePut

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


Copyright © 2010-2013 CNES. All Rights Reserved.