Class ServiceContractTransportRest

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, Integer nServiceContractId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Closes a service contract by specifying an end date.
      The service contract is updated from the provided ServiceContractDto.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse createServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Create a new Service Contract associated with the given client code.
      The service contract is created from the provided ServiceContractDto.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract​(String strTargetClientCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get the active service contract associated to the given client code.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getAllServiceContractList​(String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get all service contracts.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getServiceContract​(Integer nServiceContractId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get the service contract associated to the given ID and client code.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getServiceContractList​(String strTargetClientCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Get all service contract associated to the given client code.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, Integer nServiceContractId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Updates a service contract.
      The service contract is updated from the provided ServiceContractDto.
    • Constructor Detail

      • ServiceContractTransportRest

        public ServiceContractTransportRest​(IHttpTransportProvider httpTransport)
        Constructor with IHttpTransportProvider parameter
        Parameters:
        httpTransport - the provider to use
      • ServiceContractTransportRest

        public ServiceContractTransportRest​(IHttpTransportProvider httpTransport,
                                            String strIdentityPath)
        Constructor with IHttpTransportProvider parameter
        Parameters:
        httpTransport - the provider to use
    • Method Detail

      • getServiceContractList

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getServiceContractList​(String strTargetClientCode,
                                                                                                                                  String strClientCode,
                                                                                                                                  fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                           throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Get all service contract associated to the given client code.
        Specified by:
        getServiceContractList in interface IServiceContractTransportProvider
        Parameters:
        strTargetClientCode - the client code.
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractsSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getAllServiceContractList

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getAllServiceContractList​(String strClientCode,
                                                                                                                                     fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                              throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Get all service contracts.
        Specified by:
        getAllServiceContractList in interface IServiceContractTransportProvider
        Parameters:
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractsSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getActiveServiceContract

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract​(String strTargetClientCode,
                                                                                                                                   String strClientCode,
                                                                                                                                   fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                            throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Get the active service contract associated to the given client code.
        Specified by:
        getActiveServiceContract in interface IServiceContractTransportProvider
        Parameters:
        strTargetClientCode - the client code.
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getServiceContract

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getServiceContract​(Integer nServiceContractId,
                                                                                                                             String strClientCode,
                                                                                                                             fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                      throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Get the service contract associated to the given ID and client code.
        Specified by:
        getServiceContract in interface IServiceContractTransportProvider
        Parameters:
        nServiceContractId - the ID.
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • createServiceContract

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse createServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                                String strClientCode,
                                                                                                                                fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                         throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Create a new Service Contract associated with the given client code.
        The service contract is created from the provided ServiceContractDto.
        Specified by:
        createServiceContract in interface IServiceContractTransportProvider
        Parameters:
        serviceContract - the service contract to create.
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • updateServiceContract

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                                Integer nServiceContractId,
                                                                                                                                String strClientCode,
                                                                                                                                fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                         throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Updates a service contract.
        The service contract is updated from the provided ServiceContractDto.
        Specified by:
        updateServiceContract in interface IServiceContractTransportProvider
        Parameters:
        serviceContract - the service contract to update
        nServiceContractId - the service contract ID
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • closeServiceContract

        public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                               Integer nServiceContractId,
                                                                                                                               String strClientCode,
                                                                                                                               fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                        throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Description copied from interface: IServiceContractTransportProvider
        Closes a service contract by specifying an end date.
        The service contract is updated from the provided ServiceContractDto.
        Specified by:
        closeServiceContract in interface IServiceContractTransportProvider
        Parameters:
        serviceContract - the service contract to close
        nServiceContractId - the service contract ID
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractChangeResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException