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: 474 $ $Date: 2010-02-07 10:52:07 +0100 (dim., 07 févr. 2010) $
Author:
schorlet

Field Summary
static String DEFAULT_SENDING_PARAGRAPH
          default value of the sending paragraph : cannot be null or empty to be able to look for it in the solr index
static int DEFAULT_SENDING_STATUS
          default value of the sending status
static SimpleDateFormat FORM_ID_DATE_FORMAT
          Form Id date format
static String TO_TREAT_STATUS_DESCRIPTION
           
static String TO_TREAT_STATUS_NAME
           
static int TO_TREAT_STATUS_VALUE
           
static String VALIDATED_STATUS_DESCRIPTION
           
static String VALIDATED_STATUS_NAME
           
static int VALIDATED_STATUS_VALUE
           
 
Constructor Summary
FormManager(ClientManager clientManager, ThesaurusManager thesaurusManager, SearchManager searchManager)
           
FormManager(org.sharengo.wikitty.WikittyProxy proxy, ClientManager clientManager, ThesaurusManager thesaurusManager, SearchManager searchManager)
           
 
Method Summary
 void bindFormsToClients()
           
 void deleteForm(String formId)
           
 void deleteStatuses(List<String> statusIds)
           
 List<Form> getAllForms()
           
 List<Status> getAllStatuses()
           
 Map<Form,List<Client>> getClientsByForms(String dateType, Date beginDate, Date endDate, org.sharengo.wikitty.WikittyExtension extension)
           
 Form getForm(String formId)
           
 List<Form> getForms(List<String> formIds)
           
 List<VradiSendingDTO> getFormsByClients(String dateType, Date beginDate, Date endDate, org.sharengo.wikitty.WikittyExtension extension, Boolean receptionProof, Boolean paragraph, int status)
           
 Status getStatus(String statusId)
           
 List<Status> getStatuses(List<String> statusIds)
           
 Status getToTreatStatus()
           
 Status getValidatedStatus()
           
 Form updateForm(Form form)
           
 List<Form> updateForms(List<Form> forms)
           
 Status updateStatus(Status status)
           
 List<Status> updateStatuses(List<Status> statuses)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TO_TREAT_STATUS_NAME

public static final String TO_TREAT_STATUS_NAME

TO_TREAT_STATUS_DESCRIPTION

public static final String TO_TREAT_STATUS_DESCRIPTION

VALIDATED_STATUS_NAME

public static final String VALIDATED_STATUS_NAME

VALIDATED_STATUS_DESCRIPTION

public static final String VALIDATED_STATUS_DESCRIPTION

TO_TREAT_STATUS_VALUE

public static final int TO_TREAT_STATUS_VALUE
See Also:
Constant Field Values

VALIDATED_STATUS_VALUE

public static final int VALIDATED_STATUS_VALUE
See Also:
Constant Field Values

FORM_ID_DATE_FORMAT

public static final SimpleDateFormat FORM_ID_DATE_FORMAT
Form Id date format


DEFAULT_SENDING_STATUS

public static final int DEFAULT_SENDING_STATUS
default value of the sending status

See Also:
Constant Field Values

DEFAULT_SENDING_PARAGRAPH

public static final String DEFAULT_SENDING_PARAGRAPH
default value of the sending paragraph : cannot be null or empty to be able to look for it in the solr index

See Also:
Constant Field Values
Constructor Detail

FormManager

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

FormManager

public FormManager(ClientManager clientManager,
                   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 TechnicalException
Throws:
TechnicalException

updateForms

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

getClientsByForms

public Map<Form,List<Client>> getClientsByForms(String dateType,
                                                Date beginDate,
                                                Date endDate,
                                                org.sharengo.wikitty.WikittyExtension extension)

getFormsByClients

public List<VradiSendingDTO> getFormsByClients(String dateType,
                                               Date beginDate,
                                               Date endDate,
                                               org.sharengo.wikitty.WikittyExtension extension,
                                               Boolean receptionProof,
                                               Boolean paragraph,
                                               int status)
                                        throws TechnicalException
Throws:
TechnicalException

bindFormsToClients

public void bindFormsToClients()

getStatus

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

getStatuses

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

getAllStatuses

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

getToTreatStatus

public Status getToTreatStatus()

getValidatedStatus

public Status getValidatedStatus()

updateStatuses

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

updateStatus

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

deleteStatuses

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


Copyright © 2009-2010 JurisMarches. All Rights Reserved.