fr.cnes.sitools.plugins.guiservices.declare
Class AbstractGuiServiceResource

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.plugins.guiservices.declare.AbstractGuiServiceResource
Direct Known Subclasses:
GuiServiceCollectionResource, GuiServiceResource

public abstract class AbstractGuiServiceResource
extends SitoolsResource

Base class for resource of management of GuiService

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractGuiServiceResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 java.lang.String getGuiServiceId()
          Gets the projectModuleId value
 GuiServiceModel getObject(org.restlet.representation.Representation representation)
          Get the object from representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 SitoolsStore<GuiServiceModel> getStore()
          Gets the store value
 org.restlet.representation.Representation retrieveGuiService(org.restlet.representation.Variant variant)
          get all guiServices or the selected guiService
 void setGuiServiceId(java.lang.String projectModuleId)
          Sets the value of projectModuleId
 void setStore(SitoolsStore<GuiServiceModel> 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

AbstractGuiServiceResource

public AbstractGuiServiceResource()
Method Detail

doInit

public final 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 GuiServiceModel getObject(org.restlet.representation.Representation representation)
Get the object from representation

Parameters:
representation - the representation used
Returns:
GuiService

setGuiServiceId

public final void setGuiServiceId(java.lang.String projectModuleId)
Sets the value of projectModuleId

Parameters:
projectModuleId - the projectModuleId to set

getGuiServiceId

public final java.lang.String getGuiServiceId()
Gets the projectModuleId value

Returns:
the projectModuleId

setStore

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

Parameters:
store - the store to set

getStore

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

Returns:
the store

retrieveGuiService

@Get
public org.restlet.representation.Representation retrieveGuiService(org.restlet.representation.Variant variant)
get all guiServices or the selected guiService

Parameters:
variant - client preferred media type
Returns:
Representation


Copyright © 2010-2013 CNES. All Rights Reserved.