fr.cnes.sitools.role
Class AbstractRoleResource

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.role.AbstractRoleResource
Direct Known Subclasses:
RoleCollectionResource, RoleGroupsResource, RoleNotifyGroupResource, RoleNotifyUserResource, RoleResource, RoleUsersResource

public abstract class AbstractRoleResource
extends SitoolsResource

Base class for role resource management

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractRoleResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 Role getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the Role from a representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets a representation according to the requested media
 RoleApplication getRoleApplication()
          Gets the application value
 java.lang.String getRoleId()
          Get the identifier of the role
 SitoolsStore<Role> getStore()
          Get the store associated to the role application
 
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

AbstractRoleResource

public AbstractRoleResource()
Method Detail

doInit

public 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)
Gets a representation according to the requested media

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - Response
media - requested MediaType
Returns:
ObjectRepresentation or XStreamRepresentation

getObject

public final Role getObject(org.restlet.representation.Representation representation,
                            org.restlet.representation.Variant variant)
Get the Role from a representation

Parameters:
representation - the representation to use
variant - the variant used
Returns:
a role corresponding to the representation

getRoleId

public final java.lang.String getRoleId()
Get the identifier of the role

Returns:
the role identifier

getStore

public final SitoolsStore<Role> getStore()
Get the store associated to the role application

Returns:
the store associated

getRoleApplication

public final RoleApplication getRoleApplication()
Gets the application value

Returns:
the application


Copyright © 2010-2013 CNES. All Rights Reserved.