|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VradiStorageService
Vradi storage service. This service is intended to be used in remote mode. Typical usage is code that can be run only on server :
| Method Summary | |
|---|---|
void |
archiveQueries(QueryMaker queryMaker)
Archives the queries of a user, client or group in a RSS file. |
Session |
bindForms(Session session)
Binds all queryMaker with the forms found by their queries and not already sent. |
boolean |
checkTemplateExist(String extensionName)
Check if template file form extension name in param |
List<Sending> |
createAllSending(String sessionId,
Group group,
List<String> formsIdsToBind)
Create new Sending |
List<Status> |
createDefaultStatuses()
Create all default status. |
Session |
createNewSession()
|
Sending |
createSending(String sessionId,
User user,
List<String> formsIdsToBind)
Create new Sending |
VradiUser |
createUser(VradiUser user)
Create a VradiUser. |
void |
deleteSession(String sessionId)
Delete session and sending associated This method return a VradiException if session to delete is not active |
String |
exportAsCSV(org.nuiton.wikitty.Criteria criteria)
Get csv export. |
String |
exportClientDB()
Export all the clients, users and groups in database |
String |
generatePDF(String formId,
boolean force)
Generate pdf file for specified form. |
void |
generatePDFForSession(String sessionId)
Generate all the PDFs needed to send a session. |
Map<String,String> |
getAssociatedFields(String extensionName,
String templateName)
Get association between template fields and extension fields. |
List<String> |
getDocumentFields(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
Get template document fields names. |
void |
importAsCSV(String uri)
Import all data as CSV. |
XmlStreamImportResult |
importFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
Creates and store forms from an WebHarvestXmlStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
XmlStreamImportResult |
importFormsFromXmlStream(XmlStream xmlStream)
Creates and store forms from an XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
VradiUser |
loginUser(String login,
String md5Password)
Checks if userName and userPassword matches a valid VradiUser. |
void |
receiveMessages()
|
void |
reindexData()
Reindex the datas. |
List<Sending> |
removeAllSending(String sessionId,
List<String> formsIds,
Group group)
Remove all sending corresponding with form and group from session |
boolean |
removeFormsFromSession(String session,
List<String> formsIds)
Check if template file form extension name in param |
Sending |
removeSending(String sessionId,
List<String> formsIds,
User user)
Remove sending corresponding with form and user from session |
Sending |
revertDeletion(String sendingId,
List<String> formsIdsToUpdate)
Method call to revert froms deleted in sending |
List<Sending> |
revertGroupDeletion(String sessionId,
String groupId,
String formId)
Revert forms deleted for group |
Sending |
revertUserDeletion(String sessionId,
String userId,
String formId)
Revert forms deleted for user |
String |
sendMessage(String sendingId,
String sessionParagraph)
Send sending pass in param to sending user email |
String |
sendMessage(String sendingId,
String sessionParagraph,
String email)
Send sending pass in param to specific email |
String |
sendMessages(String sessionId)
Send session pass in param |
void |
setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
Save association between template fields and extensions fields. |
Session |
stopSentMail(Session session)
|
| Method Detail |
|---|
List<Status> createDefaultStatuses()
throws VradiException
VradiException
Session bindForms(Session session)
throws VradiException
VradiException
List<Sending> createAllSending(String sessionId,
Group group,
List<String> formsIdsToBind)
throws VradiException
session - group - formsIdsToBind -
VradiException
Sending createSending(String sessionId,
User user,
List<String> formsIdsToBind)
throws VradiException
session - user - formsIdsToBind -
VradiException
Session createNewSession()
throws VradiException
VradiException
XmlStreamImportResult importFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
throws VradiException
WebHarvestXmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
Input xmlStream is modified by this method (wikitty obselete).
webHarvestStream - stream to import
VradiException - for various possible errors
Map<String,String> getAssociatedFields(String extensionName,
String templateName)
throws VradiException
extensionName - templateName -
null is there is no association yet
VradiException
XmlStreamImportResult importFormsFromXmlStream(XmlStream xmlStream)
throws VradiException
XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
Input xmlStream is modified by this method (wikitty obselete).
xmlStream - stream to import
VradiException - for various possible errors
VradiUser createUser(VradiUser user)
throws VradiException
VradiUser.
user - the user to create
null if user can't be created (already exists)
VradiException
VradiUser loginUser(String login,
String md5Password)
throws VradiException
userName and userPassword matches a valid VradiUser.
login - the login of a WikittyUsermd5Password - the password of a WikittyUser (md5 encoded)
WikittyUser or null if either userName or userPassword don't match
VradiException
void importAsCSV(String uri)
throws VradiException
uri - uri used to read input stream
VradiException - if any error happen during import
String exportAsCSV(org.nuiton.wikitty.Criteria criteria)
throws VradiException
criteria - export criteria
VradiException - if any error happen during export
void reindexData()
throws VradiException
VradiException
void archiveQueries(QueryMaker queryMaker)
throws VradiException
queryMaker - the query maker whose queries are archived
VradiException
void setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
throws VradiException
extensionName - templateName - fieldMap -
VradiException
String generatePDF(String formId,
boolean force)
throws VradiException
formId - form id to generate pdfforce - force regeneration
VradiException
List<Sending> removeAllSending(String sessionId,
List<String> formsIds,
Group group)
throws VradiException
session - concernedformsIds - concernedqueryMaker - concerned
VradiException
Sending removeSending(String sessionId,
List<String> formsIds,
User user)
throws VradiException
session - concernedformsIds - concernedqueryMaker - concerned
VradiException
List<String> getDocumentFields(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
throws VradiException
extension - extensiontemplateName - template name
VradiException
String sendMessages(String sessionId)
throws VradiException
sessionId - session id concerned
VradiException - exception is occured
String sendMessage(String sendingId,
String sessionParagraph)
throws VradiException
sendingId - sending id concernedsessionParagraph - paragraph to send
VradiException - exception is occured
String sendMessage(String sendingId,
String sessionParagraph,
String email)
throws VradiException
sendingId - sending id concernedsessionParagraph - paragraph to sendemail - specific
VradiException - exception is occured
void receiveMessages()
throws VradiException
VradiException
Session stopSentMail(Session session)
throws VradiException
VradiException
void generatePDFForSession(String sessionId)
throws VradiException
sessionId - the session wikitty id
VradiException
String exportClientDB()
throws VradiException
VradiException - if any error happen during export
void deleteSession(String sessionId)
throws VradiException
VradiException if session to delete is not active
sessionId - to delete
VradiException - if an error occur during session deletion
boolean checkTemplateExist(String extensionName)
throws VradiException
extensionName - to check
VradiException - if an error occur during checking template
boolean removeFormsFromSession(String session,
List<String> formsIds)
throws VradiException
formsIds - to update
VradiException - if an error occur during checking template
Sending revertDeletion(String sendingId,
List<String> formsIdsToUpdate)
sendingId - to updateformsIdsToUpdate - deleted to revert
Sending revertUserDeletion(String sessionId,
String userId,
String formId)
sessionId - session concerneduserId - user concernedformId - form to revert
List<Sending> revertGroupDeletion(String sessionId,
String groupId,
String formId)
sessionId - session concernedgroupId - user concernedformId - form to revert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||