|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.FormManager
public class FormManager
Class containing the methods to manage the forms : - creation, update, deletion, retrieving - binding forms with clients whose queries are returning the forms
| Field Summary | |
|---|---|
protected SearchManager |
searchManager
|
protected ThesaurusManager |
thesaurusManager
|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
|
| Constructor Summary | |
|---|---|
FormManager(org.nuiton.wikitty.WikittyProxy wikittyProxy,
ThesaurusManager thesaurusManager,
SearchManager searchManager)
|
|
| Method Summary | |
|---|---|
Session |
bindForms(Session currentSession)
Recherche tous les formulaires non lié et les lie à la session demandée. |
protected Session |
closeSessionIfNoMoreError(Session session)
Try to close session if rest no error |
List<Sending> |
createAllSending(String currentSessionId,
Group group,
List<String> formsIdsToBind)
|
List<Status> |
createDefaultStatuses()
|
protected Sending |
createNewSending(User user)
|
Session |
createNewSession()
Crée une nouvelle session initialisée. |
protected Sending |
createUserSending(Session currentSession,
Group groupConcerned,
User user,
List<String> formsIdsToBind)
|
Sending |
createUserSending(String currentSessionId,
User user,
List<String> formsIdsToBind)
|
void |
deleteSession(String sessionId)
|
boolean |
deleteStatuses(List<String> statusIds)
|
protected Sending |
findExistingOrCreateSending(List<Sending> sendings,
User user)
Recherche dans la session l'object sending qui correspond au query maker donné ou en crée une nouvelle s'il n'a pas été trouvé. |
protected Sending |
findExistingOrCreateSending(Session currentSession,
User user)
Recherche dans la session l'object sending qui correspond au query maker donné ou en crée une nouvelle s'il n'a pas été trouvé. |
protected static String |
getBeginOfDaySolrDate(Date date)
Retourne la date a minuit au format solr. |
protected static String |
getEndOfDaySolrDate(Date date)
Retourne la date a 23h59:59.999 au format solr. |
Session |
getLastCloseSession()
|
Session |
getLastOpenSession()
|
Status |
getNonSelectionneStatus()
|
Status |
getNonTraiteStatus()
|
protected Date |
getOlderInscriptionDate(Set<String> usersIds)
Retourne la plus ancienne date du query maker si c'est une date ou des user gu groupe si c'est un groupe. |
protected Status |
getOrCreateStatus(VradiConstants.FormStatus type)
|
Status |
getPreselectionneStatus()
|
Status |
getSelectionneStatus()
|
Session |
getSessionOfSending(String sendingId)
|
List<Session> |
getSessions(Date sessionDate)
Find all session for specific date. |
Status |
getStatus(String statusId)
|
List<Status> |
getStatuses(List<String> statusIds)
|
protected List<User> |
getUsersOfClient(String clientId)
|
List<Sending> |
removeAllSending(String sessionId,
List<String> formsIds,
Group group)
|
protected List<Form> |
removeAlreadyBound(Session currentSession,
List<Form> forms,
User user)
Retourne la liste forms d'origine en ayant filtré les formulaires
qui ont déja été lié. |
boolean |
removeFormsFromSession(String sessionId,
List<String> formsIds)
Check if template file form extension name in param |
protected List<Form> |
removeNotConcernedForms(Sending sending,
User user,
List<Form> finalFormsToBind)
|
protected Sending |
removeSending(String sessionId,
List<String> formsIds,
Group group,
User user)
|
Sending |
removeSending(String sessionId,
List<String> formsIds,
User user)
|
protected List<Sending> |
resetSendings(Session currentSession)
|
Sending |
revertDeletion(String sendingId,
List<String> formsIdsToUpdate)
|
protected Sending |
revertDeletion(String sendingId,
String groupId,
List<String> formsIdsToUpdate,
boolean save)
|
List<Sending> |
revertGroupDeletion(String sessionId,
String groupId,
String formId)
|
Sending |
revertUserDeletion(String sessionId,
String userId,
String formId)
|
protected Sending |
revertUserDeletion(String sessionId,
String groupId,
String userId,
String formId,
boolean save)
|
List<Form> |
updateForms(List<Form> forms,
Set<String> thesaurus)
Update forms and attach forms to specified thesaurus. |
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 |
|---|
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
protected ThesaurusManager thesaurusManager
protected SearchManager searchManager
| Constructor Detail |
|---|
public FormManager(org.nuiton.wikitty.WikittyProxy wikittyProxy,
ThesaurusManager thesaurusManager,
SearchManager searchManager)
| Method Detail |
|---|
public List<Form> updateForms(List<Form> forms,
Set<String> thesaurus)
throws VradiException
forms - forms to savethesaurus - thesaurus to attach form to (set empty set to clear thesaurus, null = no thesaurus management)
VradiException - if exception occuredpublic Session getLastCloseSession()
public Session getLastOpenSession()
throws VradiException
VradiException
public List<Session> getSessions(Date sessionDate)
throws VradiException
sessionDate - session date
VradiException - if exception occured
protected static String getBeginOfDaySolrDate(Date date)
throws VradiException
date -
VradiException
protected static String getEndOfDaySolrDate(Date date)
throws VradiException
date -
VradiException
public Session createNewSession()
throws VradiException
VradiException
public Session bindForms(Session currentSession)
throws VradiException
currentSession - session a remplir
VradiException
protected List<Sending> resetSendings(Session currentSession)
throws VradiException
VradiException
protected List<Form> removeNotConcernedForms(Sending sending,
User user,
List<Form> finalFormsToBind)
protected List<Form> removeAlreadyBound(Session currentSession,
List<Form> forms,
User user)
forms d'origine en ayant filtré les formulaires
qui ont déja été lié.
currentSession - forms - queryMaker -
protected Date getOlderInscriptionDate(Set<String> usersIds)
queryMaker - queryMaker
public List<Sending> createAllSending(String currentSessionId,
Group group,
List<String> formsIdsToBind)
public Sending createUserSending(String currentSessionId,
User user,
List<String> formsIdsToBind)
protected Sending createUserSending(Session currentSession,
Group groupConcerned,
User user,
List<String> formsIdsToBind)
public List<Sending> removeAllSending(String sessionId,
List<String> formsIds,
Group group)
throws VradiException
VradiException
public Sending removeSending(String sessionId,
List<String> formsIds,
User user)
throws VradiException
VradiException
protected Sending removeSending(String sessionId,
List<String> formsIds,
Group group,
User user)
throws VradiException
VradiException
public boolean removeFormsFromSession(String sessionId,
List<String> formsIds)
throws VradiException
forms - to remove
VradiException
protected Sending findExistingOrCreateSending(Session currentSession,
User user)
currentSession - queryMaker -
protected Sending findExistingOrCreateSending(List<Sending> sendings,
User user)
currentSession - queryMaker -
protected Sending createNewSending(User user)
public Sending revertDeletion(String sendingId,
List<String> formsIdsToUpdate)
protected Sending revertDeletion(String sendingId,
String groupId,
List<String> formsIdsToUpdate,
boolean save)
public Sending revertUserDeletion(String sessionId,
String userId,
String formId)
protected Sending revertUserDeletion(String sessionId,
String groupId,
String userId,
String formId,
boolean save)
public List<Sending> revertGroupDeletion(String sessionId,
String groupId,
String formId)
protected Session closeSessionIfNoMoreError(Session session)
session - to close
public void deleteSession(String sessionId)
throws VradiException
VradiException
public Session getSessionOfSending(String sendingId)
throws VradiException
VradiException
public Status getStatus(String statusId)
throws VradiException
VradiException
public List<Status> getStatuses(List<String> statusIds)
throws VradiException
VradiException
public List<Status> createDefaultStatuses()
throws VradiException
VradiExceptionpublic Status getNonTraiteStatus()
public Status getNonSelectionneStatus()
public Status getPreselectionneStatus()
public Status getSelectionneStatus()
protected Status getOrCreateStatus(VradiConstants.FormStatus type)
public List<Status> updateStatuses(List<Status> statuses)
throws VradiException
VradiException
public Status updateStatus(Status status)
throws VradiException
VradiException
public boolean deleteStatuses(List<String> statusIds)
throws VradiException
VradiExceptionprotected List<User> getUsersOfClient(String clientId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||