@Path(value="/rest/identitystore/v3") public class ServiceContractRestService extends Object
| Constructor and Description |
|---|
ServiceContractRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
closeServiceContract(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
Integer serviceContractId,
String clientCode,
String authorName,
String authorType)
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,
String clientCode,
String authorName,
String authorType)
Creates a service contract.
The service contract is created from the provided ServiceContractDto. |
javax.ws.rs.core.Response |
getActiveServiceContract(String strTargetClientCode,
String clientCode,
String authorName,
String authorType)
Get ServiceContract
|
javax.ws.rs.core.Response |
getAllServiceContractList(String clientCode,
String authorName,
String authorType)
Get ServiceContract List
|
javax.ws.rs.core.Response |
getServiceContract(String clientCode,
String authorName,
String authorType,
Integer serviceContractId)
Get ServiceContract
|
javax.ws.rs.core.Response |
getServiceContractList(String strTargetClientCode,
String clientCode,
String authorName,
String authorType)
Get ServiceContract List
|
javax.ws.rs.core.Response |
updateServiceContract(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
Integer serviceContractId,
String clientCode,
String authorName,
String authorType)
Updates a service contract.
The service contract is updated from the provided ServiceContractDto. |
@Path(value="/contracts")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getAllServiceContractList(@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
clientCode - client codefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@Path(value="/contracts/{target_client_code}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getServiceContractList(@PathParam(value="target_client_code")
String strTargetClientCode,
@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
clientCode - client codefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@Path(value="/contract/active/{target_client_code}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getActiveServiceContract(@PathParam(value="target_client_code")
String strTargetClientCode,
@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
clientCode - client codefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@Path(value="/contract/{service_contract_id}")
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response getServiceContract(@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType,
@PathParam(value="service_contract_id")
Integer serviceContractId)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
clientCode - client codeserviceContractId - service contract IDfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@Path(value="/contract")
@POST
@Consumes(value="application/json")
public javax.ws.rs.core.Response createServiceContract(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
ServiceContractDto.serviceContract - the service contract to createclientCode - the application code in the HTTP headerServiceContractChangeResponsefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@PUT
@Path(value="/contract/{service_contract_id}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updateServiceContract(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
@PathParam(value="service_contract_id")
Integer serviceContractId,
@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
ServiceContractDto.serviceContract - the service contract to updateserviceContractId - the service contract IDclientCode - the application code in the HTTP headerServiceContractChangeResponsefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException@PUT
@Path(value="/contract/{service_contract_id}/enddate")
@Consumes(value="application/json")
public javax.ws.rs.core.Response closeServiceContract(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractDto serviceContract,
@PathParam(value="service_contract_id")
Integer serviceContractId,
@HeaderParam(value="client_code")
String clientCode,
@HeaderParam(value="author_name")
String authorName,
@HeaderParam(value="author_type")
String authorType)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
ServiceContractDto.serviceContract - the service contract to updateserviceContractId - the service contract IDclientCode - the application code in the HTTP headerServiceContractChangeResponsefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.