Class ClientRestService

  • All Implemented Interfaces:
    IRestService

    @Path("/rest/identitystore/v3")
    public class ClientRestService
    extends java.lang.Object
    implements IRestService
    ClientRest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createClient​(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 provided ClientApplicationDto.

      javax.ws.rs.core.Response getClient​(java.lang.String targetClientCode, java.lang.String headerClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get Client
      javax.ws.rs.core.Response getClients​(java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get all Clients
      javax.ws.rs.core.Response getClientsByAppCode​(java.lang.String applicationCode, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get Clients by app code
      javax.ws.rs.core.Response updateClient​(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 provided ClientApplicationDto.

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientRestService

        public ClientRestService()
    • 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.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")
                                                             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.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")
                                                   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.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")
                                                      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.IdentityStoreException
        Creates a client
        The client is created from the provided ClientApplicationDto.

Parameters:
clientDto - the client 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