com.jurismarches.vradi.services.managers
Class FormManager

java.lang.Object
  extended by com.jurismarches.vradi.services.managers.FormManager

public class FormManager
extends Object

Class containing the methods to manage the forms : - creation, update, deletion, retrieving - binding forms with clients whose queries are returning the forms

Version:
$Revision: 898 $ $Date: 2010-05-10 22:41:47 +0200 (lun., 10 mai 2010) $
Author:
schorlet

Constructor Summary
FormManager(ThesaurusManager thesaurusManager, SearchManager searchManager)
           
FormManager(org.sharengo.wikitty.WikittyProxy proxy, ThesaurusManager thesaurusManager, SearchManager searchManager)
           
 
Method Summary
protected  List<Sending> addEmptyClientSending(Session currentSession, List<Sending> toSend)
           
 void bindForms()
           
 List<Sending> createAllSending(Session currentSession, QueryMaker queryMaker, List<? extends Form> formsToBind, boolean removeAlreadyBind)
           
 void deleteForm(String formId)
           
 void deleteStatuses(List<String> statusIds)
           
protected  List<Sending> executeQueries(Session currentSession)
           
 Sending findExistingOrCreateSending(Session currentSession, QueryMaker queryMaker)
           
 List<Form> getAllForms()
           
 List<Status> getAllStatuses()
           
 Form getForm(String formId)
           
 List<Form> getForms(List<String> formIds)
           
 Session getLastOpenSession()
           
 Status getNonSelectionneStatus()
           
 Status getNonTraiteStatus()
           
protected  Date getOlderInscriptionDate(QueryMaker queryMaker)
           
 Status getPreselectionneStatus()
           
 Status getSelectionneStatus()
           
 List<Session> getSessions(Date sessionDate)
           
 Status getStatus(String statusId)
           
 List<Status> getStatuses(List<String> statusIds)
           
 List<Sending> removeAllSending(Session session, Form form, QueryMaker queryMaker)
           
protected  List<? extends Form> removeAlreadyBound(List<? extends Form> forms, QueryMaker queryMaker)
           
 Form updateForm(Form form)
           
 List<Form> updateForms(List<Form> forms)
           
 Status updateStatus(Status status)
           
 List<Status> updateStatuses(List<Status> statuses)
           
 void uploadAttachments(Form form, List<File> attachments)
          Deprecated. can't use non serializable parameters with hessian
 void uploadFiles(Form form, List<File> files)
          Deprecated. can't use non serializable parameters with hessian
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormManager

public FormManager(org.sharengo.wikitty.WikittyProxy proxy,
                   ThesaurusManager thesaurusManager,
                   SearchManager searchManager)

FormManager

public FormManager(ThesaurusManager thesaurusManager,
                   SearchManager searchManager)
Method Detail

getAllForms

public List<Form> getAllForms()

getForms

public List<Form> getForms(List<String> formIds)

getForm

public Form getForm(String formId)

deleteForm

public void deleteForm(String formId)

updateForm

public Form updateForm(Form form)
                throws VradiException
Throws:
VradiException

updateForms

public List<Form> updateForms(List<Form> forms)
                       throws VradiException
Throws:
VradiException

getLastOpenSession

public Session getLastOpenSession()

getSessions

public List<Session> getSessions(Date sessionDate)

bindForms

public void bindForms()
               throws VradiException
Throws:
VradiException

executeQueries

protected List<Sending> executeQueries(Session currentSession)
                                throws VradiException
Throws:
VradiException

addEmptyClientSending

protected List<Sending> addEmptyClientSending(Session currentSession,
                                              List<Sending> toSend)

getOlderInscriptionDate

protected Date getOlderInscriptionDate(QueryMaker queryMaker)

createAllSending

public List<Sending> createAllSending(Session currentSession,
                                      QueryMaker queryMaker,
                                      List<? extends Form> formsToBind,
                                      boolean removeAlreadyBind)

removeAllSending

public List<Sending> removeAllSending(Session session,
                                      Form form,
                                      QueryMaker queryMaker)

findExistingOrCreateSending

public Sending findExistingOrCreateSending(Session currentSession,
                                           QueryMaker queryMaker)

removeAlreadyBound

protected List<? extends Form> removeAlreadyBound(List<? extends Form> forms,
                                                  QueryMaker queryMaker)

getStatus

public Status getStatus(String statusId)
                 throws VradiException
Throws:
VradiException

getStatuses

public List<Status> getStatuses(List<String> statusIds)
                         throws VradiException
Throws:
VradiException

getAllStatuses

public List<Status> getAllStatuses()
                            throws VradiException
Throws:
VradiException

getNonTraiteStatus

public Status getNonTraiteStatus()

getNonSelectionneStatus

public Status getNonSelectionneStatus()

getPreselectionneStatus

public Status getPreselectionneStatus()

getSelectionneStatus

public Status getSelectionneStatus()

updateStatuses

public List<Status> updateStatuses(List<Status> statuses)
                            throws VradiException
Throws:
VradiException

updateStatus

public Status updateStatus(Status status)
                    throws VradiException
Throws:
VradiException

deleteStatuses

public void deleteStatuses(List<String> statusIds)
                    throws VradiException
Throws:
VradiException

uploadFiles

@Deprecated
public void uploadFiles(Form form,
                                   List<File> files)
                 throws IOException
Deprecated. can't use non serializable parameters with hessian

Parameters:
form -
files -
Throws:
IOException

uploadAttachments

@Deprecated
public void uploadAttachments(Form form,
                                         List<File> attachments)
                       throws IOException
Deprecated. can't use non serializable parameters with hessian

Parameters:
form -
attachments -
Throws:
IOException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.