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

Constructor Summary
EmailHandler()
           
 
Method Summary
<E extends QueryMaker>
void
addQueryMaker(JPanel ui, Session session, Form form, E selected)
           
<E extends QueryMaker>
void
addQueryMaker(JPanel ui, Session session, List<Form> forms, E selected)
           
protected  boolean askAbordSending(EmailPopupUI ui, String msg)
           
 void bindEmailsWithForms(EmailPopupUI ui)
          Lien les formulaires non lié sur la session selectionnée.
 void cancelSession(EmailPopupUI ui)
          Close selected session in tree.
protected  boolean checkAllSending(EmailPopupUI ui, Session session)
           
protected  void close(jaxx.runtime.JAXXContext context)
           
 void createNewSession(EmailPopupUI ui)
          Creer une nouvelle session.
 void displayForm(jaxx.runtime.JAXXContext context, EmailNavigationTreeHelper helper, VradiTreeNode node)
           
 void displaySessions(jaxx.runtime.JAXXContext context, EmailNavigationTreeHelper helper, VradiTreeNode node)
           
 org.nuiton.wikitty.WikittyProxy getProxy()
           
protected  String getQueryMakerName(Sending sending)
           
protected
<E extends QueryMaker>
QueryMaker
getRealQueryMaker(E toConvert)
           
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)
           
 SessionsListUI getSessionsListUI(jaxx.runtime.JAXXContext context)
           
 VradiStorageService getStorageService()
           
protected  List<String> getStringAsList(String s)
           
 EmailPopupUI getUI(jaxx.runtime.JAXXContext context)
           
protected  List<User> getUserOfClient(String clientId)
           
 EmailPopupUI init(jaxx.runtime.JAXXContext rootContext)
           
protected  void openUI(jaxx.runtime.JAXXContext context, VradiDataProvider dataProvider, jaxx.runtime.swing.CardLayout2 contentLayout, JPanel content, VradiTreeNode node)
          Open UI depending on node type.
protected  void reloadTree(EmailPopupUI ui)
           
<E extends QueryMaker>
void
removeQueryMaker(JPanel ui, Session session, Form form, Class<E> clazz, Object[] selecteds)
           
<E extends QueryMaker>
void
removeQueryMaker(JPanel ui, Session session, List<Form> forms, Class<E> clazz, Object[] selecteds)
           
 boolean send(EmailPopupUI ui)
          Called to send a full session.
 void sendSending(SessionViewUI ui, Sending sending)
          Called to send only one simple sending.
 void updateParagraph(Session session, Sending sending, String text)
           
 void updateReceptionProof(Session session, 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 SessionsListUI getSessionsListUI(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,
                      VradiDataProvider dataProvider,
                      jaxx.runtime.swing.CardLayout2 contentLayout,
                      JPanel content,
                      VradiTreeNode node)
Open UI depending on node type.

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

displaySessions

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

displayForm

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

addQueryMaker

public <E extends QueryMaker> void addQueryMaker(JPanel ui,
                                                 Session session,
                                                 List<Form> forms,
                                                 E selected)

addQueryMaker

public <E extends QueryMaker> void addQueryMaker(JPanel ui,
                                                 Session session,
                                                 Form form,
                                                 E selected)

removeQueryMaker

public <E extends QueryMaker> void removeQueryMaker(JPanel ui,
                                                    Session session,
                                                    List<Form> forms,
                                                    Class<E> clazz,
                                                    Object[] selecteds)

removeQueryMaker

public <E extends QueryMaker> void removeQueryMaker(JPanel ui,
                                                    Session session,
                                                    Form form,
                                                    Class<E> clazz,
                                                    Object[] selecteds)

reloadTree

protected void reloadTree(EmailPopupUI ui)

getRealQueryMaker

protected <E extends QueryMaker> QueryMaker getRealQueryMaker(E toConvert)

sendSending

public void sendSending(SessionViewUI 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)

getQueryMakerName

protected String getQueryMakerName(Sending sending)

cancelSession

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

Parameters:
ui - parent ui

updateReceptionProof

public void updateReceptionProof(Session session,
                                 Sending sending,
                                 boolean isSelected)

updateParagraph

public void updateParagraph(Session session,
                            Sending sending,
                            String text)

getSendingList

protected List<Sending> getSendingList(Session session)

getUserOfClient

protected List<User> getUserOfClient(String clientId)

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.