Class CRMService
- java.lang.Object
-
- fr.paris.lutece.plugins.crm.service.CRMService
-
public final class CRMService extends Object
CRMService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteDemand(int nIdDemand)Delete a demandstatic CRMServicegetService()Get the instance ofCRMServicevoidnotify(int nIdDemand, String strObject, String strMessage, String strSender)Create 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 servicevoidsetStatus(int nIdDemand, String strData, String strStatusText, int nIdStatusCRM)Set the status of the demand
-
-
-
Method Detail
-
getService
public static CRMService 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
public void setStatus(int nIdDemand, String strData, String strStatusText, int nIdStatusCRM)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
public void notify(int nIdDemand, String strObject, String strMessage, String strSender)Create a notification for a demand- Parameters:
nIdDemand- the id demandstrObject- the object of the notificationstrMessage- the message of the notificationstrSender- the sender
-
setNotificationService
public void setNotificationService(NotificationService notificationService)
Set the notification service- Parameters:
notificationService- the notification service
-
setDemandService
public void setDemandService(DemandService demandService)
Set the demand service- Parameters:
demandService- the demand service
-
setCRMUserService
public void setCRMUserService(CRMUserService crmUserService)
Set the crm user service- Parameters:
crmUserService- the crm user service
-
-