|
||||||||||
| 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(Session session,
Group group,
List<Form> formsToBind)
Create new Sending |
List<Status> |
createDefaultStatuses()
Creation of default status Warn, dont use it otherwise for vradi initialisation !!! |
Session |
createNewSession()
|
Sending |
createSending(Session session,
User user,
List<Form> formsToBind)
Create new Sending |
VradiUser |
createUser(VradiUser user)
Create a VradiUser. |
void |
deleteClient(String clientId)
Delete client, users associated and user groups association |
void |
deleteGroup(String groupId)
Delete group |
void |
deleteSession(String sessionId)
Delete session and sending associated This method return a VradiException if session to delete is not active |
boolean |
deleteStatus(List<String> statusIds)
Delete status if no form is use this |
void |
deleteUser(String userId)
Delete users, and groups association |
String |
exportAsCSV(org.nuiton.wikitty.Criteria criteria)
Get csv export. |
String |
exportClientDB()
Export all the clients, users and groups in database |
Map<Group,List<QueryBean>> |
findQueriesReturningForm(Form form)
Computes a list of queries returning the specified Form. |
String |
generatePDF(Form form,
boolean force)
Generate pdf file for specified form. |
void |
generatePDFForSession(String sessionId)
Generate all the PDFs needed to send a session. |
List<String> |
getAllWebHarvestScripts()
Get all WebHarvest script name in server's WebHarvest directory. |
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. |
org.nuiton.wikitty.WikittyExtension |
getFormType(String name)
Returns a form type with the specified name. |
Map<String,org.nuiton.wikitty.FieldType> |
getFormTypeFields(String name)
Finds fields of a form type. |
List<Group> |
getGroupsForUser(String userId)
Get all the groups a user is in. |
Session |
getLastCloseSession()
Get last closed session |
Session |
getLastOpenSession()
Get last opened session |
Map<Group,List<QueryBean>> |
getQueriesToModifyAfterThesaurusModification(String rootThesaurusName,
String thesaurusName)
Gets the query makers whose queries are potentially to modify after a thesaurus node modification |
Session |
getSessionOfSending(String sendingId)
Get session contain sending |
List<Session> |
getSessions(Date sessionDate)
Get all session by date |
Status |
getStatus(VradiConstants.FormStatus formStatus)
Get the status passed in parameter. |
Collection<String> |
getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
Lists the template filename (simple name) associated with the specified extension. |
String |
getWebHarvestPreviewURL(WebHarvestStream stream)
Get web harvest preview url from script |
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. |
List<Thesaurus> |
proposeThesaurus(Form form)
Propose thesaurus nodes that might be in relation with a specified form |
void |
receiveMessages()
|
void |
reindexData()
Reindex the datas. |
List<Sending> |
removeAllSending(Session session,
Form form,
Group group)
Remove all sending corresponding with form and group from session |
boolean |
removeFormsFromSession(List<Form> forms)
Check if template file form extension name in param |
Sending |
removeSending(Session session,
Form form,
User user)
Remove sending corresponding with form and user from session |
Sending |
sendMessage(String sendingId,
String sessionParagraph)
|
Sending |
sendMessage(String sendingId,
String sessionParagraph,
String email)
|
Session |
sendMessages(String sessionId)
|
void |
setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
Save association between template fields and extensions fields. |
Session |
stopSentMail(Session session)
|
| Method Detail |
|---|
void deleteClient(String clientId)
throws VradiException
clientId - to delete
VradiException
void deleteUser(String userId)
throws VradiException
userId - to delete
VradiException
void deleteGroup(String groupId)
throws VradiException
groupId - to delete
VradiException
List<Status> createDefaultStatuses()
throws VradiException
VradiException
Map<String,org.nuiton.wikitty.FieldType> getFormTypeFields(String name)
throws VradiException
name - the name of the form type
VradiException
org.nuiton.wikitty.WikittyExtension getFormType(String name)
throws VradiException
name.
name - the name of the form type
WikittyExtension
VradiException
Session bindForms(Session session)
throws VradiException
VradiException
List<Sending> createAllSending(Session session,
Group group,
List<Form> formsToBind)
throws VradiException
session - group - formsToBind -
VradiException
Sending createSending(Session session,
User user,
List<Form> formsToBind)
throws VradiException
session - user - formsToBind -
VradiException
Session createNewSession()
throws VradiException
VradiException
List<Session> getSessions(Date sessionDate)
throws VradiException
sessionDate - Date concerned
VradiException
Session getLastCloseSession()
throws VradiException
VradiException
Session getLastOpenSession()
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
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
Map<Group,List<QueryBean>> findQueriesReturningForm(Form form)
throws VradiException
Form.
form - the form which match queries
VradiException
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
List<Thesaurus> proposeThesaurus(Form form)
throws VradiException
form - the Form containing the information needed
to search the thesaurus nodes
Thesaurus
VradiException
void archiveQueries(QueryMaker queryMaker)
throws VradiException
queryMaker - the query maker whose queries are archived
VradiExceptionCollection<String> getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
WikittyExtension
doesn't have a files fields.
extension -
void setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
throws VradiException
extensionName - templateName - fieldMap -
VradiException
Map<String,String> getAssociatedFields(String extensionName,
String templateName)
throws VradiException
extensionName - templateName -
null is there is no association yet
VradiException
String generatePDF(Form form,
boolean force)
throws VradiException
form - form to generate pdfforce - force regeneration
VradiException
Map<Group,List<QueryBean>> getQueriesToModifyAfterThesaurusModification(String rootThesaurusName,
String thesaurusName)
rootThesaurusName - the modified root thesaurus name nodethesaurusName - the modified thesaurus name node
List<Sending> removeAllSending(Session session,
Form form,
Group group)
throws VradiException
session - concernedform - concernedqueryMaker - concerned
VradiException
Sending removeSending(Session session,
Form form,
User user)
throws VradiException
session - concernedform - concernedqueryMaker - concerned
VradiException
String getWebHarvestPreviewURL(WebHarvestStream stream)
throws VradiException
stream -
VradiException
List<String> getDocumentFields(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
throws VradiException
extension - extensiontemplateName - template name
VradiException
Session sendMessages(String sessionId)
throws VradiException
VradiException
Sending sendMessage(String sendingId,
String sessionParagraph)
throws VradiException
VradiException
Sending sendMessage(String sendingId,
String sessionParagraph,
String email)
throws VradiException
VradiException
void receiveMessages()
throws VradiException
VradiException
Session stopSentMail(Session session)
throws VradiException
VradiExceptionList<String> getAllWebHarvestScripts()
void generatePDFForSession(String sessionId)
sessionId - the session wikitty id
List<Group> getGroupsForUser(String userId)
throws VradiException
userId - the user we want the groups of
VradiException
String exportClientDB()
throws VradiException
VradiException - if any error happen during export
Status getStatus(VradiConstants.FormStatus formStatus)
throws VradiException
formStatus - the status from enum
VradiException - if an error occur during statuses initialisation
Session getSessionOfSending(String sendingId)
throws VradiException
sendingId - concerned
VradiException - if an error occur
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 deleteStatus(List<String> statusIds)
throws VradiException
statusIds - to delete
VradiException - is occured if status deletion is aborded
boolean checkTemplateExist(String extensionName)
throws VradiException
extensionName - to check
VradiException - if an error occur during checking template
boolean removeFormsFromSession(List<Form> forms)
throws VradiException
forms - to update
VradiException - if an error occur during checking template
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||