fr.cnes.sitools.service.storage
Class StorageCollectionResource

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.service.storage.AbstractStorageResource
                  extended by fr.cnes.sitools.service.storage.StorageCollectionResource

public final class StorageCollectionResource
extends AbstractStorageResource

Resource for Storage

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
StorageCollectionResource()
           
 
Method Summary
 org.restlet.representation.Representation addDirectory(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Add a new directory
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePost(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation retrieveDirectories(org.restlet.representation.Variant variant)
          Get the list of directories that has been set up
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.service.storage.AbstractStorageResource
getDirectoryId, getRepresentation, getStorageAdministration, getStorageApplication, getStorageDirectory, getStore, isAlreadyAttached
 
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

StorageCollectionResource

public StorageCollectionResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

addDirectory

@Post
public org.restlet.representation.Representation addDirectory(org.restlet.representation.Representation representation,
                                                                   org.restlet.representation.Variant variant)
Add a new directory

Parameters:
representation - the representation of a StorageDirectory
variant - the variant sent
Returns:
representation of a response

describePost

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

retrieveDirectories

@Get
public org.restlet.representation.Representation retrieveDirectories(org.restlet.representation.Variant variant)
Get the list of directories that has been set up

Parameters:
variant - the variant sent
Returns:
a representation of the list as a response

describeGet

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


Copyright © 2010-2013 CNES. All Rights Reserved.