com.jurismarches.vradi.ui.email
Class EmailHandler

java.lang.Object
  extended by com.jurismarches.vradi.ui.email.EmailHandler

public class EmailHandler
extends Object

Handler de l'UI de gestion des email.

Author:
morin

Nested Class Summary
protected  class EmailHandler.RemoveAllFormFromSession
           
protected  class EmailHandler.RemoveFormFromSession
           
protected  class EmailHandler.RemoveFormFromSessionForUser
           
 
Constructor Summary
EmailHandler()
           
 
Method Summary
 void addAllGroupSending(JPanel ui, Session session, Form bean, List values)
           
 void addAllGroupSending(JPanel ui, Session session, List<Form> beanList, List values)
           
 void addAllUserSending(QueryMakerViewUI ui, Session session, Form bean, List values)
           
 void addAllUserSending(QueryMakerViewUI ui, Session session, List<Form> beanList, List values)
           
 void addGroupSending(JPanel ui, Session session, Form form, Object selected)
           
 void addGroupSending(JPanel ui, Session session, Form form, Object selected, boolean ask)
           
protected  void addGroupSending(JPanel ui, Session session, List<Form> forms, Object selected)
           
protected  void addGroupSending(JPanel ui, Session session, List<Form> forms, Object selected, boolean ask)
           
 void addUserSending(JPanel ui, Session session, Form form, Object selected)
           
protected  void addUserSending(JPanel ui, Session session, Form form, Object selected, boolean ask)
           
 void addUserSending(JPanel ui, Session session, List<Form> forms, Object selected)
           
protected  void addUserSending(JPanel ui, Session session, List<Form> forms, Object selected, boolean ask)
           
protected  boolean askAbordSending(EmailPopupUI ui, String msg)
           
protected  boolean askToAddGroups(JPanel ui, String formAsString, String groupAsString)
           
protected  boolean askToAddUsers(JPanel ui, String formAsString, String userAsString)
           
protected  boolean askToRemoveAllForm(JPanel ui, String formAsString)
           
protected  boolean askToRemoveUserForm(JPanel ui, String userName, String formAsString)
           
 void bindEmailsWithForms(EmailPopupUI ui)
          Lien les formulaires non lié sur la session selectionnée.
protected  boolean checkAllSending(EmailPopupUI ui, Session session)
           
protected  void close(jaxx.runtime.JAXXContext context)
           
 void createNewSession(EmailPopupUI ui)
          Creer une nouvelle session.
 void deleteSession(EmailPopupUI ui)
          Close selected session in tree.
 void displayForm(jaxx.runtime.JAXXContext context, VradiTreeNode node)
           
 void displaySession(jaxx.runtime.JAXXContext context, EmailNavigationTreeHelper helper, VradiTreeNode node)
           
 MouseListener getOfferListTableMouseListener(SendingViewUI ui)
          Implementation du click (droit/gauche) sur la table des offres résultats/ Comportement : double clic : ouvre l'offre clic droit : changer le status, ajouter a une session de mail
 org.nuiton.wikitty.WikittyProxy getProxy()
           
protected  List<Form> getSendingForms(Sending sending)
          Recupere la liste des form pou un sending.
protected  Sending getSendingForUser(Session session, String userId)
           
protected  List<Sending> getSendingList(Session session)
           
protected  Session getSessionBySending(String sendingId)
           
 List<Session> getSessions(Date date)
           
 SessionViewUI getSessionsListUI(jaxx.runtime.JAXXContext context)
           
 SendingViewUI getSessionViewUI(jaxx.runtime.JAXXContext context)
           
 VradiStorageService getStorageService()
           
protected  List<String> getStringAsList(String s)
           
 EmailPopupUI getUI(jaxx.runtime.JAXXContext context)
           
protected  String getUserName(Sending sending)
           
 EmailPopupUI init(jaxx.runtime.JAXXContext rootContext)
           
protected  void openUI(jaxx.runtime.JAXXContext context, jaxx.runtime.swing.CardLayout2 contentLayout, JPanel content, VradiTreeNode node)
          Open UI depending on node type.
protected  void reloadTree(EmailPopupUI ui)
           
 void removeGroupSending(JPanel ui, Session session, Form form, Object[] selecteds)
           
 void removeGroupSending(JPanel ui, Session session, List<Form> forms, Object[] selecteds)
           
 void removeUserSending(JPanel ui, Session session, Form form, Object[] selecteds)
           
protected  void removeUserSending(JPanel ui, Session session, Form form, Object[] selecteds, boolean ask)
           
 void removeUserSending(JPanel ui, Session session, List<Form> forms, Object[] selecteds)
           
protected  void removeUserSending(JPanel ui, Session session, List<Form> forms, Object[] selecteds, boolean ask)
           
protected  void selectOffer(jaxx.runtime.JAXXContext context, JTable listTable)
           
 boolean send(EmailPopupUI ui)
          Called to send a full session.
 void sendSending(SendingViewUI ui, Sending sending)
          Called to send only one simple sending.
protected  void showOfferListContextMenu(SendingViewUI ui, org.jdesktop.swingx.JXTable table, OfferListTableModel model, MouseEvent e)
          Le menu contextuel lors d'un clic droit sur la table.
 void updateParagraph(Sending sending, String text)
           
 void updateReceptionProof(Sending sending, boolean isSelected)
           
 Sending updateSendingStatus(Sending sending, VradiConstants.SendingStatus status)
           
 Session updateSessionStatus(Session session, VradiConstants.SessionStatus status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailHandler

public EmailHandler()
Method Detail

init

public EmailPopupUI init(jaxx.runtime.JAXXContext rootContext)

getUI

public EmailPopupUI getUI(jaxx.runtime.JAXXContext context)

getSessionsListUI

public SessionViewUI getSessionsListUI(jaxx.runtime.JAXXContext context)

getSessionViewUI

public SendingViewUI getSessionViewUI(jaxx.runtime.JAXXContext context)

getStorageService

public VradiStorageService getStorageService()

getProxy

public org.nuiton.wikitty.WikittyProxy getProxy()

close

protected void close(jaxx.runtime.JAXXContext context)

getSessions

public List<Session> getSessions(Date date)

createNewSession

public void createNewSession(EmailPopupUI ui)
Creer une nouvelle session.


bindEmailsWithForms

public void bindEmailsWithForms(EmailPopupUI ui)
Lien les formulaires non lié sur la session selectionnée.

Parameters:
ui - ui

getSendingForms

protected List<Form> getSendingForms(Sending sending)
Recupere la liste des form pou un sending.

Parameters:
sending -
Returns:

openUI

protected void openUI(jaxx.runtime.JAXXContext context,
                      jaxx.runtime.swing.CardLayout2 contentLayout,
                      JPanel content,
                      VradiTreeNode node)
Open UI depending on node type.

Parameters:
context -
dataProvider -
contentLayout -
content -
node -

displaySession

public void displaySession(jaxx.runtime.JAXXContext context,
                           EmailNavigationTreeHelper helper,
                           VradiTreeNode node)

getOfferListTableMouseListener

public MouseListener getOfferListTableMouseListener(SendingViewUI ui)
Implementation du click (droit/gauche) sur la table des offres résultats/ Comportement :

Returns:
le mouse listener

showOfferListContextMenu

protected void showOfferListContextMenu(SendingViewUI ui,
                                        org.jdesktop.swingx.JXTable table,
                                        OfferListTableModel model,
                                        MouseEvent e)
Le menu contextuel lors d'un clic droit sur la table.

Parameters:
offerListUI - l'ui d'origine
e - event du clic

askToRemoveUserForm

protected boolean askToRemoveUserForm(JPanel ui,
                                      String userName,
                                      String formAsString)

askToRemoveAllForm

protected boolean askToRemoveAllForm(JPanel ui,
                                     String formAsString)

selectOffer

protected void selectOffer(jaxx.runtime.JAXXContext context,
                           JTable listTable)

displayForm

public void displayForm(jaxx.runtime.JAXXContext context,
                        VradiTreeNode node)

addAllUserSending

public void addAllUserSending(QueryMakerViewUI ui,
                              Session session,
                              Form bean,
                              List values)

addAllUserSending

public void addAllUserSending(QueryMakerViewUI ui,
                              Session session,
                              List<Form> beanList,
                              List values)

addUserSending

public void addUserSending(JPanel ui,
                           Session session,
                           List<Form> forms,
                           Object selected)

addUserSending

protected void addUserSending(JPanel ui,
                              Session session,
                              List<Form> forms,
                              Object selected,
                              boolean ask)

addUserSending

public void addUserSending(JPanel ui,
                           Session session,
                           Form form,
                           Object selected)

addUserSending

protected void addUserSending(JPanel ui,
                              Session session,
                              Form form,
                              Object selected,
                              boolean ask)

askToAddUsers

protected boolean askToAddUsers(JPanel ui,
                                String formAsString,
                                String userAsString)

removeUserSending

public void removeUserSending(JPanel ui,
                              Session session,
                              List<Form> forms,
                              Object[] selecteds)

removeUserSending

protected void removeUserSending(JPanel ui,
                                 Session session,
                                 List<Form> forms,
                                 Object[] selecteds,
                                 boolean ask)

removeUserSending

public void removeUserSending(JPanel ui,
                              Session session,
                              Form form,
                              Object[] selecteds)

removeUserSending

protected void removeUserSending(JPanel ui,
                                 Session session,
                                 Form form,
                                 Object[] selecteds,
                                 boolean ask)

addAllGroupSending

public void addAllGroupSending(JPanel ui,
                               Session session,
                               Form bean,
                               List values)

addAllGroupSending

public void addAllGroupSending(JPanel ui,
                               Session session,
                               List<Form> beanList,
                               List values)

addGroupSending

protected void addGroupSending(JPanel ui,
                               Session session,
                               List<Form> forms,
                               Object selected)

addGroupSending

protected void addGroupSending(JPanel ui,
                               Session session,
                               List<Form> forms,
                               Object selected,
                               boolean ask)

addGroupSending

public void addGroupSending(JPanel ui,
                            Session session,
                            Form form,
                            Object selected)

addGroupSending

public void addGroupSending(JPanel ui,
                            Session session,
                            Form form,
                            Object selected,
                            boolean ask)

askToAddGroups

protected boolean askToAddGroups(JPanel ui,
                                 String formAsString,
                                 String groupAsString)

removeGroupSending

public void removeGroupSending(JPanel ui,
                               Session session,
                               List<Form> forms,
                               Object[] selecteds)

removeGroupSending

public void removeGroupSending(JPanel ui,
                               Session session,
                               Form form,
                               Object[] selecteds)

reloadTree

protected void reloadTree(EmailPopupUI ui)

sendSending

public void sendSending(SendingViewUI ui,
                        Sending sending)
Called to send only one simple sending.

Parameters:
ui - parent ui
sending - sending to send

send

public boolean send(EmailPopupUI ui)
Called to send a full session. Don't call without VradiSessionDTO selection !

Parameters:
ui - parent ui
Returns:
true if task has been

checkAllSending

protected boolean checkAllSending(EmailPopupUI ui,
                                  Session session)

askAbordSending

protected boolean askAbordSending(EmailPopupUI ui,
                                  String msg)

updateSendingStatus

public Sending updateSendingStatus(Sending sending,
                                   VradiConstants.SendingStatus status)

updateSessionStatus

public Session updateSessionStatus(Session session,
                                   VradiConstants.SessionStatus status)

getUserName

protected String getUserName(Sending sending)

deleteSession

public void deleteSession(EmailPopupUI ui)
Close selected session in tree. Don't call it if no session is selected

Parameters:
ui - parent ui

updateReceptionProof

public void updateReceptionProof(Sending sending,
                                 boolean isSelected)

updateParagraph

public void updateParagraph(Sending sending,
                            String text)

getSendingList

protected List<Sending> getSendingList(Session session)

getSendingForUser

protected Sending getSendingForUser(Session session,
                                    String userId)

getSessionBySending

protected Session getSessionBySending(String sendingId)

getStringAsList

protected List<String> getStringAsList(String s)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.