Class ClientRestService


  • @Path("/rest/identitystore/v3")
    public class ClientRestService
    extends Object
    ClientRest
    • Constructor Detail

      • ClientRestService

        public ClientRestService()
    • Method Detail

      • getClients

        @Path("/clients/{application_code}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getClients​(@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
        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 service contract.
        The service contract is created from the provided ClientApplicationDto.

Parameters:
clientDto - the service contract to create
Returns:
http 200 if creation is ok with ClientChangeResponse
Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Parameters:
clientDto - the service contract to update
clientCode - 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