fr.paris.lutece.plugins.crm.modules.rest.rs
Class CRMRest

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.modules.rest.rs.CRMRest

public class CRMRest
extends Object

CRMRest


Constructor Summary
CRMRest()
           
 
Method Summary
 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 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRMRest

public CRMRest()
Method Detail

getWADL

public String getWADL(@Context
                      javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content

Parameters:
request - HttpServletRequest
Returns:
the content of wadl.xml

doCreateDemandByUserGuid

public String doCreateDemandByUserGuid(String strIdDemandType,
                                       String strUserGuid,
                                       String strIdStatusCRM,
                                       String strStatusText,
                                       String strData,
                                       @Context
                                       javax.servlet.http.HttpServletRequest request)
Create a new demand

Parameters:
strIdDemandType - the demand type id
strUserGuid - the user guid
strIdStatusCRM - the id status crm
strStatusText - the status text
strData - the data
request - HttpServletRequest
Returns:
the id of the newly created demand

doCreateDemandByIdCRMUser

public String doCreateDemandByIdCRMUser(String strIdDemandType,
                                        String strIdCRMUser,
                                        String strIdStatusCRM,
                                        String strStatusText,
                                        String strData,
                                        @Context
                                        javax.servlet.http.HttpServletRequest request)
Create a new demand

Parameters:
strIdDemandType - the demand type id
strIdCRMUser - the ID CRM user
strIdStatusCRM - the id status crm
strStatusText - the status text
strData - the data
request - HttpServletRequest
Returns:
the id of the newly created demand

doUpdateDemand

public String doUpdateDemand(String strIdDemand,
                             String strIdStatusCRM,
                             String strStatusText,
                             String strData,
                             @Context
                             javax.servlet.http.HttpServletRequest request)
Update a demand

Parameters:
strIdDemand - the id demand
strIdStatusCRM - the id status crm
strStatusText - the status text
strData - the data
request - HttpServletRequest
Returns:
the id of the demand

doDeleteDemand

public String doDeleteDemand(String strIdDemand)
Delete a demand

Parameters:
strIdDemand - the id demand
Returns:
the id of the demand

getDemandXML

public String getDemandXML(String strIdDemand)
Get the XML of the demand

Parameters:
strIdDemand - the id demand
Returns:
the XML of the demand

getDemandJson

public String getDemandJson(String strIdDemand)
Get the Json of the demand

Parameters:
strIdDemand - the id of the demand
Returns:
the Json of the demand

getUserGuidFromIdDemand

public String getUserGuidFromIdDemand(String strIdDemand)
Get the user guid from a given id demand

Parameters:
strIdDemand - the id demand
Returns:
the user guid


Copyright © 2013 Mairie de Paris. All Rights Reserved.