Class CRMService


  • public final class CRMService
    extends Object
    CRMService
    • Method Detail

      • getService

        public static CRMService getService()
        Get the instance of CRMService
        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 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,
                                  String strData,
                                  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
      • registerDemand

        public int registerDemand​(String strRemoteId,
                                  int nIdDemandType,
                                  int nIdCRMUser,
                                  String strData,
                                  String strStatusText,
                                  int nIdStatusCRM)
        Register the demand
        Parameters:
        strRemoteId - the remoteId
        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,
                              String strData,
                              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,
                           String strObject,
                           String strMessage,
                           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