com.silverpeas.crm.control.impl
Class SimpleCrmDataManager

java.lang.Object
  extended by com.silverpeas.crm.control.impl.SimpleCrmDataManager
All Implemented Interfaces:
CrmDataManager

public class SimpleCrmDataManager
extends Object
implements CrmDataManager

Class declaration

Author:

Constructor Summary
SimpleCrmDataManager()
           
 
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)
          create a default CRM during instanciation.
 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)
           
 CrmDelivery getCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey deliveryPK)
           
 CrmEvent getCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey eventPK)
           
 CrmParticipant getCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey participantPK)
           
 List<Crm> listAllCrms(String instanceId)
           
 List<CrmContact> listContactsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 List<CrmParticipant> listCrmParticipantsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 List<CrmDelivery> listDeliveriesOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 List<CrmEvent> listEventsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 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

SimpleCrmDataManager

public SimpleCrmDataManager()
Method Detail

createCrm

public void createCrm(Crm crm)
Create a CRM.

Specified by:
createCrm in interface CrmDataManager
Parameters:
crm - the crm to store.

deleteCrm

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

Specified by:
deleteCrm in interface CrmDataManager

updateCrm

public void updateCrm(Crm crm)
Update a CRM

Specified by:
updateCrm in interface CrmDataManager

listAllCrms

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

listContactsOfCrm

public List<CrmContact> listContactsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
listContactsOfCrm in interface CrmDataManager
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 CrmDataManager

deleteCrmContact

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

updateCrmContact

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

getCrm

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

getCrmContact

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

createDefaultCrm

public Crm createDefaultCrm(String spaceId,
                            String componentId)
Description copied from interface: CrmDataManager
create a default CRM during instanciation.

Specified by:
createDefaultCrm in interface CrmDataManager
Returns:

getCrmParticipant

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

listCrmParticipantsOfCrm

public List<CrmParticipant> listCrmParticipantsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
listCrmParticipantsOfCrm in interface CrmDataManager

createCrmParticipant

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

deleteCrmParticipant

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

updateCrmParticipant

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

getCrmEvent

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

listEventsOfCrm

public List<CrmEvent> listEventsOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
listEventsOfCrm in interface CrmDataManager

createCrmEvent

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

deleteCrmEvent

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

updateCrmEvent

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

getCrmDelivery

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

listDeliveriesOfCrm

public List<CrmDelivery> listDeliveriesOfCrm(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
Specified by:
listDeliveriesOfCrm in interface CrmDataManager

createCrmDelivery

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

deleteCrmDelivery

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

updateCrmDelivery

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


Copyright © 2016 Silverpeas. All Rights Reserved.