fr.paris.lutece.plugins.crmclient.service
Class CRMClientService

java.lang.Object
  extended by fr.paris.lutece.plugins.crmclient.service.CRMClientService

public final class CRMClientService
extends java.lang.Object

CRMClientService


Method Summary
 void doProcessWS(ICRMItem crmItem)
          Calls WS to notify/update a demand
 ICRMClientQueue getQueue()
          Get the queue
static CRMClientService getService()
          Get the instance of the service
 void notify(java.lang.String strIdDemand, java.lang.String strObject, java.lang.String strMessage, java.lang.String strSender)
          Notify a demand
 void sendUpdateDemand(java.lang.String strIdDemand, java.lang.String strStatusText)
          Update a demand
 void setCRMClientQueue(ICRMClientQueue crmClientQueue)
          Set the crm client queue
 void setCRMClientWebService(CRMClientWebService crmClientWebService)
          Set the crm client webservice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getService

public static CRMClientService getService()
Get the instance of the service

Returns:
the instance of the service

setCRMClientQueue

public void setCRMClientQueue(ICRMClientQueue crmClientQueue)
Set the crm client queue

Parameters:
crmClientQueue - the crm client queue

setCRMClientWebService

public void setCRMClientWebService(CRMClientWebService crmClientWebService)
Set the crm client webservice

Parameters:
crmClientWebService - the crm client webservice

getQueue

public ICRMClientQueue getQueue()
Get the queue

Returns:
the queue

notify

public void notify(java.lang.String strIdDemand,
                   java.lang.String strObject,
                   java.lang.String strMessage,
                   java.lang.String strSender)
Notify a demand

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

sendUpdateDemand

public void sendUpdateDemand(java.lang.String strIdDemand,
                             java.lang.String strStatusText)
Update a demand

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

doProcessWS

public void doProcessWS(ICRMItem crmItem)
                 throws fr.paris.lutece.util.httpaccess.HttpAccessException,
                        CRMClientException
Calls WS to notify/update a demand

Parameters:
crmItem - the crm item
Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException - exception if connexion problem
CRMClientException - exception if application not well configured


Copyright © 2011 Mairie de Paris. All Rights Reserved.