Class ClientRestService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.ClientRestService
-
- All Implemented Interfaces:
IRestService
@Path("/rest/identitystore/v3") public class ClientRestService extends java.lang.Object implements IRestServiceClientRest
-
-
Constructor Summary
Constructors Constructor Description ClientRestService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsecreateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)Creates a client
The client is created from the providedClientApplicationDto.
javax.ws.rs.core.ResponsegetClient(java.lang.String targetClientCode, java.lang.String headerClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)Get Clientjavax.ws.rs.core.ResponsegetClients(java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)Get all Clientsjavax.ws.rs.core.ResponsegetClientsByAppCode(java.lang.String applicationCode, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)Get Clients by app codejavax.ws.rs.core.ResponseupdateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)Updates a client.
The client is updated from the providedClientApplicationDto.
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.identitystore.v3.web.rs.IRestService
buildJsonResponse
-
-
-
-
Method Detail
-
getClients
@Path("/clients") @GET @Produces("application/json") public javax.ws.rs.core.Response getClients(@HeaderParam("client_code") java.lang.String clientCode, @HeaderParam("author_name") java.lang.String authorName, @HeaderParam("author_type") java.lang.String authorType, @HeaderParam("application_code") @DefaultValue("") java.lang.String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet all Clients- Returns:
- the Clients
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getClientsByAppCode
@Path("/clients/{application_code}") @GET @Produces("application/json") public javax.ws.rs.core.Response getClientsByAppCode(@PathParam("application_code") java.lang.String applicationCode, @HeaderParam("client_code") java.lang.String clientCode, @HeaderParam("author_name") java.lang.String authorName, @HeaderParam("author_type") java.lang.String authorType, @HeaderParam("application_code") @DefaultValue("") java.lang.String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet Clients by app code- Parameters:
applicationCode- application code- Returns:
- the Client
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getClient
@Path("/client/{target_client_code}") @GET @Produces("application/json") public javax.ws.rs.core.Response getClient(@PathParam("target_client_code") java.lang.String targetClientCode, @HeaderParam("client_code") java.lang.String headerClientCode, @HeaderParam("author_name") java.lang.String authorName, @HeaderParam("author_type") java.lang.String authorType, @HeaderParam("application_code") @DefaultValue("") java.lang.String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet Client- Parameters:
targetClientCode- target client code- Returns:
- the Client
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
createClient
@POST @Path("/client") @Consumes("application/json") public javax.ws.rs.core.Response createClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, @HeaderParam("client_code") java.lang.String clientCode, @HeaderParam("author_name") java.lang.String authorName, @HeaderParam("author_type") java.lang.String authorType, @HeaderParam("application_code") @DefaultValue("") java.lang.String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCreates a client
The client is created from the providedClientApplicationDto.
- Parameters:
clientDto- the client to create- Returns:
- http 200 if creation is ok with
ClientChangeResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
updateClient
@PUT @Path("/client/{client_code}") @Consumes("application/json") public javax.ws.rs.core.Response updateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, @PathParam("client_code") java.lang.String clientCode, @HeaderParam("author_name") java.lang.String authorName, @HeaderParam("author_type") java.lang.String authorType, @HeaderParam("application_code") @DefaultValue("") java.lang.String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionUpdates a client.
The client is updated from the providedClientApplicationDto.
- Parameters:
clientDto- the service contract to updateclientCode- the application code in the HTTP header- Returns:
- http 200 if creation is ok with
ClientChangeResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-