Class ServiceContractRestService

  • All Implemented Interfaces:
    IRestService

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, java.lang.Integer serviceContractId, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Closes a service contract by specifying an end date.
      The service contract is updated from the provided ServiceContractDto.
      javax.ws.rs.core.Response createServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Creates a service contract.
      The service contract is created from the provided ServiceContractDto.
      javax.ws.rs.core.Response getActiveServiceContract​(java.lang.String strTargetClientCode, java.lang.String headerClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get ServiceContract
      javax.ws.rs.core.Response getAllServiceContractList​(java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get ServiceContract List
      javax.ws.rs.core.Response getServiceContract​(java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.Integer serviceContractId, java.lang.String strHeaderAppCode)
      Get ServiceContract
      javax.ws.rs.core.Response getServiceContractList​(java.lang.String strTargetClientCode, java.lang.String headerClientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Get ServiceContract List
      javax.ws.rs.core.Response searchServiceContractWithMinEndDate​(java.lang.String strLoadDetails, java.lang.String strMinEndDate, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Search service contract
      javax.ws.rs.core.Response updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, java.lang.Integer serviceContractId, java.lang.String clientCode, java.lang.String authorName, java.lang.String authorType, java.lang.String strHeaderAppCode)
      Updates a service contract.
      The service contract is updated from the provided ServiceContractDto.
      • Methods inherited from class java.lang.Object

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

      • ServiceContractRestService

        public ServiceContractRestService()
    • Method Detail

      • getAllServiceContractList

        @Path("/contracts")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllServiceContractList​(@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 ServiceContract List
        Parameters:
        clientCode - client code
        Returns:
        the ServiceContract
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchServiceContractWithMinEndDate

        @Path("/contracts/search")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response searchServiceContractWithMinEndDate​(@QueryParam("load_details") @DefaultValue("false")
                                                                             java.lang.String strLoadDetails,
                                                                             @QueryParam("min_end_date") @DefaultValue("")
                                                                             java.lang.String strMinEndDate,
                                                                             @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
        Search service contract
        Parameters:
        clientCode - client code
        Returns:
        the ServiceContract
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getServiceContractList

        @Path("/contracts/list/{target_client_code}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getServiceContractList​(@PathParam("target_client_code")
                                                                java.lang.String strTargetClientCode,
                                                                @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 ServiceContract List
        Parameters:
        headerClientCode - client code
        Returns:
        the ServiceContract
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getActiveServiceContract

        @Path("/contract/active/{target_client_code}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getActiveServiceContract​(@PathParam("target_client_code")
                                                                  java.lang.String strTargetClientCode,
                                                                  @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 ServiceContract
        Parameters:
        headerClientCode - client code
        Returns:
        the ServiceContract
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getServiceContract

        @Path("/contracts/{service_contract_id}")
        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getServiceContract​(@HeaderParam("client_code")
                                                            java.lang.String clientCode,
                                                            @HeaderParam("author_name")
                                                            java.lang.String authorName,
                                                            @HeaderParam("author_type")
                                                            java.lang.String authorType,
                                                            @PathParam("service_contract_id")
                                                            java.lang.Integer serviceContractId,
                                                            @HeaderParam("application_code") @DefaultValue("")
                                                            java.lang.String strHeaderAppCode)
                                                     throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get ServiceContract
        Parameters:
        clientCode - client code
        serviceContractId - service contract ID
        Returns:
        the ServiceContract
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • createServiceContract

        @Path("/contracts")
        @POST
        @Consumes("application/json")
        public javax.ws.rs.core.Response createServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                               @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 service contract.
        The service contract is created from the provided ServiceContractDto.
        Parameters:
        serviceContract - the service contract to create
        clientCode - the application code in the HTTP header
        Returns:
        http 200 if creation is ok with ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • updateServiceContract

        @PUT
        @Path("/contracts/{service_contract_id}")
        @Consumes("application/json")
        public javax.ws.rs.core.Response updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                               @PathParam("service_contract_id")
                                                               java.lang.Integer serviceContractId,
                                                               @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
        Updates a service contract.
        The service contract is updated from the provided ServiceContractDto.
        Parameters:
        serviceContract - the service contract to update
        serviceContractId - the service contract ID
        clientCode - the application code in the HTTP header
        Returns:
        http 200 if creation is ok with ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • closeServiceContract

        @PUT
        @Path("/contracts/{service_contract_id}/enddate")
        @Consumes("application/json")
        public javax.ws.rs.core.Response closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                              @PathParam("service_contract_id")
                                                              java.lang.Integer serviceContractId,
                                                              @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
        Closes a service contract by specifying an end date.
        The service contract is updated from the provided ServiceContractDto.
        Parameters:
        serviceContract - the service contract to update
        serviceContractId - the service contract ID
        clientCode - the application code in the HTTP header
        Returns:
        http 200 if creation is ok with ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException