fr.cnes.sitools.plugins.resources
Class ResourcePluginResource

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.common.AbstractPluginResource
                  extended by fr.cnes.sitools.plugins.resources.AbstractResourcePluginResource
                      extended by fr.cnes.sitools.plugins.resources.ResourcePluginResource

public final class ResourcePluginResource
extends AbstractResourcePluginResource

Resource handling resource plugins on applications instances

Author:
m.marseille (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ResourcePluginResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteConverterChainedModel(org.restlet.representation.Variant variant)
          Delete Converter
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
          Describe the Delete command
 void describeGet(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          GET method description
 void describePost(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the POST command
 void describePut(org.restlet.ext.wadl.MethodInfo info)
          Describe the Put command
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
           
 SitoolsStore<ResourceModel> getStore()
          Gets the store value
 org.restlet.representation.Representation newResourcePlugin(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create / attach a new resource to an application
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateResourcePlugin(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing Converters
 
Methods inherited from class fr.cnes.sitools.plugins.resources.AbstractResourcePluginResource
checkValidity, getObject, getParentId, getRepresentation, getResourceModelDTO, getResourcePluginId, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource
checkValidity, configure, fromListToMap
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, 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

ResourcePluginResource

public ResourcePluginResource()
Method Detail

doInit

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

Overrides:
doInit in class AbstractResourcePluginResource

sitoolsDescribe

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

Overrides:
sitoolsDescribe in class AbstractResourcePluginResource

newResourcePlugin

@Post
public org.restlet.representation.Representation newResourcePlugin(org.restlet.representation.Representation representation,
                                                                        org.restlet.representation.Variant variant)
Create / attach a new resource to an application

Parameters:
representation - The representation parameter
variant - client preferred media type
Returns:
Representation

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info,
                         java.lang.String path)
Describe the POST command

Parameters:
info - the info sent
path - url attachment of the resource

get

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

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)
GET method description

Parameters:
info - WADL method information
path - url attachment of the resource

updateResourcePlugin

@Put
public org.restlet.representation.Representation updateResourcePlugin(org.restlet.representation.Representation representation,
                                                                          org.restlet.representation.Variant variant)
Update / Validate existing Converters

Parameters:
representation - the representation parameter
variant - client preferred media type
Returns:
Representation

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)
Describe the Put command

Parameters:
info - the info sent

deleteConverterChainedModel

@Delete
public org.restlet.representation.Representation deleteConverterChainedModel(org.restlet.representation.Variant variant)
Delete Converter

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
Describe the Delete command

Parameters:
info - the info sent

getStore

public SitoolsStore<ResourceModel> getStore()
Gets the store value

Returns:
the store


Copyright © 2010-2013 CNES. All Rights Reserved.