fr.paris.lutece.plugins.crmclient.business
Class AbstractCRMItem

java.lang.Object
  extended by fr.paris.lutece.plugins.crmclient.business.AbstractCRMItem
All Implemented Interfaces:
ICRMItem, java.io.Serializable
Direct Known Subclasses:
DemandItem, NotificationItem

public abstract class AbstractCRMItem
extends java.lang.Object
implements java.io.Serializable, ICRMItem

AbstractCRMItem

See Also:
Serialized Form

Field Summary
static java.lang.String ID_DEMAND
           
static java.lang.String NOTIFICATION_MESSAGE
           
static java.lang.String NOTIFICATION_OBJECT
           
static java.lang.String NOTIFICATION_SENDER
           
static java.lang.String STATUS_TEXT
           
 
Constructor Summary
AbstractCRMItem()
           
 
Method Summary
protected  java.lang.String getCRMRestWebappUrl()
          Get the CRM rest webapp url
 java.util.Map<java.lang.String,java.lang.String> getParameters()
          Get the parameters
 void putParameter(java.lang.String strKey, java.lang.String strValue)
          Pu a new parameter to the map parameters
 void setParameters(java.util.Map<java.lang.String,java.lang.String> mapParameters)
          Set the parameters of the crm item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.crmclient.business.ICRMItem
getUrlForWS
 

Field Detail

NOTIFICATION_OBJECT

public static final java.lang.String NOTIFICATION_OBJECT
See Also:
Constant Field Values

NOTIFICATION_MESSAGE

public static final java.lang.String NOTIFICATION_MESSAGE
See Also:
Constant Field Values

NOTIFICATION_SENDER

public static final java.lang.String NOTIFICATION_SENDER
See Also:
Constant Field Values

ID_DEMAND

public static final java.lang.String ID_DEMAND
See Also:
Constant Field Values

STATUS_TEXT

public static final java.lang.String STATUS_TEXT
See Also:
Constant Field Values
Constructor Detail

AbstractCRMItem

public AbstractCRMItem()
Method Detail

setParameters

public void setParameters(java.util.Map<java.lang.String,java.lang.String> mapParameters)
Set the parameters of the crm item

Specified by:
setParameters in interface ICRMItem
Parameters:
mapParameters - the parameters

getParameters

public java.util.Map<java.lang.String,java.lang.String> getParameters()
Get the parameters

Specified by:
getParameters in interface ICRMItem
Returns:
the parameters

putParameter

public void putParameter(java.lang.String strKey,
                         java.lang.String strValue)
Pu a new parameter to the map parameters

Specified by:
putParameter in interface ICRMItem
Parameters:
strKey - the key of the parameter
strValue - the value of the parameter

getCRMRestWebappUrl

protected java.lang.String getCRMRestWebappUrl()
                                        throws CRMClientException
Get the CRM rest webapp url

Returns:
the crm rest webapp url
Throws:
CRMClientException - exception if the property file is not well configured


Copyright © 2011 Mairie de Paris. All Rights Reserved.