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
|
public String getWADL(@Context javax.servlet.http.HttpServletRequest request)
request - HttpServletRequestpublic String doCreateDemandByUserGuid(String strIdDemandType, String strUserGuid, String strIdStatusCRM, String strStatusText, 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 - HttpServletRequestpublic String doCreateDemandByUserGuidV2(Integer nVersion, String strRemoteId, String strIdDemandType, String strUserGuid, String strIdStatusCRM, String strStatusText, 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 - HttpServletRequestpublic String doCreateDemandByIdCRMUser(String strIdDemandType, String strIdCRMUser, String strIdStatusCRM, String strStatusText, 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 - HttpServletRequestpublic String doUpdateDemand(String strIdDemand, String strIdStatusCRM, String strStatusText, String strData, @Context javax.servlet.http.HttpServletRequest request)
strIdDemand - the id demandstrIdStatusCRM - the id status crmstrStatusText - the status textstrData - the datarequest - HttpServletRequestpublic String doUpdateDemandV2(Integer nVersion, String strRemoteId, String strIdDemandType, String strIdStatusCRM, String strStatusText, 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 - HttpServletRequestpublic String doDeleteDemand(String strIdDemand)
strIdDemand - the id demandpublic String doDeleteDemandV2(Integer nVersion, String strRemoteId, String strIdDemandType)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type idpublic String getDemand(String strIdDemand, String strMediaType)
strIdDemand - the id demandstrMediaType - the media type selectedpublic String getDemandV2(Integer nVersion, String strIdDemandType, String strRemoteId, String strMediaType)
nVersion - the API versionstrRemoteId - the Remote IdstrIdDemandType - the demand type idpublic String getDemandXML(String strIdDemand)
strIdDemand - the id demandpublic String getDemandXMLV2(Integer nVersion, String strIdDemandType, String strRemoteId)
strIdDemand - the id demandpublic String getDemandJson(String strIdDemand)
strIdDemand - the id of the demandpublic String getDemandJsonV2(Integer nVersion, String strIdDemandType, String strRemoteId)
strIdDemand - the id demandCopyright © 2019 City of Paris. All rights reserved.