fr.cnes.sitools.security
Class UsersAndGroupsResource

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.security.UsersAndGroupsResource
Direct Known Subclasses:
GroupResource, GroupsResource, UserResource, UsersResource

public abstract class UsersAndGroupsResource
extends SitoolsResource

Resource for managing users and groups

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
UsersAndGroupsResource()
          Constructor
 
Method Summary
 boolean checkPropertiesName(java.util.List<Property> listProp)
          Check if property name are duplicated
 void doInit()
          Initiate the resource
 java.lang.String getGroupName()
          Get the group name indicated in the API
 Group getGroupObject(org.restlet.representation.Representation representation)
          Gets DataSet object from Representation
 java.util.List<org.restlet.data.MediaType> getMediaTypes()
          Get the list of media types
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified media type.
 UsersAndGroupsStore getStore()
          Get the store associated to the application
 java.lang.String getUserId()
          Get the user identifier indicated in the API
 UsersAndGroupsAdministration getUsersAndGroupsAdministration()
          Get the application attached to the resource
 
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

UsersAndGroupsResource

public UsersAndGroupsResource()
Constructor

Method Detail

getMediaTypes

public java.util.List<org.restlet.data.MediaType> getMediaTypes()
Get the list of media types

Returns:
a lit of media types

doInit

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


getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
Gets representation according to the specified media type.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - the response to use
media - the media type
Returns:
Representation the final representation of the response

getGroupObject

public final Group getGroupObject(org.restlet.representation.Representation representation)
                           throws java.io.IOException
Gets DataSet object from Representation

Parameters:
representation - of a DataSet
Returns:
DataSet
Throws:
java.io.IOException - if there is an error while deserializing Java Object

getGroupName

public final java.lang.String getGroupName()
Get the group name indicated in the API

Returns:
the group name

getUserId

public final java.lang.String getUserId()
Get the user identifier indicated in the API

Returns:
the user

getStore

public final UsersAndGroupsStore getStore()
Get the store associated to the application

Returns:
the store associated

getUsersAndGroupsAdministration

public final UsersAndGroupsAdministration getUsersAndGroupsAdministration()
Get the application attached to the resource

Returns:
the application

checkPropertiesName

public boolean checkPropertiesName(java.util.List<Property> listProp)
Check if property name are duplicated

Parameters:
listProp - user properties list to check
Returns:
boolean


Copyright © 2010-2013 CNES. All Rights Reserved.