|
||||||||||
| 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. |
void |
autoLoadFormsFromXmlStreams(java.lang.String intervalUnit,
int intervalValue,
java.lang.Integer hour,
java.lang.Integer minute)
Regularly retrieves the information from all the xml streams and create new forms |
Session |
bindForms(Session session)
Binds all queryMaker with the forms found by their queries and not already sent. |
java.util.List<Status> |
createDefaultStatuses()
Creation of default status Warn, dont use it otherwise for vradi initialisation !!! |
Session |
createNewSession()
|
java.util.List<Sending> |
createSending(Session session,
QueryMaker queryMaker,
java.util.List<Form> formsToBind)
Create new Sending |
VradiUser |
createUser(VradiUser user)
Create a VradiUser. |
java.lang.String |
exportAsCSV(org.nuiton.wikitty.Criteria criteria)
Get csv export. |
java.lang.String |
exportClientDB()
Export all the clients, users and groups in database |
java.util.Map<QueryMaker,java.util.List<QueryBean>> |
findQueriesReturningForm(Form form)
Computes a list of queries returning the specified Form. |
java.lang.String |
generatePDF(Form form,
boolean force)
Generate pdf file for specified form. |
void |
generatePDFForSession(java.lang.String sessionId)
Generate all the PDFs needed to send a session. |
java.util.List<java.lang.String> |
getAllWebHarvestScripts()
Get all WebHarvest script name in server's WebHarvest directory. |
java.util.Map<java.lang.String,java.lang.String> |
getAssociatedFields(java.lang.String extensionName,
java.lang.String templateName)
Get association between template fields and extension fields. |
java.util.List<java.lang.String> |
getDocumentFields(org.nuiton.wikitty.WikittyExtension extension,
java.lang.String templateName)
Get template document fields names. |
int[] |
getFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
Creates and store forms from an WebHarvestXmlStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
int[] |
getFormsFromXmlStream(XmlStream xmlStream)
Creates and store forms from an XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields. |
org.nuiton.wikitty.WikittyExtension |
getFormType(java.lang.String name)
Returns a form type with the specified name. |
java.util.Map<java.lang.String,org.nuiton.wikitty.FieldType> |
getFormTypeFields(java.lang.String name)
Finds fields of a form type. |
java.util.List<Group> |
getGroupsForUser(java.lang.String userId)
Get all the groups a user is in. |
Session |
getLastCloseSession()
Get last closed session |
Session |
getLastOpenSession()
Get last opened session |
java.util.Map<Group,java.util.List<QueryBean>> |
getQueriesToModifyAfterThesaurusModification(java.lang.String rootThesaurusName,
java.lang.String thesaurusName)
Gets the query makers whose queries are potentially to modify after a thesaurus node modification |
java.util.List<Session> |
getSessions(java.util.Date sessionDate)
Get all session by date |
Status |
getStatus(VradiConstants.FormStatus formStatus)
Get the status passed in parameter. |
java.util.Collection<java.lang.String> |
getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
Lists the template filename (simple name) associated with the specified extension. |
java.lang.String |
getWebHarvestPreviewURL(WebHarvestStream stream)
Get web harvest preview url from script |
java.lang.String[] |
getXmlStreamConfig()
|
void |
importAsCSV(java.lang.String uri)
Import all data as CSV. |
VradiUser |
loginUser(java.lang.String login,
java.lang.String md5Password)
Checks if userName and userPassword matches a valid VradiUser. |
java.util.List<Thesaurus> |
proposeThesaurus(Form form)
Propose thesaurus nodes that might be in relation with a specified form |
void |
receiveMessages()
|
void |
reindexData()
Reindex the datas. |
java.util.List<Sending> |
removeAllSending(Session session,
Form form,
QueryMaker queryMaker)
Remove all sending corresponding with form and query maker from session |
Sending |
sendMessage(java.lang.String sendingId,
java.lang.String sessionParagraph)
|
Sending |
sendMessage(java.lang.String sendingId,
java.lang.String sessionParagraph,
java.lang.String email)
|
Session |
sendMessages(java.lang.String sessionId)
|
void |
setAssociatedFields(java.lang.String extensionName,
java.lang.String templateName,
java.util.Map<java.lang.String,java.lang.String> fieldMap)
Save association between template fields and extensions fields. |
Session |
stopSentMail(Session session)
|
| Method Detail |
|---|
java.util.List<Status> createDefaultStatuses()
throws VradiException
VradiException
java.util.Map<java.lang.String,org.nuiton.wikitty.FieldType> getFormTypeFields(java.lang.String name)
throws VradiException
name - the name of the form type
VradiException
org.nuiton.wikitty.WikittyExtension getFormType(java.lang.String name)
throws VradiException
name.
name - the name of the form type
WikittyExtension
VradiException
Session bindForms(Session session)
throws VradiException
VradiException
java.util.List<Sending> createSending(Session session,
QueryMaker queryMaker,
java.util.List<Form> formsToBind)
throws VradiException
session - queryMaker - formsToBind -
VradiException
Session createNewSession()
throws VradiException
VradiException
java.util.List<Session> getSessions(java.util.Date sessionDate)
throws VradiException
sessionDate - Date concerned
VradiException
Session getLastCloseSession()
throws VradiException
VradiException
Session getLastOpenSession()
throws VradiException
VradiException
int[] getFormsFromWebHarvestStream(WebHarvestStream webHarvestStream)
throws VradiException
WebHarvestXmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
webHarvestStream - the web harvest xml stream to execute
VradiException - for various possible errors
int[] getFormsFromXmlStream(XmlStream xmlStream)
throws VradiException
XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
xmlStream - the xml stream to read
VradiException - for various possible errors
java.util.Map<QueryMaker,java.util.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(java.lang.String login,
java.lang.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(java.lang.String uri)
throws VradiException
uri - uri used to read input stream
VradiException - if any error happen during import
java.lang.String exportAsCSV(org.nuiton.wikitty.Criteria criteria)
throws VradiException
criteria - export criteria
VradiException - if any error happen during export
void reindexData()
throws VradiException
VradiException
java.util.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
VradiException
void autoLoadFormsFromXmlStreams(java.lang.String intervalUnit,
int intervalValue,
java.lang.Integer hour,
java.lang.Integer minute)
throws VradiException
intervalUnit - unit of te interval between 2 retrievings (minute, hour or day)intervalValue - interval value between two retrievingshour - hour of the retrieving if the unit is dayminute - of the retrieving if the unit is day or hour
VradiExceptionjava.util.Collection<java.lang.String> getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
WikittyExtension
doesn't have a files fields.
extension -
void setAssociatedFields(java.lang.String extensionName,
java.lang.String templateName,
java.util.Map<java.lang.String,java.lang.String> fieldMap)
throws VradiException
extensionName - templateName - fieldMap -
VradiException
java.util.Map<java.lang.String,java.lang.String> getAssociatedFields(java.lang.String extensionName,
java.lang.String templateName)
throws VradiException
extensionName - templateName -
null is there is no association yet
VradiException
java.lang.String generatePDF(Form form,
boolean force)
throws VradiException
form - form to generate pdfforce - force regeneration
VradiException
java.util.Map<Group,java.util.List<QueryBean>> getQueriesToModifyAfterThesaurusModification(java.lang.String rootThesaurusName,
java.lang.String thesaurusName)
rootThesaurusName - the modified root thesaurus name nodethesaurusName - the modified thesaurus name node
java.util.List<Sending> removeAllSending(Session session,
Form form,
QueryMaker queryMaker)
throws VradiException
session - concernedform - concernedqueryMaker - concerned
VradiException
java.lang.String getWebHarvestPreviewURL(WebHarvestStream stream)
throws VradiException
stream -
VradiException
java.util.List<java.lang.String> getDocumentFields(org.nuiton.wikitty.WikittyExtension extension,
java.lang.String templateName)
throws VradiException
extension - extensiontemplateName - template name
VradiException
Session sendMessages(java.lang.String sessionId)
throws VradiException
VradiException
Sending sendMessage(java.lang.String sendingId,
java.lang.String sessionParagraph)
throws VradiException
VradiException
Sending sendMessage(java.lang.String sendingId,
java.lang.String sessionParagraph,
java.lang.String email)
throws VradiException
VradiException
void receiveMessages()
throws VradiException
VradiException
Session stopSentMail(Session session)
throws VradiException
VradiExceptionjava.lang.String[] getXmlStreamConfig()
java.util.List<java.lang.String> getAllWebHarvestScripts()
void generatePDFForSession(java.lang.String sessionId)
sessionId - the session wikitty id
java.util.List<Group> getGroupsForUser(java.lang.String userId)
throws VradiException
userId - the user we want the groups of
VradiException
java.lang.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||