Interface IServiceContractTransportProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void checkCommonHeaders​(java.lang.String clientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)  
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, java.lang.Integer nServiceContractId, java.lang.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, java.lang.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​(java.lang.String strTargetClientCode, java.lang.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​(java.lang.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​(java.lang.Integer nServiceContractId, java.lang.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​(java.lang.String strTargetClientCode, java.lang.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.ServiceContractsSearchResponse searchServiceContractList​(boolean bLoadDetails, java.util.Date minEndDate, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
      Search service contracts according to the given criterias.
      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract, java.lang.Integer nServiceContractId, java.lang.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.
    • Method Detail

      • getServiceContractList

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getServiceContractList​(java.lang.String strTargetClientCode,
                                                                                                                           java.lang.String strClientCode,
                                                                                                                           fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                    throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get all service contract associated to the given client code.
        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

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse getAllServiceContractList​(java.lang.String strClientCode,
                                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                       throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get all service contracts.
        Parameters:
        strClientCode - client code of calling application
        author - the author of the request
        Returns:
        ServiceContractsSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • searchServiceContractList

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractsSearchResponse searchServiceContractList​(boolean bLoadDetails,
                                                                                                                              java.util.Date minEndDate,
                                                                                                                              java.lang.String strClientCode,
                                                                                                                              fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                       throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Search service contracts according to the given criterias.
        Parameters:
        bLoadDetails - - true to load the attribute details as well, false to load only the base object
        minEndDate - - the min end date
        strClientCode - - client code of calling application
        author - - the author of the request
        Returns:
        ServiceContractsSearchResponse
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getActiveServiceContract

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract​(java.lang.String strTargetClientCode,
                                                                                                                            java.lang.String strClientCode,
                                                                                                                            fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                     throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the active service contract associated to the given client code.
        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

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getServiceContract​(java.lang.Integer nServiceContractId,
                                                                                                                      java.lang.String strClientCode,
                                                                                                                      fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                               throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the service contract associated to the given ID and client code.
        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

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse createServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                         java.lang.String strClientCode,
                                                                                                                         fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                  throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Create a new Service Contract associated with the given client code.
        The service contract is created from the provided ServiceContractDto.
        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

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse updateServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                         java.lang.Integer nServiceContractId,
                                                                                                                         java.lang.String strClientCode,
                                                                                                                         fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                  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
        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

        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponse closeServiceContract​(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
                                                                                                                        java.lang.Integer nServiceContractId,
                                                                                                                        java.lang.String strClientCode,
                                                                                                                        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                                                                                                 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 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
      • checkCommonHeaders

        default void checkCommonHeaders​(java.lang.String clientCode,
                                        fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)
                                 throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException