org.chorem.vradi.ui.email
Class EmailHandler

java.lang.Object
  extended by org.chorem.vradi.ui.email.EmailHandler

public class EmailHandler
extends Object

Handler de l'UI de gestion des email.

Author:
morin

Constructor Summary
EmailHandler()
           
 
Method Summary
 void addAllGroupSending(jaxx.runtime.JAXXContext context, Session session, List<String> beanList, List values)
           
 void addAllGroupSending(jaxx.runtime.JAXXContext context, Session session, String formId, List values)
           
 void addAllUserSending(QueryMakerViewUI ui, Session session, List<String> formsIds, List values)
           
 void addAllUserSending(QueryMakerViewUI ui, Session session, String formId, List values)
           
 File addAttachmentFile(MultipleSelectionPane ui, Session session)
          Add new attachement file.
protected  void addGroupSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object selected)
           
protected  void addGroupSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object selected, boolean ask)
           
 void addGroupSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object selected)
           
 void addGroupSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object selected, boolean ask)
           
 void addUserSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsId, Object selected)
           
protected  void addUserSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object selected, boolean ask)
           
 void addUserSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object selected)
           
protected  void addUserSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object selected, boolean ask)
           
protected  boolean askAbordSending(EmailPopupUI ui, String msg)
           
protected  boolean askGroupRevert(JPanel ui, String formAsString, String userAsString)
           
protected  boolean askToAddGroups(jaxx.runtime.JAXXContext context, String formAsString, String groupAsString)
           
protected  boolean askToAddUsers(jaxx.runtime.JAXXContext context, String formAsString, String userAsString)
           
 boolean askToRemoveAllForm(JPanel ui, String formAsString)
           
 boolean askToRemoveUserForm(JPanel ui, String userName, String formAsString)
           
protected  boolean askUserRevert(JPanel ui, String formAsString, String userAsString)
           
 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)
           
 VradiDataService getDataService()
           
 org.nuiton.wikitty.WikittyProxy getProxy()
           
protected  Sending getSendingForUser(Session session, String userId)
           
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)
           
 List<String> removeAttachmentFile(Session session, List<String> filesNamesToRemove)
          Remove attachement.
 void removeGroupSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object[] selecteds)
           
 void removeGroupSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object[] selecteds)
           
 void removeUserSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object[] selecteds)
           
 void removeUserSending(jaxx.runtime.JAXXContext context, Session session, List<String> formsIds, Object[] selecteds, boolean ask)
           
 void removeUserSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object[] selecteds)
           
protected  void removeUserSending(jaxx.runtime.JAXXContext context, Session session, String formId, Object[] selecteds, boolean ask)
           
 void revertDeletion(SendingViewUI ui, Sending sending, List<String> formsIdsToUpdate)
           
 void revertGroupDeletion(QueryMakerViewUI<?> ui, Session session, Group group, String formToRevert)
           
protected  void revertGroupDeletion(QueryMakerViewUI<?> ui, Session session, Group group, String formToRevert, boolean ask)
           
 void revertGroupDeletion(QueryMakerViewUI<?> ui, Session session, String formId, Object[] selectedValues)
           
 void revertUserDeletion(QueryMakerViewUI<?> ui, Session session, String formId, Object[] selectedValues)
           
 void revertUserDeletion(QueryMakerViewUI<?> ui, Session session, User user, String formToRevert)
           
protected  void revertUserDeletion(QueryMakerViewUI<?> ui, Session session, User user, String formToRevert, boolean ask)
           
 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.
 void updateParagraph(Sending sending, String text)
           
 void updateReceptionProof(Sending sending, boolean isSelected)
           
 Sending updateSendingStatus(Sending sending, VradiConstants.SendingStatus 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()

getDataService

public VradiDataService getDataService()

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.

Parameters:
ui - email ui

bindEmailsWithForms

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

Parameters:
ui - ui

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 - JaxxContext
contentLayout - Layout of content
content - in layout
node - to display

displaySession

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

askToRemoveUserForm

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

askToRemoveAllForm

public boolean askToRemoveAllForm(JPanel ui,
                                  String formAsString)

revertDeletion

public void revertDeletion(SendingViewUI ui,
                           Sending sending,
                           List<String> formsIdsToUpdate)

revertUserDeletion

public void revertUserDeletion(QueryMakerViewUI<?> ui,
                               Session session,
                               String formId,
                               Object[] selectedValues)

revertUserDeletion

public void revertUserDeletion(QueryMakerViewUI<?> ui,
                               Session session,
                               User user,
                               String formToRevert)

revertUserDeletion

protected void revertUserDeletion(QueryMakerViewUI<?> ui,
                                  Session session,
                                  User user,
                                  String formToRevert,
                                  boolean ask)

revertGroupDeletion

public void revertGroupDeletion(QueryMakerViewUI<?> ui,
                                Session session,
                                String formId,
                                Object[] selectedValues)

revertGroupDeletion

public void revertGroupDeletion(QueryMakerViewUI<?> ui,
                                Session session,
                                Group group,
                                String formToRevert)

revertGroupDeletion

protected void revertGroupDeletion(QueryMakerViewUI<?> ui,
                                   Session session,
                                   Group group,
                                   String formToRevert,
                                   boolean ask)

askUserRevert

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

askGroupRevert

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

selectOffer

public 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,
                              String formId,
                              List values)

addAllUserSending

public void addAllUserSending(QueryMakerViewUI ui,
                              Session session,
                              List<String> formsIds,
                              List values)

addUserSending

public void addUserSending(jaxx.runtime.JAXXContext context,
                           Session session,
                           List<String> formsId,
                           Object selected)

addUserSending

protected void addUserSending(jaxx.runtime.JAXXContext context,
                              Session session,
                              List<String> formsIds,
                              Object selected,
                              boolean ask)

addUserSending

public void addUserSending(jaxx.runtime.JAXXContext context,
                           Session session,
                           String formId,
                           Object selected)

addUserSending

protected void addUserSending(jaxx.runtime.JAXXContext context,
                              Session session,
                              String formId,
                              Object selected,
                              boolean ask)

askToAddUsers

protected boolean askToAddUsers(jaxx.runtime.JAXXContext context,
                                String formAsString,
                                String userAsString)

removeUserSending

public void removeUserSending(jaxx.runtime.JAXXContext context,
                              Session session,
                              List<String> formsIds,
                              Object[] selecteds)

removeUserSending

public void removeUserSending(jaxx.runtime.JAXXContext context,
                              Session session,
                              List<String> formsIds,
                              Object[] selecteds,
                              boolean ask)

removeUserSending

public void removeUserSending(jaxx.runtime.JAXXContext context,
                              Session session,
                              String formId,
                              Object[] selecteds)

removeUserSending

protected void removeUserSending(jaxx.runtime.JAXXContext context,
                                 Session session,
                                 String formId,
                                 Object[] selecteds,
                                 boolean ask)

addAllGroupSending

public void addAllGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               String formId,
                               List values)

addAllGroupSending

public void addAllGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               List<String> beanList,
                               List values)

addGroupSending

protected void addGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               List<String> formsIds,
                               Object selected)

addGroupSending

protected void addGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               List<String> formsIds,
                               Object selected,
                               boolean ask)

addGroupSending

public void addGroupSending(jaxx.runtime.JAXXContext context,
                            Session session,
                            String formId,
                            Object selected)

addGroupSending

public void addGroupSending(jaxx.runtime.JAXXContext context,
                            Session session,
                            String formId,
                            Object selected,
                            boolean ask)

askToAddGroups

protected boolean askToAddGroups(jaxx.runtime.JAXXContext context,
                                 String formAsString,
                                 String groupAsString)

removeGroupSending

public void removeGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               List<String> formsIds,
                               Object[] selecteds)

removeGroupSending

public void removeGroupSending(jaxx.runtime.JAXXContext context,
                               Session session,
                               String formId,
                               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)

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)

getSendingForUser

protected Sending getSendingForUser(Session session,
                                    String userId)

getSessionBySending

protected Session getSessionBySending(String sendingId)

getStringAsList

protected List<String> getStringAsList(String s)

addAttachmentFile

public File addAttachmentFile(MultipleSelectionPane ui,
                              Session session)
Add new attachement file.

Parameters:
context -

removeAttachmentFile

public List<String> removeAttachmentFile(Session session,
                                         List<String> filesNamesToRemove)
Remove attachement.

TODO EC20100609 really remove physical file too on server

Parameters:
context - parent ui


Copyright © 2009-2011 CodeLutin. All Rights Reserved.