@Path(value="/rest/crm") public class CRMRest extends Object
| Constructor and Description |
|---|
CRMRest() |
| Modifier and Type | Method and Description |
|---|---|
String |
doCreateDemandByIdCRMUser(String strIdDemandType,
String strIdCRMUser,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
Create a new demand
|
String |
doCreateDemandByUserGuid(String strIdDemandType,
String strUserGuid,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
Create a new demand
|
String |
doCreateDemandByUserGuidV2(Integer nVersion,
String strRemoteId,
String strIdDemandType,
String strUserGuid,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
Create a new demand using Remote id and id demand Type
|
String |
doDeleteDemand(String strIdDemand)
Delete a demand
|
String |
doDeleteDemandV2(Integer nVersion,
String strRemoteId,
String strIdDemandType)
delete a demand using Remote id and id demand Type
|
String |
doUpdateDemand(String strIdDemand,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
Update a demand
|
String |
doUpdateDemandV2(Integer nVersion,
String strRemoteId,
String strIdDemandType,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
update a demand using Remote id and id demand Type
|
String |
getDemand(String strIdDemand,
String strMediaType)
Get the demand in XML or demand JSON depending the value of strMediaType
|
String |
getDemandJson(String strIdDemand)
Get the Json of the demand
|
String |
getDemandJsonV2(Integer nVersion,
String strIdDemandType,
String strRemoteId)
Get the Json of the demand
|
String |
getDemandV2(Integer nVersion,
String strIdDemandType,
String strRemoteId,
String strMediaType)
Get the demand in XML or demand JSON depending the value of strMediaType
|
String |
getDemandXML(String strIdDemand)
Get the XML of the demand
|
String |
getDemandXMLV2(Integer nVersion,
String strIdDemandType,
String strRemoteId)
Get the XML of the demand
|
String |
getUserGuidFromIdDemand(String strIdDemand)
Get the user guid from a given id demand
|
String |
getWADL(javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content
|
@GET @Path(value="wadl") @Produces(value="application/xml") public String getWADL(@Context javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest@POST @Path(value="demand/createByUserGuid") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") public String doCreateDemandByUserGuid(@FormParam(value="id_demand_type") String strIdDemandType, @FormParam(value="user_guid") String strUserGuid, @FormParam(value="id_status_crm") String strIdStatusCRM, @FormParam(value="status_text") String strStatusText, @FormParam(value="demand_data") String strData, @Context javax.servlet.http.HttpServletRequest request)
strIdDemandType - the demand type idstrUserGuid - the user guidstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequest@POST
@Path(value="/{version}/demand/createByUserGuid")
@Produces(value="text/plain")
@Consumes(value="application/x-www-form-urlencoded")
public String doCreateDemandByUserGuidV2(@PathParam(value="version")
Integer nVersion,
@FormParam(value="remote_id")
String strRemoteId,
@FormParam(value="id_demand_type")
String strIdDemandType,
@FormParam(value="user_guid")
String strUserGuid,
@FormParam(value="id_status_crm")
String strIdStatusCRM,
@FormParam(value="status_text")
String strStatusText,
@FormParam(value="demand_data")
String strData,
@Context
javax.servlet.http.HttpServletRequest request)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type idstrUserGuid - the user guidstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequest@POST @Path(value="demand/createByIdCRMUser") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") public String doCreateDemandByIdCRMUser(@FormParam(value="id_demand_type") String strIdDemandType, @FormParam(value="id_crm_user") String strIdCRMUser, @FormParam(value="id_status_crm") String strIdStatusCRM, @FormParam(value="status_text") String strStatusText, @FormParam(value="demand_data") String strData, @Context javax.servlet.http.HttpServletRequest request)
strIdDemandType - the demand type idstrIdCRMUser - the ID CRM userstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequest@POST @Path(value="demand/update") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") public String doUpdateDemand(@FormParam(value="id_demand") String strIdDemand, @FormParam(value="id_status_crm") String strIdStatusCRM, @FormParam(value="status_text") String strStatusText, @FormParam(value="demand_data") String strData, @Context javax.servlet.http.HttpServletRequest request)
strIdDemand - the id demandstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequest@POST
@Path(value="/{version}/demand/update")
@Produces(value="text/plain")
@Consumes(value="application/x-www-form-urlencoded")
public String doUpdateDemandV2(@PathParam(value="version")
Integer nVersion,
@FormParam(value="remote_id")
String strRemoteId,
@FormParam(value="id_demand_type")
String strIdDemandType,
@FormParam(value="id_status_crm")
String strIdStatusCRM,
@FormParam(value="status_text")
String strStatusText,
@FormParam(value="demand_data")
String strData,
@Context
javax.servlet.http.HttpServletRequest request)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type idstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequest@POST @Path(value="demand/delete") @Produces(value="text/plain") @Consumes(value="application/x-www-form-urlencoded") public String doDeleteDemand(@FormParam(value="id_demand") String strIdDemand)
strIdDemand - the id demand@POST
@Path(value="/{version}/demand/delete")
@Produces(value="text/plain")
@Consumes(value="application/x-www-form-urlencoded")
public String doDeleteDemandV2(@PathParam(value="version")
Integer nVersion,
@FormParam(value="remote_id")
String strRemoteId,
@FormParam(value="id_demand_type")
String strIdDemandType)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type id@GET
@Path(value="demand/{id_demand}")
public String getDemand(@PathParam(value="id_demand")
String strIdDemand,
@QueryParam(value="media_type")
String strMediaType)
strIdDemand - the id demandstrMediaType - the media type selected@GET
@Path(value="/{version}/demand/{id_demand_type}/{remote_id}")
public String getDemandV2(@PathParam(value="version")
Integer nVersion,
@PathParam(value="id_demand_type")
String strIdDemandType,
@PathParam(value="remote_id")
String strRemoteId,
@QueryParam(value="media_type")
String strMediaType)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type id@GET
@Path(value="demand/{id_demand}")
@Produces(value="application/xml")
public String getDemandXML(@PathParam(value="id_demand")
String strIdDemand)
strIdDemand - the id demand@GET
@Path(value="/{version}/demand/{id_demand_type}/{remote_id}")
@Produces(value="application/xml")
public String getDemandXMLV2(@PathParam(value="version")
Integer nVersion,
@PathParam(value="id_demand_type")
String strIdDemandType,
@PathParam(value="remote_id")
String strRemoteId)
strIdDemand - the id demand@GET
@Path(value="demand/{id_demand}")
@Produces(value="application/json")
public String getDemandJson(@PathParam(value="id_demand")
String strIdDemand)
strIdDemand - the id of the demand@GET
@Path(value="/{version}/demand/{id_demand_type}/{remote_id}")
@Produces(value="application/json")
public String getDemandJsonV2(@PathParam(value="version")
Integer nVersion,
@PathParam(value="id_demand_type")
String strIdDemandType,
@PathParam(value="remote_id")
String strRemoteId)
strIdDemand - the id demandCopyright © 2018 City of Paris. All rights reserved.