com.silverpeas.crm.implementation
Class CrmDataManager

java.lang.Object
  extended by com.silverpeas.crm.implementation.CrmDataManager
All Implemented Interfaces:
CrmDataInterface

public class CrmDataManager
extends Object
implements CrmDataInterface

Class declaration

Author:

Constructor Summary
CrmDataManager()
           
 
Method Summary
 void createCrm(Crm crm)
          Create a CRM.
 void createCrmContact(CrmContact contact)
           
 void createCrmDelivery(CrmDelivery delivery)
           
 void createCrmEvent(CrmEvent event)
           
 void createCrmParticipant(CrmParticipant participant)
           
 Crm createDefaultCrm(String spaceId, String componentId)
           
 void deleteCrm(com.stratelia.webactiv.util.WAPrimaryKey pk)
          Delete a CRM.
 void deleteCrmContact(com.stratelia.webactiv.util.WAPrimaryKey pk, String componentId)
           
 void deleteCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey pk, String componentId)
           
 void deleteCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey pk, String componentId)
           
 void deleteCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey pk, String componentId)
           
 Crm getCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmContact getCrmContact(com.stratelia.webactiv.util.WAPrimaryKey contactPK)
           
 ArrayList<CrmContact> getCrmContacts(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmDelivery getCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey deliveryPK)
           
 ArrayList<CrmDelivery> getCrmDeliverys(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmEvent getCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey eventPK)
           
 ArrayList<CrmEvent> getCrmEvents(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmParticipant getCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey participantPK)
           
 ArrayList<CrmParticipant> getCrmParticipants(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 ArrayList<Crm> getCrms(String instanceId)
           
 Connection openConnection()
          Ouverture de la connection vers la source de donnees
 void updateCrm(Crm crm)
          Update a CRM
 void updateCrmContact(CrmContact contact)
           
 void updateCrmDelivery(CrmDelivery delivery)
           
 void updateCrmEvent(CrmEvent event)
           
 void updateCrmParticipant(CrmParticipant participant)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrmDataManager

public CrmDataManager()
Method Detail

createCrm

public void createCrm(Crm crm)
Create a CRM.

Specified by:
createCrm in interface CrmDataInterface

deleteCrm

public void deleteCrm(com.stratelia.webactiv.util.WAPrimaryKey pk)
Delete a CRM.

Specified by:
deleteCrm in interface CrmDataInterface

updateCrm

public void updateCrm(Crm crm)
Update a CRM

Specified by:
updateCrm in interface CrmDataInterface

getCrms

public ArrayList<Crm> getCrms(String instanceId)
Specified by:
getCrms in interface CrmDataInterface
Returns:
A list of the CRM of the instance which id is given as parameter.

getCrmContacts

public ArrayList<CrmContact> getCrmContacts(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
getCrmContacts in interface CrmDataInterface
Returns:
The list of CRM contacts corresponding to the CRM primary key given as parameter.

createCrmContact

public void createCrmContact(CrmContact contact)
Specified by:
createCrmContact in interface CrmDataInterface

deleteCrmContact

public void deleteCrmContact(com.stratelia.webactiv.util.WAPrimaryKey pk,
                             String componentId)
Specified by:
deleteCrmContact in interface CrmDataInterface

updateCrmContact

public void updateCrmContact(CrmContact contact)
Specified by:
updateCrmContact in interface CrmDataInterface

getCrm

public Crm getCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
getCrm in interface CrmDataInterface

getCrmContact

public CrmContact getCrmContact(com.stratelia.webactiv.util.WAPrimaryKey contactPK)
Specified by:
getCrmContact in interface CrmDataInterface

createDefaultCrm

public Crm createDefaultCrm(String spaceId,
                            String componentId)
Specified by:
createDefaultCrm in interface CrmDataInterface

getCrmParticipant

public CrmParticipant getCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey participantPK)
Specified by:
getCrmParticipant in interface CrmDataInterface

getCrmParticipants

public ArrayList<CrmParticipant> getCrmParticipants(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
getCrmParticipants in interface CrmDataInterface

createCrmParticipant

public void createCrmParticipant(CrmParticipant participant)
Specified by:
createCrmParticipant in interface CrmDataInterface

deleteCrmParticipant

public void deleteCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey pk,
                                 String componentId)
Specified by:
deleteCrmParticipant in interface CrmDataInterface

updateCrmParticipant

public void updateCrmParticipant(CrmParticipant participant)
Specified by:
updateCrmParticipant in interface CrmDataInterface

getCrmEvent

public CrmEvent getCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey eventPK)
Specified by:
getCrmEvent in interface CrmDataInterface

getCrmEvents

public ArrayList<CrmEvent> getCrmEvents(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
getCrmEvents in interface CrmDataInterface

createCrmEvent

public void createCrmEvent(CrmEvent event)
Specified by:
createCrmEvent in interface CrmDataInterface

deleteCrmEvent

public void deleteCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey pk,
                           String componentId)
Specified by:
deleteCrmEvent in interface CrmDataInterface

updateCrmEvent

public void updateCrmEvent(CrmEvent event)
Specified by:
updateCrmEvent in interface CrmDataInterface

getCrmDelivery

public CrmDelivery getCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey deliveryPK)
Specified by:
getCrmDelivery in interface CrmDataInterface

getCrmDeliverys

public ArrayList<CrmDelivery> getCrmDeliverys(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
getCrmDeliverys in interface CrmDataInterface

createCrmDelivery

public void createCrmDelivery(CrmDelivery delivery)
Specified by:
createCrmDelivery in interface CrmDataInterface

deleteCrmDelivery

public void deleteCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey pk,
                              String componentId)
Specified by:
deleteCrmDelivery in interface CrmDataInterface

updateCrmDelivery

public void updateCrmDelivery(CrmDelivery delivery)
Specified by:
updateCrmDelivery in interface CrmDataInterface

openConnection

public Connection openConnection()
                          throws CrmException
Ouverture de la connection vers la source de donnees

Specified by:
openConnection in interface CrmDataInterface
Returns:
Connection la connection
Throws:
CrmException


Copyright © 2016 Silverpeas. All Rights Reserved.