fr.cnes.sitools.plugins.guiservices.implement
Class AbstractGuiServicePluginResource

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.implement.AbstractGuiServicePluginResource
Direct Known Subclasses:
GuiServicePluginCollectionResource, GuiServicePluginNotificationResource, GuiServicePluginResource

public abstract class AbstractGuiServicePluginResource
extends SitoolsResource

Abstract resource for GuiPluginService

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractGuiServicePluginResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
           
 java.lang.String getGuiServicePluginId()
          Gets the guiServicePluginId value
 GuiServicePluginModel getObject(org.restlet.representation.Representation representation)
          Get the object from representation
 java.lang.String getParentId()
          Gets the parentId value
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 SitoolsStore<GuiServicePluginModel> getStore()
          Gets the store value
 void registerObserver(GuiServicePluginModel input)
          Register as observer
 void setGuiServicePluginId(java.lang.String guiServicePluginId)
          Sets the value of guiServicePluginId
 void setParentId(java.lang.String parentId)
          Sets the value of parentId
 void setStore(SitoolsStore<GuiServicePluginModel> store)
          Sets the value of store
 void unregisterObserver(GuiServicePluginModel input)
          Unregister as Observer
 
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

AbstractGuiServicePluginResource

public AbstractGuiServicePluginResource()
Method Detail

doInit

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


get

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

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 GuiServicePluginModel getObject(org.restlet.representation.Representation representation)
                                      throws java.io.IOException
Get the object from representation

Parameters:
representation - the representation used
Returns:
GuiService
Throws:
java.io.IOException - if there is an error while parsing the java representation of the object

registerObserver

public final void registerObserver(GuiServicePluginModel input)
Register as observer

Parameters:
input - The ConverterChainedModel

unregisterObserver

public final void unregisterObserver(GuiServicePluginModel input)
Unregister as Observer

Parameters:
input - ConverterChainedModel Objet

getGuiServicePluginId

public java.lang.String getGuiServicePluginId()
Gets the guiServicePluginId value

Returns:
the guiServicePluginId

setGuiServicePluginId

public void setGuiServicePluginId(java.lang.String guiServicePluginId)
Sets the value of guiServicePluginId

Parameters:
guiServicePluginId - the guiServicePluginId to set

setStore

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

Parameters:
store - the store to set

getStore

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

Returns:
the store

getParentId

public java.lang.String getParentId()
Gets the parentId value

Returns:
the parentId

setParentId

public void setParentId(java.lang.String parentId)
Sets the value of parentId

Parameters:
parentId - the parentId to set


Copyright © 2010-2013 CNES. All Rights Reserved.