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 Object
implements IRestService
ClientRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsecreateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, String clientCode, String authorName, String authorType, String strHeaderAppCode) Creates a client
The client is created from the providedClientApplicationDto.
javax.ws.rs.core.ResponsegetClient(String targetClientCode, String headerClientCode, String authorName, String authorType, String strHeaderAppCode) Get Clientjavax.ws.rs.core.ResponsegetClients(String clientCode, String authorName, String authorType, String strHeaderAppCode) Get all Clientsjavax.ws.rs.core.ResponsegetClientsByAppCode(String applicationCode, String clientCode, String authorName, String authorType, String strHeaderAppCode) Get Clients by app codejavax.ws.rs.core.ResponseupdateClient(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.application.ClientApplicationDto clientDto, String clientCode, String authorName, String authorType, 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, waitMethods inherited from interface fr.paris.lutece.plugins.identitystore.v3.web.rs.IRestService
buildJsonResponse
-
Constructor Details
-
ClientRestService
public ClientRestService()
-
-
Method Details
-
getClients
@Path("/clients") @GET @Produces("application/json") public javax.ws.rs.core.Response getClients(@HeaderParam("client_code") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Get 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") String applicationCode, @HeaderParam("client_code") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Get 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") String targetClientCode, @HeaderParam("client_code") String headerClientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Get 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") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Creates 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") String clientCode, @HeaderParam("author_name") String authorName, @HeaderParam("author_type") String authorType, @HeaderParam("application_code") @DefaultValue("") String strHeaderAppCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Updates 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
-