fr.paris.lutece.plugins.crmclient.service
Interface ICRMClientService


public interface ICRMClientService

ICRMClientService


Field Summary
static String BEAN_SERVICE
           
 
Method Summary
 String getCRMUserAttribute(String strUserGuid, String strAttribute)
          Get the CRMUser attribute value
 String getCRMUserAttribute(String strUserGuid, String strAttribute, String strCRMWebAppCode)
          Get the CRMUser attribute value
 String getCRMUserAttributesJson(String strUserGuid)
          Get the CRMUser attributes in JSON
 String getCRMUserAttributesJson(String strUserGuid, String strCRMWebAppCode)
          Get the CRMUser attributes in JSON
 String getCRMUserAttributesXml(String strUserGuid)
          Get the CRMUser attributes in XML
 String getCRMUserAttributesXml(String strUserGuid, String strCRMWebAppCode)
          Get the CRMUser attributes in XML
 String getDemandJson(String strIdDemand)
          Get the Json of the demand
 String getDemandJson(String strIdDemand, String strCRMWebAppCode)
          Get the Json of the demand
 String getDemandXml(String strIdDemand)
          Get the XML of the demand
 String getDemandXml(String strIdDemand, String strCRMWebAppCode)
          Get the XML of the demand
 ICRMClientQueue getQueue()
          Get the queue
 String getUserGuidFromIdCRMUser(String strIdCRMUser)
          Deprecated. 
 String getUserGuidFromIdCRMUser(String strIdCRMUser, String strCRMWebAppCode)
          Deprecated. 
 String getUserGuidFromIdDemand(String strIdDemand)
          This method calls Rest WS to get the user guid from a given id demand
 String getUserGuidFromIdDemand(String strIdDemand, String strCRMWebAppCode)
          This method calls Rest WS to get the user guid from a given id demand
 void notify(String strIdDemand, String strObject, String strMessage, String strSender)
          Notify a demand
 void notify(String strIdDemand, String strObject, String strMessage, String strSender, String strCRMWebAppCode)
          Notify a demand
 String sendCreateDemandByIdCRMUser(String strIdDemandType, String strIdCRMUser, String strIdStatusCRM, String strStatusText, String strData)
          Deprecated. 
 String sendCreateDemandByIdCRMUser(String strIdDemandType, String strIdCRMUser, String strIdStatusCRM, String strStatusText, String strData, String strCRMWebAppCode)
          Deprecated. 
 String sendCreateDemandByUserGuid(String strIdDemandType, String strUserGuid, String strIdStatusCRM, String strStatusText, String strData)
          This method calls create a new demand and gets the id demand
 String sendCreateDemandByUserGuid(String strIdDemandType, String strUserGuid, String strIdStatusCRM, String strStatusText, String strData, String strCRMWebAppCode)
          This method calls create a new demand and gets the id demand
 void sendDeleteDemand(String strIdDemand)
          This method delete a demand
 void sendDeleteDemand(String strIdDemand, String strCRMWebAppCode)
          This method delete a demand
 void sendUpdateDemand(String strIdDemand, String strStatusText)
          Update a demand
 void sendUpdateDemand(String strIdDemand, String strStatusText, String strCRMWebAppCode)
          Update a demand
 void sendUpdateDemand(String strIdDemand, String strStatusText, String strCRMWebAppCode, String strIdStatusCRM)
          Update a demand
 void sendUpdateDemand(String strIdDemand, String strStatusText, String strCRMWebAppCode, String strIdStatusCRM, String strData)
          Update a demand
 

Field Detail

BEAN_SERVICE

static final String BEAN_SERVICE
See Also:
Constant Field Values
Method Detail

getQueue

ICRMClientQueue getQueue()
Get the queue

Returns:
the queue

notify

void notify(String strIdDemand,
            String strObject,
            String strMessage,
            String strSender)
Notify a demand

Parameters:
strIdDemand - the id demand
strObject - the object
strMessage - the message
strSender - the sender

notify

void notify(String strIdDemand,
            String strObject,
            String strMessage,
            String strSender,
            String strCRMWebAppCode)
Notify a demand

Parameters:
strIdDemand - the id demand
strObject - the object
strMessage - the message
strSender - the sender
strCRMWebAppCode - the CRM webapp code

sendUpdateDemand

void sendUpdateDemand(String strIdDemand,
                      String strStatusText)
                      throws CRMException
Update a demand

Parameters:
strIdDemand - the id demand
strStatusText - the status text
Throws:
CRMException - CRMException

sendUpdateDemand

void sendUpdateDemand(String strIdDemand,
                      String strStatusText,
                      String strCRMWebAppCode)
                      throws CRMException
Update a demand

Parameters:
strIdDemand - the id demand
strStatusText - the status text
strCRMWebAppCode - the CRM webapp code
Throws:
CRMException - CRMException

sendUpdateDemand

void sendUpdateDemand(String strIdDemand,
                      String strStatusText,
                      String strCRMWebAppCode,
                      String strIdStatusCRM)
                      throws CRMException
Update a demand

Parameters:
strIdDemand - the id demand
strStatusText - the status text
strCRMWebAppCode - the CRM webapp code
strIdStatusCRM - id of CRM status
Throws:
CRMException - CRMException

sendUpdateDemand

void sendUpdateDemand(String strIdDemand,
                      String strStatusText,
                      String strCRMWebAppCode,
                      String strIdStatusCRM,
                      String strData)
                      throws CRMException
Update a demand

Parameters:
strIdDemand - the id demand
strStatusText - the status text
strCRMWebAppCode - the CRM webapp code
strIdStatusCRM - id of CRM status
strData - the value of the parameter demand_data insert in the demand link
Throws:
CRMException - the exception if there is a problem

sendCreateDemandByUserGuid

String sendCreateDemandByUserGuid(String strIdDemandType,
                                  String strUserGuid,
                                  String strIdStatusCRM,
                                  String strStatusText,
                                  String strData)
                                  throws CRMException
This method calls 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 - the value of the parameter demand_data insert in the demand link
Returns:
id demand
Throws:
CRMException - the exception if there is a problem

sendCreateDemandByUserGuid

String sendCreateDemandByUserGuid(String strIdDemandType,
                                  String strUserGuid,
                                  String strIdStatusCRM,
                                  String strStatusText,
                                  String strData,
                                  String strCRMWebAppCode)
                                  throws CRMException
This method calls 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 - the value of the parameter demand_data insert in the demand link
strCRMWebAppCode - the CRM webapp code
Returns:
id demand
Throws:
CRMException - the exception if there is a problem

sendCreateDemandByIdCRMUser

@Deprecated
String sendCreateDemandByIdCRMUser(String strIdDemandType,
                                              String strIdCRMUser,
                                              String strIdStatusCRM,
                                              String strStatusText,
                                              String strData)
                                   throws CRMException
Deprecated. 

This method calls 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 - the value of the parameter demand_data insert in the demand link
Returns:
id demand
Throws:
CRMException - the exception if there is a problem

sendCreateDemandByIdCRMUser

@Deprecated
String sendCreateDemandByIdCRMUser(String strIdDemandType,
                                              String strIdCRMUser,
                                              String strIdStatusCRM,
                                              String strStatusText,
                                              String strData,
                                              String strCRMWebAppCode)
                                   throws CRMException
Deprecated. 

This method calls 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 - the value of the parameter demand_data insert in the demand link
strCRMWebAppCode - the CRM webapp code
Returns:
id demand
Throws:
CRMException - the exception if there is a problem

sendDeleteDemand

void sendDeleteDemand(String strIdDemand)
                      throws CRMException
This method delete a demand

Parameters:
strIdDemand - the id of the demand
Throws:
HttpAccessException - the exception if there is a problem
CRMException

sendDeleteDemand

void sendDeleteDemand(String strIdDemand,
                      String strCRMWebAppCode)
                      throws CRMException
This method delete a demand

Parameters:
strIdDemand - the id of the demand
strCRMWebAppCode - the CRM webapp code
Throws:
CRMException - the exception if there is a problem

getUserGuidFromIdDemand

String getUserGuidFromIdDemand(String strIdDemand)
                               throws CRMException
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:
CRMException - the exception if there is a problem

getUserGuidFromIdDemand

String getUserGuidFromIdDemand(String strIdDemand,
                               String strCRMWebAppCode)
                               throws CRMException
This method calls Rest WS to get the user guid from a given id demand

Parameters:
strIdDemand - the id demand
strCRMWebAppCode - the CRM webapp code
Returns:
the user guid
Throws:
CRMException - the exception if there is a problem

getUserGuidFromIdCRMUser

@Deprecated
String getUserGuidFromIdCRMUser(String strIdCRMUser)
                                throws CRMException
Deprecated. 

This method calls Rest WS to get the user guid from a given id crm user

Parameters:
strIdCRMUser - the id user
Returns:
the user guid
Throws:
CRMException - the exception if there is a problem

getUserGuidFromIdCRMUser

@Deprecated
String getUserGuidFromIdCRMUser(String strIdCRMUser,
                                           String strCRMWebAppCode)
                                throws CRMException
Deprecated. 

This method calls Rest WS to get the user guid from a given id crm user

Parameters:
strIdCRMUser - the id user
strCRMWebAppCode - the CRM webapp code
Returns:
the user guid
Throws:
CRMException - the exception if there is a problem

getDemandXml

String getDemandXml(String strIdDemand)
                    throws CRMException
Get the XML of the demand

Parameters:
strIdDemand - the id demand
Returns:
the XML of the demand
Throws:
CRMException - the exception if there is a problem

getDemandXml

String getDemandXml(String strIdDemand,
                    String strCRMWebAppCode)
                    throws CRMException
Get the XML of the demand

Parameters:
strIdDemand - the id demand
strCRMWebAppCode - the CRM webapp code
Returns:
the XML of the demand
Throws:
CRMException - the exception if there is a problem

getDemandJson

String getDemandJson(String strIdDemand)
                     throws CRMException
Get the Json of the demand

Parameters:
strIdDemand - the id of the demand
Returns:
the Json of the demand
Throws:
CRMException - the exception if there is a problem

getDemandJson

String getDemandJson(String strIdDemand,
                     String strCRMWebAppCode)
                     throws CRMException
Get the Json of the demand

Parameters:
strIdDemand - the id of the demand
strCRMWebAppCode - the CRM webapp code
Returns:
the Json of the demand
Throws:
CRMException - the exception if there is a problem

getCRMUserAttribute

String getCRMUserAttribute(String strUserGuid,
                           String strAttribute)
                           throws CRMException
Get the CRMUser attribute value

Parameters:
strUserGuid - the user guid
strAttribute - the attribute
Returns:
the attribute value
Throws:
CRMException - the exception if there is a problem

getCRMUserAttribute

String getCRMUserAttribute(String strUserGuid,
                           String strAttribute,
                           String strCRMWebAppCode)
                           throws CRMException
Get the CRMUser attribute value

Parameters:
strUserGuid - the user guid
strAttribute - the attribute
strCRMWebAppCode - the CRM webapp code
Returns:
the attribute value
Throws:
CRMException - the exception if there is a problem

getCRMUserAttributesXml

String getCRMUserAttributesXml(String strUserGuid)
                               throws CRMException
Get the CRMUser attributes in XML

Parameters:
strUserGuid - the user guid
Returns:
the CRMUser attributes
Throws:
CRMException - the exception if there is a problem

getCRMUserAttributesXml

String getCRMUserAttributesXml(String strUserGuid,
                               String strCRMWebAppCode)
                               throws CRMException
Get the CRMUser attributes in XML

Parameters:
strUserGuid - the user guid
strCRMWebAppCode - the CRM webapp code
Returns:
the CRMUser attributes
Throws:
CRMException - the exception if there is a problem

getCRMUserAttributesJson

String getCRMUserAttributesJson(String strUserGuid)
                                throws CRMException
Get the CRMUser attributes in JSON

Parameters:
strUserGuid - the user guid
Returns:
the attributes
Throws:
CRMException - the exception if there is a problem

getCRMUserAttributesJson

String getCRMUserAttributesJson(String strUserGuid,
                                String strCRMWebAppCode)
                                throws CRMException
Get the CRMUser attributes in JSON

Parameters:
strUserGuid - the user guid
strCRMWebAppCode - the CRM webapp code
Returns:
the attributes
Throws:
CRMException - the exception if there is a problem


Copyright © 2013 Mairie de Paris. All Rights Reserved.