fr.paris.lutece.plugins.crm.service
Class CRMService

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.service.CRMService

public final class CRMService
extends java.lang.Object

CRMService


Method Summary
 void deleteDemand(int nIdDemand)
          Delete a demand
static CRMService getService()
          Get the instance of CRMService
 void notify(int nIdDemand, java.lang.String strObject, java.lang.String strMessage, java.lang.String strSender)
          Create a notification for a demand
 int registerDemand(int nIdDemandType, int nIdCRMUser, java.lang.String strData, java.lang.String strStatusText, int nIdStatusCRM)
          Register the demand
 int registerDemand(int nIdDemandType, java.lang.String strUserGuid, java.lang.String strData, java.lang.String strStatusText, int nIdStatusCRM)
          Register the demand
 void setCRMUserService(CRMUserService crmUserService)
          Set the crm user service
 void setDemandService(DemandService demandService)
          Set the demand service
 void setNotificationService(NotificationService notificationService)
          Set the notification service
 void setStatus(int nIdDemand, java.lang.String strData, java.lang.String strStatusText, int nIdStatusCRM)
          Set the status of the demand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static CRMService getService()
Get the instance of CRMService

Returns:
the instance

registerDemand

public int registerDemand(int nIdDemandType,
                          java.lang.String strUserGuid,
                          java.lang.String strData,
                          java.lang.String strStatusText,
                          int nIdStatusCRM)
Register the demand

Parameters:
nIdDemandType - the id demand type
strUserGuid - the user guid
strData - the data
strStatusText - the status of the demand
nIdStatusCRM - the id status crm
Returns:
the newly created id demand

registerDemand

public int registerDemand(int nIdDemandType,
                          int nIdCRMUser,
                          java.lang.String strData,
                          java.lang.String strStatusText,
                          int nIdStatusCRM)
Register the demand

Parameters:
nIdDemandType - the id demand type
nIdCRMUser - the ID CRM user
strData - the data
strStatusText - the status of the demand
nIdStatusCRM - the id status crm
Returns:
the newly created id demand

setStatus

public void setStatus(int nIdDemand,
                      java.lang.String strData,
                      java.lang.String strStatusText,
                      int nIdStatusCRM)
Set the status of the demand

Parameters:
nIdDemand - the id demand
strData - the data
strStatusText - the status of the demand
nIdStatusCRM - the id status crm

deleteDemand

public void deleteDemand(int nIdDemand)
Delete a demand

Parameters:
nIdDemand - the id demand

notify

public void notify(int nIdDemand,
                   java.lang.String strObject,
                   java.lang.String strMessage,
                   java.lang.String strSender)
Create a notification for a demand

Parameters:
nIdDemand - the id demand
strObject - the object of the notification
strMessage - the message of the notification
strSender - 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


Copyright © 2011 Mairie de Paris. All Rights Reserved.