com.silverpeas.crm.control
Class CrmSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.silverpeas.crm.control.CrmSessionController
All Implemented Interfaces:
com.stratelia.silverpeas.peasCore.ComponentSessionController

public class CrmSessionController
extends com.stratelia.silverpeas.peasCore.AbstractComponentSessionController


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
CrmSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl, com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
           
 
Method Summary
protected  com.stratelia.silverpeas.selection.Selection communInitUserPanel(String compoName, String operation)
           
 void createCrm(Crm crm)
           
 void createCrmContact(CrmContact contact)
           
 void createCrmDelivery(CrmDelivery delivery)
           
 void createCrmEvent(CrmEvent event)
           
 void createCrmParticipant(CrmParticipant participant)
           
 void createIndex(Crm crm)
           
 void createIndex(CrmContact contact)
           
 void createIndex(CrmDelivery delivery)
           
 void createIndex(CrmEvent event)
           
 void createIndex(CrmParticipant participant)
           
 void deleteCrm(com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void deleteCrmContact(com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void deleteCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void deleteCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 void deleteCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey pk)
           
 String getActionDate()
           
 String getActionTodo()
           
 String getContactName(com.stratelia.webactiv.util.WAPrimaryKey crmPK, int contactId)
           
 Collection<String[]> getContacts()
           
 List<ContactVO> getContactVOs()
           
 com.stratelia.silverpeas.containerManager.ContainerContext getContainerContext()
           
 CrmContact getCrmContact(com.stratelia.webactiv.util.WAPrimaryKey contactPK)
           
 List<CrmContact> getCrmContacts(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmDelivery getCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey deliveryPK)
           
 List<CrmDelivery> getCrmDeliverys(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmEvent getCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey eventPK)
           
 List<CrmEvent> getCrmEvents(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 CrmParticipant getCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey participantPK)
           
 List<CrmParticipant> getCrmParticipants(com.stratelia.webactiv.util.WAPrimaryKey crmPK)
           
 List<Crm> getCrms()
           
 Crm getCurrentCrm()
           
 String getDate(String date)
           
 int getDeliveryContact()
           
 String getDeliveryDate()
           
 String getDeliveryElement()
           
 String getDeliveryId()
           
 String getDeliveryMedia()
           
 String getDeliveryVersion()
           
 List<DeliveryVO> getDeliveryVOs()
           
 String getDisplayDate(String date)
           
 String getEventDate()
           
 String getEventId()
           
 String getEventLib()
           
 String getEventState()
           
 List<EventVO> getEventVOs()
           
 String getFilterId()
           
 String getFilterLib()
           
 String getFunction()
           
 Collection<String[]> getFunctions()
           
 String getLibFunction(String participantFunction)
           
 String getLibMedia(String media)
           
 String getLibState(String eventState)
           
 Collection<String[]> getMedias()
           
 String getParticipantActif()
           
 String getParticipantEmail()
           
 String getParticipantId()
           
 List<ParticipantVO> getParticipantVOs()
           
 com.stratelia.silverpeas.util.ResourcesWrapper getResouces()
           
 String getReturnURL()
           
 Collection<String[]> getStates()
           
 String getValue(String index, String[] tabContents)
           
 String initUserPanelDelivery()
           
 String initUserPanelEvent()
           
 String initUserPanelParticipant()
           
 void setActionDate(String actionDate)
           
 void setActionTodo(String actionTodo)
           
 void setContainerContext(com.stratelia.silverpeas.containerManager.ContainerContext containerContext)
           
 void setDeliveryContact(int deliveryContact)
           
 void setDeliveryDate(String deliveryDate)
           
 void setDeliveryElement(String deliveryElement)
           
 void setDeliveryId(String deliveryId)
           
 void setDeliveryMedia(String deliveryMedia)
           
 void setDeliveryVersion(String deliveryVersion)
           
 void setEventDate(String eventDate)
           
 void setEventId(String eventId)
           
 void setEventLib(String eventLib)
           
 void setEventState(String eventState)
           
 void setFilterId(String filterId)
           
 void setFilterLib(String filterLib)
           
 void setFunction(String function)
           
 void setParticipantActif(String participantActif)
           
 void setParticipantEmail(String participantEmail)
           
 void setParticipantId(String participantId)
           
 void setReturnURL(String returnURL)
           
 void updateCrm(Crm crm)
           
 void updateCrmContact(CrmContact contact)
           
 void updateCrmDelivery(CrmDelivery delivery)
           
 void updateCrmEvent(CrmEvent event)
           
 void updateCrmParticipant(CrmParticipant participant)
           
 void userPanelReturn()
           
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrmSessionController

public CrmSessionController(com.stratelia.silverpeas.peasCore.MainSessionController mainSessionCtrl,
                            com.stratelia.silverpeas.peasCore.ComponentContext componentContext)
Method Detail

getResouces

public com.stratelia.silverpeas.util.ResourcesWrapper getResouces()

setContainerContext

public void setContainerContext(com.stratelia.silverpeas.containerManager.ContainerContext containerContext)

getContainerContext

public com.stratelia.silverpeas.containerManager.ContainerContext getContainerContext()

setReturnURL

public void setReturnURL(String returnURL)

getReturnURL

public String getReturnURL()

createCrm

public void createCrm(Crm crm)

deleteCrm

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

updateCrm

public void updateCrm(Crm crm)

getCrms

public List<Crm> getCrms()

getCrmContacts

public List<CrmContact> getCrmContacts(com.stratelia.webactiv.util.WAPrimaryKey crmPK)

createCrmContact

public void createCrmContact(CrmContact contact)

deleteCrmContact

public void deleteCrmContact(com.stratelia.webactiv.util.WAPrimaryKey pk)

updateCrmContact

public void updateCrmContact(CrmContact contact)

getCrmContact

public CrmContact getCrmContact(com.stratelia.webactiv.util.WAPrimaryKey contactPK)

createIndex

public void createIndex(CrmContact contact)

createIndex

public void createIndex(Crm crm)

getCrmParticipants

public List<CrmParticipant> getCrmParticipants(com.stratelia.webactiv.util.WAPrimaryKey crmPK)

createCrmParticipant

public void createCrmParticipant(CrmParticipant participant)

deleteCrmParticipant

public void deleteCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey pk)

updateCrmParticipant

public void updateCrmParticipant(CrmParticipant participant)

getCrmParticipant

public CrmParticipant getCrmParticipant(com.stratelia.webactiv.util.WAPrimaryKey participantPK)

createIndex

public void createIndex(CrmParticipant participant)

getCrmEvents

public List<CrmEvent> getCrmEvents(com.stratelia.webactiv.util.WAPrimaryKey crmPK)

getEventVOs

public List<EventVO> getEventVOs()

getContactVOs

public List<ContactVO> getContactVOs()

getParticipantVOs

public List<ParticipantVO> getParticipantVOs()

getDeliveryVOs

public List<DeliveryVO> getDeliveryVOs()

createCrmEvent

public void createCrmEvent(CrmEvent event)

deleteCrmEvent

public void deleteCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey pk)

updateCrmEvent

public void updateCrmEvent(CrmEvent event)

getCrmEvent

public CrmEvent getCrmEvent(com.stratelia.webactiv.util.WAPrimaryKey eventPK)

createIndex

public void createIndex(CrmEvent event)

getCrmDeliverys

public List<CrmDelivery> getCrmDeliverys(com.stratelia.webactiv.util.WAPrimaryKey crmPK)

createCrmDelivery

public void createCrmDelivery(CrmDelivery delivery)

deleteCrmDelivery

public void deleteCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey pk)

updateCrmDelivery

public void updateCrmDelivery(CrmDelivery delivery)

getCrmDelivery

public CrmDelivery getCrmDelivery(com.stratelia.webactiv.util.WAPrimaryKey deliveryPK)

createIndex

public void createIndex(CrmDelivery delivery)

communInitUserPanel

protected com.stratelia.silverpeas.selection.Selection communInitUserPanel(String compoName,
                                                                           String operation)

initUserPanelParticipant

public String initUserPanelParticipant()

initUserPanelEvent

public String initUserPanelEvent()

initUserPanelDelivery

public String initUserPanelDelivery()

userPanelReturn

public void userPanelReturn()

setParticipantId

public void setParticipantId(String participantId)

setParticipantEmail

public void setParticipantEmail(String participantEmail)

setParticipantActif

public void setParticipantActif(String participantActif)

setEventId

public void setEventId(String eventId)

setEventState

public void setEventState(String eventState)

setEventLib

public void setEventLib(String eventLib)

setEventDate

public void setEventDate(String eventDate)

setActionDate

public void setActionDate(String actionDate)

setActionTodo

public void setActionTodo(String actionTodo)

setFilterLib

public void setFilterLib(String filterLib)

setFilterId

public void setFilterId(String filterId)

setFunction

public void setFunction(String function)

getFilterLib

public String getFilterLib()

getFilterId

public String getFilterId()

getFunction

public String getFunction()

getParticipantId

public String getParticipantId()

getParticipantEmail

public String getParticipantEmail()

getParticipantActif

public String getParticipantActif()

getEventId

public String getEventId()

getEventState

public String getEventState()

getEventLib

public String getEventLib()

getEventDate

public String getEventDate()

getActionDate

public String getActionDate()

getActionTodo

public String getActionTodo()

setDeliveryId

public void setDeliveryId(String deliveryId)

setDeliveryDate

public void setDeliveryDate(String deliveryDate)

setDeliveryElement

public void setDeliveryElement(String deliveryElement)

setDeliveryVersion

public void setDeliveryVersion(String deliveryVersion)

setDeliveryContact

public void setDeliveryContact(int deliveryContact)

setDeliveryMedia

public void setDeliveryMedia(String deliveryMedia)

getDeliveryId

public String getDeliveryId()

getDeliveryDate

public String getDeliveryDate()

getDeliveryElement

public String getDeliveryElement()

getDeliveryVersion

public String getDeliveryVersion()

getDeliveryContact

public int getDeliveryContact()

getDeliveryMedia

public String getDeliveryMedia()

getContactName

public String getContactName(com.stratelia.webactiv.util.WAPrimaryKey crmPK,
                             int contactId)

getLibMedia

public String getLibMedia(String media)

getLibState

public String getLibState(String eventState)

getLibFunction

public String getLibFunction(String participantFunction)

getFunctions

public Collection<String[]> getFunctions()

getStates

public Collection<String[]> getStates()

getMedias

public Collection<String[]> getMedias()

getValue

public String getValue(String index,
                       String[] tabContents)

getContacts

public Collection<String[]> getContacts()

getDate

public String getDate(String date)
Parameters:
date - The date corresponding to the user's language (dd/mm/yyyy or mm/dd/yyyy)
Returns:
The equivalent yyyy/mm/dd date

getDisplayDate

public String getDisplayDate(String date)
Parameters:
date - a yyyy/mm/dd date
Returns:
The formatted date corresponding to the user's language (dd/mm/yyyy or mm/dd/yyyy)

getCurrentCrm

public Crm getCurrentCrm()


Copyright © 2016 Silverpeas. All Rights Reserved.