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 java.lang.Object

CRMRest


Constructor Summary
CRMRest()
           
 
Method Summary
 java.lang.String doCreateDemandByIdCRMUser(java.lang.String strIdDemandType, java.lang.String strIdCRMUser, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData, javax.servlet.http.HttpServletRequest request)
          Create a new demand
 java.lang.String doCreateDemandByUserGuid(java.lang.String strIdDemandType, java.lang.String strUserGuid, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData, javax.servlet.http.HttpServletRequest request)
          Create a new demand
 java.lang.String doDeleteDemand(java.lang.String strIdDemand)
          Delete a demand
 java.lang.String doUpdateDemand(java.lang.String strIdDemand, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData, javax.servlet.http.HttpServletRequest request)
          Update a demand
 java.lang.String getDemandJson(java.lang.String strIdDemand)
          Get the Json of the demand
 java.lang.String getDemandXML(java.lang.String strIdDemand)
          Get the XML of the demand
 java.lang.String getUserGuidFromIdDemand(java.lang.String strIdDemand)
          Get the user guid from a given id demand
 java.lang.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 java.lang.String getWADL(@Context
                                javax.servlet.http.HttpServletRequest request)
Get the wadl.xml content

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

doCreateDemandByUserGuid

public java.lang.String doCreateDemandByUserGuid(java.lang.String strIdDemandType,
                                                 java.lang.String strUserGuid,
                                                 java.lang.String strIdStatusCRM,
                                                 java.lang.String strStatusText,
                                                 java.lang.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 java.lang.String doCreateDemandByIdCRMUser(java.lang.String strIdDemandType,
                                                  java.lang.String strIdCRMUser,
                                                  java.lang.String strIdStatusCRM,
                                                  java.lang.String strStatusText,
                                                  java.lang.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 java.lang.String doUpdateDemand(java.lang.String strIdDemand,
                                       java.lang.String strIdStatusCRM,
                                       java.lang.String strStatusText,
                                       java.lang.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 java.lang.String doDeleteDemand(java.lang.String strIdDemand)
Delete a demand

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

getDemandXML

public java.lang.String getDemandXML(java.lang.String strIdDemand)
Get the XML of the demand

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

getDemandJson

public java.lang.String getDemandJson(java.lang.String strIdDemand)
Get the Json of the demand

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

getUserGuidFromIdDemand

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

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.