Class CRMService
java.lang.Object
fr.paris.lutece.plugins.crm.service.CRMService
CRMService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteDemand(int nIdDemand) Delete a demandstatic CRMServiceGet the instance ofCRMServicevoidCreate a notification for a demandintregisterDemand(int nIdDemandType, int nIdCRMUser, String strData, String strStatusText, int nIdStatusCRM) Register the demandintregisterDemand(int nIdDemandType, String strUserGuid, String strData, String strStatusText, int nIdStatusCRM) Register the demandintregisterDemand(String strRemoteId, int nIdDemandType, int nIdCRMUser, String strData, String strStatusText, int nIdStatusCRM) Register the demandvoidsetCRMUserService(CRMUserService crmUserService) Set the crm user servicevoidsetDemandService(DemandService demandService) Set the demand servicevoidsetNotificationService(NotificationService notificationService) Set the notification servicevoidSet the status of the demand
-
Method Details
-
getService
Get the instance ofCRMService- Returns:
- the instance
-
registerDemand
public int registerDemand(int nIdDemandType, String strUserGuid, String strData, String strStatusText, int nIdStatusCRM) Register the demand- Parameters:
nIdDemandType- the id demand typestrUserGuid- the user guidstrData- the datastrStatusText- the status of the demandnIdStatusCRM- the id status crm- Returns:
- the newly created id demand
-
registerDemand
public int registerDemand(int nIdDemandType, int nIdCRMUser, String strData, String strStatusText, int nIdStatusCRM) Register the demand- Parameters:
nIdDemandType- the id demand typenIdCRMUser- the ID CRM userstrData- the datastrStatusText- the status of the demandnIdStatusCRM- the id status crm- Returns:
- the newly created id demand
-
registerDemand
public int registerDemand(String strRemoteId, int nIdDemandType, int nIdCRMUser, String strData, String strStatusText, int nIdStatusCRM) Register the demand- Parameters:
strRemoteId- the remoteIdnIdDemandType- the id demand typenIdCRMUser- the ID CRM userstrData- the datastrStatusText- the status of the demandnIdStatusCRM- the id status crm- Returns:
- the newly created id demand
-
setStatus
Set the status of the demand- Parameters:
nIdDemand- the id demandstrData- the datastrStatusText- the status of the demandnIdStatusCRM- the id status crm
-
deleteDemand
public void deleteDemand(int nIdDemand) Delete a demand- Parameters:
nIdDemand- the id demand
-
notify
Create a notification for a demand- Parameters:
nIdDemand- the id demandstrObject- the object of the notificationstrMessage- the message of the notificationstrSender- the sender
-
setNotificationService
Set the notification service- Parameters:
notificationService- the notification service
-
setDemandService
Set the demand service- Parameters:
demandService- the demand service
-
setCRMUserService
Set the crm user service- Parameters:
crmUserService- the crm user service
-