public class ManageUsersResource extends AbstractResource
Modifier and Type | Field and Description |
---|---|
private org.apache.logging.log4j.Logger |
LOG
Logger.
|
private String |
suffixProject
Suffix of the project.
|
static String |
USER_NAME_PARAMETER
Parameter for the user name "user".
|
private String |
userName
User name.
|
Constructor and Description |
---|
ManageUsersResource() |
Modifier and Type | Method and Description |
---|---|
void |
addUserToProject(org.restlet.data.Form mediaForm)
Adds user to project
|
private void |
checkInputs(org.restlet.data.Form mediaForm)
Tests if the
USER_NAME_PARAMETER is set. |
void |
deleteProject()
Delete the project
|
protected void |
doInit()
Set-up method that can be overridden in order to initialize the state of
the resource.
|
List<String> |
getUsers()
Get users.
|
addRequestDocToMethod, addRequestDocToMethod, addRequestDocToMethod, addResponseDocToMethod, createQueryParamDoc, createQueryRepresentationDoc, createResponseDoc, createResponseDoc, createResponseDoc, htmlRepresentation, isObjectExist, isObjectNotExist, isValueExist, isValueNotExist, stringRepresentation
canDescribe, createHtmlRepresentation, createWadlRepresentation, describe, describe, describe, describe, describe, describe, describe, describe, describeDelete, describeGet, describeMethod, describeMethod, describeOptions, describeParameters, describePatch, describePost, describePut, getDescription, getName, getParameter, getParameters, getPreferredWadlVariant, getResourcePath, getResourcesBase, getWadlVariants, isAutoDescribing, options, setAutoDescribing, setDescription, setName
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
public static final String USER_NAME_PARAMETER
private volatile org.apache.logging.log4j.Logger LOG
private volatile String suffixProject
private volatile String userName
protected void doInit() throws org.restlet.resource.ResourceException
doInit
in class AbstractResource
org.restlet.resource.ResourceException
- - if a problem happens@Requirement(reqId="DOI_SRV_140", reqName="R\u00e9cup\u00e9ration du nom du projet \u00e0 partir du suffixe projet") @Post public void addUserToProject(org.restlet.data.Form mediaForm)
mediaForm
- form@Requirement(reqId="DOI_SRV_140", reqName="R\u00e9cup\u00e9ration du nom du projet \u00e0 partir du suffixe projet") @Delete public void deleteProject()
private void checkInputs(org.restlet.data.Form mediaForm) throws org.restlet.resource.ResourceException
USER_NAME_PARAMETER
is set.mediaForm
- the parametersorg.restlet.resource.ResourceException
- - if USER_NAME_PARAMETER is not setCopyright © 2017–2020 CNES. All rights reserved.