fr.cnes.sitools.service.storage
Class StorageResource

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.StorageResource

public final class StorageResource
extends AbstractStorageResource

Storage resource

Author:
m.marseille (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
StorageResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteDirectory(org.restlet.representation.Variant variant)
          Delete a directory
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation retrieveDirectory(org.restlet.representation.Variant variant)
          Get a directory that has been set up
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateDirectory(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update a single directory
 
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
 
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

StorageResource

public StorageResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

retrieveDirectory

@Get
public org.restlet.representation.Representation retrieveDirectory(org.restlet.representation.Variant variant)
Get a directory 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)

updateDirectory

@Put
public org.restlet.representation.Representation updateDirectory(org.restlet.representation.Representation representation,
                                                                     org.restlet.representation.Variant variant)
Update a single directory

Parameters:
representation - the representation of the updated directory
variant - the variant sent by the request
Returns:
a representation of the updated directory as a response

describePut

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

deleteDirectory

@Delete
public org.restlet.representation.Representation deleteDirectory(org.restlet.representation.Variant variant)
Delete a directory

Parameters:
variant - the variant sent
Returns:
a response indicating that delete was successful

describeDelete

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


Copyright © 2010-2013 CNES. All Rights Reserved.