fr.paris.lutece.plugins.crm.modules.form.service
Class CRMWebServices

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.modules.form.service.CRMWebServices

public final class CRMWebServices
extends java.lang.Object

CRMWebServices


Method Summary
static java.lang.String getUserGuidFromIdDemand(java.lang.String strIdDemand)
          This method calls Rest WS to get the user guid from a given id demand
static java.lang.String sendDemandCreateByIdCRMUser(java.lang.String strIdDemandType, java.lang.String strIdCRMUser, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData)
          This method calls Rest WS to create a new demand and get id demand
static java.lang.String sendDemandCreateByUserGuid(java.lang.String strIdDemandType, java.lang.String strUserGuid, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData)
          This method calls Rest WS to create a new demand and gets the id demand
static void sendDemandDelete(java.lang.String strIdDemand)
          This method calls Rest WS to delete a demand
static void sendDemandUpdate(java.lang.String strIdDemand, java.lang.String strIdStatusCRM, java.lang.String strStatusText, java.lang.String strData)
          This method calls Rest WS to update a demand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendDemandCreateByUserGuid

public static java.lang.String sendDemandCreateByUserGuid(java.lang.String strIdDemandType,
                                                          java.lang.String strUserGuid,
                                                          java.lang.String strIdStatusCRM,
                                                          java.lang.String strStatusText,
                                                          java.lang.String strData)
                                                   throws fr.paris.lutece.util.httpaccess.HttpAccessException
This method calls Rest WS to create a new demand and gets the id demand

Parameters:
strIdDemandType - id of demand type
strUserGuid - login of user auth
strIdStatusCRM - id of CRM status
strStatusText - status text
strData - data
Returns:
id demand
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem

sendDemandCreateByIdCRMUser

public static java.lang.String sendDemandCreateByIdCRMUser(java.lang.String strIdDemandType,
                                                           java.lang.String strIdCRMUser,
                                                           java.lang.String strIdStatusCRM,
                                                           java.lang.String strStatusText,
                                                           java.lang.String strData)
                                                    throws fr.paris.lutece.util.httpaccess.HttpAccessException
This method calls Rest WS to create a new demand and get id demand

Parameters:
strIdDemandType - id of demand type
strIdCRMUser - the id crm user
strIdStatusCRM - id of CRM status
strStatusText - status text
strData - data
Returns:
id demand
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem

sendDemandUpdate

public static void sendDemandUpdate(java.lang.String strIdDemand,
                                    java.lang.String strIdStatusCRM,
                                    java.lang.String strStatusText,
                                    java.lang.String strData)
                             throws fr.paris.lutece.util.httpaccess.HttpAccessException
This method calls Rest WS to update a demand

Parameters:
strIdDemand - id of demand
strIdStatusCRM - id of CRM status
strStatusText - status text
strData - data
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem

sendDemandDelete

public static void sendDemandDelete(java.lang.String strIdDemand)
                             throws fr.paris.lutece.util.httpaccess.HttpAccessException
This method calls Rest WS to delete a demand

Parameters:
strIdDemand - the id of the demand
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem

getUserGuidFromIdDemand

public static java.lang.String getUserGuidFromIdDemand(java.lang.String strIdDemand)
                                                throws fr.paris.lutece.util.httpaccess.HttpAccessException
This method calls Rest WS to get the user guid from a given id demand

Parameters:
strIdDemand - the id demand
Returns:
the user guid
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - the exception if there is a problem


Copyright © 2011 Mairie de Paris. All Rights Reserved.