Class MockServiceContractTransportDataStore
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.v3.web.rs.service.MockServiceContractTransportDataStore
-
- All Implemented Interfaces:
IServiceContractTransportProvider
public class MockServiceContractTransportDataStore extends java.lang.Object implements IServiceContractTransportProvider
-
-
Constructor Summary
Constructors Constructor Description MockServiceContractTransportDataStore()Simple ConstructorMockServiceContractTransportDataStore(fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider httpTransport)Constructor with IHttpTransportProvider parameter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponsecloseServiceContract(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 providedServiceContractDto.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponsecreateServiceContract(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 providedServiceContractDto.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponsegetActiveServiceContract(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.ServiceContractsSearchResponsegetAllServiceContractList(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.ServiceContractSearchResponsegetServiceContract(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.ServiceContractsSearchResponsegetServiceContractList(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.ServiceContractsSearchResponsesearchServiceContractList(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.voidsetIdentityStoreEndPoint(java.lang.String strIdentityStoreEndPoint)setter of identityStoreEndPointfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractChangeResponseupdateServiceContract(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 providedServiceContractDto.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.identitystore.v3.web.service.IServiceContractTransportProvider
checkCommonHeaders
-
-
-
-
Constructor Detail
-
MockServiceContractTransportDataStore
public MockServiceContractTransportDataStore()
Simple Constructor
-
MockServiceContractTransportDataStore
public MockServiceContractTransportDataStore(fr.paris.lutece.plugins.identitystore.v3.business.IHttpTransportProvider httpTransport)
Constructor with IHttpTransportProvider parameter- Parameters:
httpTransport- the provider to use
-
-
Method Detail
-
setIdentityStoreEndPoint
public void setIdentityStoreEndPoint(java.lang.String strIdentityStoreEndPoint)
setter of identityStoreEndPoint- Parameters:
strIdentityStoreEndPoint- value to use
-
getServiceContractList
public 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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderGet all service contract associated to the given client code.- Specified by:
getServiceContractListin interfaceIServiceContractTransportProvider- Parameters:
strTargetClientCode- the client code.strClientCode- client code of calling applicationauthor- 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(java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderGet all service contracts.- Specified by:
getAllServiceContractListin interfaceIServiceContractTransportProvider- Parameters:
strClientCode- client code of calling applicationauthor- the author of the request- Returns:
- ServiceContractsSearchResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
searchServiceContractList
public 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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderSearch service contracts according to the given criterias.- Specified by:
searchServiceContractListin interfaceIServiceContractTransportProvider- Parameters:
bLoadDetails- - true to load the attribute details as well, false to load only the base objectminEndDate- - the min end datestrClientCode- - client code of calling applicationauthor- - 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(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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderGet the active service contract associated to the given client code.- Specified by:
getActiveServiceContractin interfaceIServiceContractTransportProvider- Parameters:
strTargetClientCode- the client code.strClientCode- client code of calling applicationauthor- 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(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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderGet the service contract associated to the given ID and client code.- Specified by:
getServiceContractin interfaceIServiceContractTransportProvider- Parameters:
nServiceContractId- the ID.strClientCode- client code of calling applicationauthor- 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, java.lang.String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderCreate a new Service Contract associated with the given client code.
The service contract is created from the providedServiceContractDto.- Specified by:
createServiceContractin interfaceIServiceContractTransportProvider- Parameters:
serviceContract- the service contract to create.strClientCode- client code of calling applicationauthor- 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, 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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderUpdates a service contract.
The service contract is updated from the providedServiceContractDto.- Specified by:
updateServiceContractin interfaceIServiceContractTransportProvider- Parameters:
serviceContract- the service contract to updatenServiceContractId- the service contract IDstrClientCode- client code of calling applicationauthor- 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, 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.IdentityStoreExceptionDescription copied from interface:IServiceContractTransportProviderCloses a service contract by specifying an end date.
The service contract is updated from the providedServiceContractDto.- Specified by:
closeServiceContractin interfaceIServiceContractTransportProvider- Parameters:
serviceContract- the service contract to closenServiceContractId- the service contract IDstrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- ServiceContractChangeResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-