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 |
doDeleteDemand(String strIdDemand)
Delete a demand
|
String |
doUpdateDemand(String strIdDemand,
String strIdStatusCRM,
String strStatusText,
String strData,
javax.servlet.http.HttpServletRequest request)
Update a demand
|
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 |
getDemandXML(String strIdDemand)
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
- HttpServletRequest
public 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
- HttpServletRequest
public 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
- HttpServletRequest
public 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
- HttpServletRequest
public String doDeleteDemand(String strIdDemand)
strIdDemand
- the id demandpublic String getDemand(String strIdDemand, String strMediaType)
strIdDemand
- the id demandstrMediaType
- the media type selectedpublic String getDemandXML(String strIdDemand)
strIdDemand
- the id demandpublic String getDemandJson(String strIdDemand)
strIdDemand
- the id of the demandCopyright © 2014 Mairie de Paris. All rights reserved.