com.jurismarches.vradi.services
Interface VradiStorageService

All Known Implementing Classes:
VradiStorageServiceImpl

public interface VradiStorageService

VradiStorageService.

Version:
$Revision: 890 $ $Date: 2010-05-10 17:16:48 +0200 (lun., 10 mai 2010) $
Author:
morin

Method Summary
 File addTemplate(org.sharengo.wikitty.WikittyExtension extension, File template)
          Deprecated. can't use non serializable parameters with hessian
 void archiveQueries(QueryMaker queryMaker)
          Archives the queries of a user, client or group in a RSS file.
 void autoLoadFormsFromXmlStreams(String intervalUnit, int intervalValue, Integer hour, Integer minute)
          Regularly retrieves the information from all the xml streams and create new forms
 void bindForms()
          Binds all queryMaker with the forms found by their queries and not already sent.
 List<Sending> createSending(Session session, QueryMaker queryMaker, List<Form> formsToBind)
          Create new Sending
 void deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
          Delete the specified BusinessEntity.
 void deleteEntity(String id)
          Delete the specified BusinessEntity by id.
 void deleteForm(String formId)
          Deletes a Form by the specified formId.
 void deleteStatus(String statusId)
          Deletes a Status.
 void deleteStatuses(List<String> statusIds)
          Deletes a list of Status.
 String exportAsCSV(org.sharengo.wikitty.Criteria criteria)
          Get csv export.
 String exportData()
          Export the datas into an XML format.
 VradiFormPageDTO findForms(String query, VradiFormPageDTO formPageDTO)
          Searches for forms with the specified query.
 VradiFormPageDTO findForms2(String query, org.sharengo.wikitty.WikittyExtension extension, String dateType, Date beginDate, Date endDate, List<String>[] thesaurus, String[] statusIds, VradiFormPageDTO formPageDTO)
          Searches for forms with the specified filters.
 Map<QueryMaker,List<VradiQueryBean>> findQueriesReturningForm(Form form)
          Computes a list of queries returning the specified Form.
 List<Client> getAllClients()
          Returns all the clients.
 List<Form> getAllForms()
          Returns all Forms.
 List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
          Returns all Form Types.
 List<Group> getAllGroups()
          Returns all the groups.
 List<Status> getAllStatuses()
          Returns all Status.
 List<org.sharengo.wikitty.TreeNodeImpl> getAllThesaurus()
          Returns all TreeNodeImpl considered as thesaurus nodes.
 List<VradiUserDTO> getAllUserDTOs()
          Returns all the Users.
 List<User> getAllUsers()
          Returns all the Users.
 List<XmlStream> getAllXmlStreams()
          Returns all XmlStreams.
 Map<String,String> getAssociatedFields(String extensionName, String templateName)
           
 List<org.sharengo.wikitty.TreeNodeImpl> getChildrenThesaurus(String thesaurusId)
          Returns all children of the specified thesaurusId.
 Client getClient(String clientId)
          Returns a Client with the specified clientId.
 Client getClientByUserId(String userId)
          Returns a Client whose specified userId belongs.
 List<User> getClientUsers(String clientId)
          Deprecated. since 20100507 unused
<E extends org.sharengo.wikitty.BusinessEntity>
List<E>
getEntities(List<String> ids, Class<E> clazz)
          Returns the BusinessEntity of the specified ids and clazz.
<E extends org.sharengo.wikitty.BusinessEntity>
E
getEntity(String id, Class<E> clazz)
          Returns a BusinessEntity of the specified id and clazz.
 Form getForm(String formId)
          Returns a Form with the specified formId.
 List<Form> getForms(List<String> formIds)
          Returns all the Forms with the specified list of formIds.
 int[] getFormsFromXmlStream(XmlStream xmlStream, VradiUser vradiUser)
          Creates and store forms from an XmlStream by using the XmlStreamBinding to link xml stream field values with form fields.
 org.sharengo.wikitty.WikittyExtension getFormType(String name)
          Returns a form type with the specified name.
 Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
          Finds fields of a form type.
 Group getGroup(String groupId)
          Returns a Group with the specified groupId.
 List<Client> getGroupClients(String groupId)
          Returns a list of Clients belonging to the specified groupId.
 List<User> getGroupUsers(String groupId)
          Returns a list of Users belonging to the specified groupId.
 int getNbFormsForThesaurus(String thesaurusId)
          Computes the number of forms associated with the specified thesaurusId.
 Map<QueryMaker,List<VradiQueryBean>> getQueriesToModifyAfterThesaurusModification(String thesaurusName)
          Gets the query makers whose queries are potentially to modify after a thesaurus node modification
 String getQueryHistoryFile(String id)
          Return the last part of the query history file, eg. queryHistory/ff4bb261-d6b2-42b3-be24-ab14e95cb244.rss.
 org.sharengo.wikitty.TreeNodeImpl getRootThesaurus()
          Returns the root Thesaurus Node.
 List<Session> getSessions(Date sessionDate)
          Get all session by date
 Status getStatus(String statusId)
          Returns a Status with the specified statusId.
 List<Status> getStatuses(List<String> statusIds)
          Returns a list of Status with the specified statusIds.
 File getTemplate(String extensionName, String templateName)
          Deprecated. can't use non serializable parameters with hessian
 File[] getTemplates(org.sharengo.wikitty.WikittyExtension extension)
          Deprecated. can't use non serializable parameters with hessian
 org.sharengo.wikitty.TreeNodeImpl getThesaurus(String thesaurusId)
          Returns a TreeNodeImpl with the specified thesaurusId.
 VradiCartographyDTO getThesaurusCartography(String query, org.sharengo.wikitty.WikittyExtension extension, String dateType, Date beginDate, Date endDate, List<String>[] thesaurus, String[] statusIds)
          Computes the number of forms associated with every thesaurus node.
 User getUser(String userId)
          Returns a User with the specified userId.
 XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
          Returns a XmlFieldBinding with the specified xmlFieldBindingId.
 List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
          Returns a list of XmlFieldBinding belonging to the specified xmlStream.
 XmlStream getXmlStream(String xmlStreamId)
          Returns a XmlStream with the specified xmlStreamId.
 void importAsCSV(String uri)
          Import all data as CSV.
 void importData(File file)
          Import data from an XML file.
 VradiUser logVradiUser(String userName, String userPassword)
          Checks if userName and userPassword matches a valid VradiUser.
 List<org.sharengo.wikitty.TreeNodeImpl> proposeThesaurus(Form form, List<org.sharengo.wikitty.TreeNodeImpl> thesaurus)
          Propose thesaurus nodes that might be in relation with a specified form
 void reindexData()
          Reindex the datas.
 List<Sending> removeAllSending(Session session, Form form, QueryMaker queryMaker)
           
 void setAssociatedFields(String extensionName, String templateName, Map<String,String> fieldMap)
           
<E extends org.sharengo.wikitty.BusinessEntity>
E[]
updateEntities(E... entities)
          Updates the specified BusinessEntity.
<E extends org.sharengo.wikitty.BusinessEntity>
List<E>
updateEntities(List<E> entities)
          Updates the specified BusinessEntity.
<E extends org.sharengo.wikitty.BusinessEntity>
E
updateEntity(E entity)
          Updates the specified BusinessEntity.
 Form updateForm(Form form)
          Creates or Update the specified form.
 List<Form> updateForms(List<Form> forms)
          Create or Update a list of Forms.
 org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
          Creates or Update a form type.
 org.sharengo.wikitty.WikittyExtension updateFormType2(String name, Map<String,org.sharengo.wikitty.FieldType> fields, String requires, Map<String,String> tagValues)
          Creates or Update a form type.
 void updateSendings(List<Sending> sendings)
          Update a list of Sending.
 Status updateStatus(Status status)
          Updates a Status.
 List<Status> updateStatuses(List<Status> statuses)
          Updates a list of Status.
 VradiUser updateVradiUser(VradiUser vradiUser)
          Updates a VradiUser.
 List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
          Update a list of XmlFieldBinding.
 XmlStream updateXmlStream(XmlStream xmlStream, List<XmlFieldBinding> bindings)
           
 void uploadAttachments(Form form, List<File> attachments)
          Deprecated. can't use non serializable parameters with hessian
 void uploadFiles(Form form, List<File> files)
          Deprecated. can't use non serializable parameters with hessian
 

Method Detail

getEntity

<E extends org.sharengo.wikitty.BusinessEntity> E getEntity(String id,
                                                            Class<E> clazz)
                                                        throws VradiException
Returns a BusinessEntity of the specified id and clazz.

Parameters:
id - the id of the entity
clazz - the class of the entity
Returns:
a BusinessEntity
Throws:
VradiException

getEntities

<E extends org.sharengo.wikitty.BusinessEntity> List<E> getEntities(List<String> ids,
                                                                    Class<E> clazz)
                                                                throws VradiException
Returns the BusinessEntity of the specified ids and clazz.

Parameters:
ids - the id of the entities
clazz - the class of the entity
Returns:
a BusinessEntity
Throws:
VradiException

updateEntity

<E extends org.sharengo.wikitty.BusinessEntity> E updateEntity(E entity)
                                                           throws VradiException
Updates the specified BusinessEntity.

Parameters:
entity - the entity to update
Returns:
the updated entity
Throws:
VradiException

updateEntities

<E extends org.sharengo.wikitty.BusinessEntity> E[] updateEntities(E... entities)
                                                               throws VradiException
Updates the specified BusinessEntity.

Parameters:
entities - list of the entity to update
Returns:
the updated entities
Throws:
VradiException

updateEntities

<E extends org.sharengo.wikitty.BusinessEntity> List<E> updateEntities(List<E> entities)
                                                                   throws VradiException
Updates the specified BusinessEntity.

Parameters:
entities - list of the entity to update
Returns:
the updated entities
Throws:
VradiException

deleteEntity

void deleteEntity(String id)
                  throws VradiException
Delete the specified BusinessEntity by id.

Parameters:
id - of the entity the entity to delete
Throws:
VradiException

deleteEntity

void deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
                  throws VradiException
Delete the specified BusinessEntity.

Parameters:
entity - the entity to delete
Throws:
VradiException

getClient

Client getClient(String clientId)
                 throws VradiException
Returns a Client with the specified clientId.

Parameters:
clientId - the id of the client
Returns:
a Client
Throws:
VradiException

getUser

User getUser(String userId)
             throws VradiException
Returns a User with the specified userId.

Parameters:
userId - the id of the user
Returns:
a User
Throws:
VradiException

getGroup

Group getGroup(String groupId)
               throws VradiException
Returns a Group with the specified groupId.

Parameters:
groupId - the id of the group
Returns:
a Group
Throws:
VradiException

getQueryHistoryFile

String getQueryHistoryFile(String id)
Return the last part of the query history file, eg. queryHistory/ff4bb261-d6b2-42b3-be24-ab14e95cb244.rss. The protocol, host and context of the file depends on the relation between modules vradi-swing and vradi-services and whether services are invoked locally or remotely.

Parameters:
id - the id of the queryMaker

getGroupUsers

List<User> getGroupUsers(String groupId)
                         throws VradiException
Returns a list of Users belonging to the specified groupId.

Parameters:
groupId - the id of the group
Returns:
a list of Users
Throws:
VradiException

getClientUsers

@Deprecated
List<User> getClientUsers(String clientId)
                          throws VradiException
Deprecated. since 20100507 unused

Returns a list of Users belonging to the specified clientId.

Parameters:
clientId - the id of the client
Returns:
a list of Users
Throws:
VradiException

getGroupClients

List<Client> getGroupClients(String groupId)
                             throws VradiException
Returns a list of Clients belonging to the specified groupId.

Parameters:
groupId - the id of the group
Returns:
a list of Clients
Throws:
VradiException

getClientByUserId

Client getClientByUserId(String userId)
                         throws VradiException
Returns a Client whose specified userId belongs.

Parameters:
userId - the id of the user
Returns:
a Client
Throws:
VradiException

getAllClients

List<Client> getAllClients()
                           throws VradiException
Returns all the clients.

Returns:
all the clients
Throws:
VradiException

getAllGroups

List<Group> getAllGroups()
                         throws VradiException
Returns all the groups.

Returns:
all the groups
Throws:
VradiException

updateXmlFieldBindings

List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
                                             throws VradiException
Update a list of XmlFieldBinding.

Parameters:
bindings - the list of XmlFieldBinding to update
Returns:
the list of updated XmlFieldBinding
Throws:
VradiException

updateXmlStream

XmlStream updateXmlStream(XmlStream xmlStream,
                          List<XmlFieldBinding> bindings)
                          throws VradiException
Throws:
VradiException

updateFormType

org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
                                                     throws VradiException
Creates or Update a form type.

Parameters:
extension - the extension designing the form type
Returns:
a WikittyExtension
Throws:
VradiException

updateFormType2

org.sharengo.wikitty.WikittyExtension updateFormType2(String name,
                                                      Map<String,org.sharengo.wikitty.FieldType> fields,
                                                      String requires,
                                                      Map<String,String> tagValues)
                                                      throws VradiException
Creates or Update a form type.

Parameters:
name - the name of the form type
fields - the fields of the form type
requires - the extension requred by the extension to update
tagValues - the map containing the tags and their values
Returns:
a WikittyExtension
Throws:
VradiException

updateForm

Form updateForm(Form form)
                throws VradiException
Creates or Update the specified form.

Parameters:
form - the form to create or update
Returns:
the stored Form
Throws:
VradiException

getXmlStream

XmlStream getXmlStream(String xmlStreamId)
                       throws VradiException
Returns a XmlStream with the specified xmlStreamId.

Parameters:
xmlStreamId - the id of the XmlStream
Returns:
a XmlStream
Throws:
VradiException

getXmlFieldBindings

List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
                                          throws VradiException
Returns a list of XmlFieldBinding belonging to the specified xmlStream.

Parameters:
xmlStream - the XmlStream
Returns:
a list of XmlFieldBinding
Throws:
VradiException

getXmlFieldBinding

XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
                                   throws VradiException
Returns a XmlFieldBinding with the specified xmlFieldBindingId.

Parameters:
xmlFieldBindingId - the id of the XmlFieldBinding
Returns:
a XmlFieldBinding
Throws:
VradiException

getThesaurus

org.sharengo.wikitty.TreeNodeImpl getThesaurus(String thesaurusId)
                                               throws VradiException
Returns a TreeNodeImpl with the specified thesaurusId.

Parameters:
thesaurusId - the id of the thesaurus
Returns:
a TreeNodeImpl
Throws:
VradiException

getRootThesaurus

org.sharengo.wikitty.TreeNodeImpl getRootThesaurus()
                                                   throws VradiException
Returns the root Thesaurus Node.

Returns:
a TreeNodeImpl
Throws:
VradiException

getChildrenThesaurus

List<org.sharengo.wikitty.TreeNodeImpl> getChildrenThesaurus(String thesaurusId)
                                                             throws VradiException
Returns all children of the specified thesaurusId.

Returns:
all list of TreeNodeImpl
Throws:
VradiException

getFormTypeFields

Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
                                                             throws VradiException
Finds fields of a form type.

Parameters:
name - the name of the form type
Returns:
a map containing the names of the fields and their type
Throws:
VradiException

getFormType

org.sharengo.wikitty.WikittyExtension getFormType(String name)
                                                  throws VradiException
Returns a form type with the specified name.

Parameters:
name - the name of the form type
Returns:
a WikittyExtension
Throws:
VradiException

getForm

Form getForm(String formId)
             throws VradiException
Returns a Form with the specified formId.

Parameters:
formId - the id of the form
Returns:
the form whose id is id
Throws:
VradiException

getAllXmlStreams

List<XmlStream> getAllXmlStreams()
                                 throws VradiException
Returns all XmlStreams.

Returns:
a list of XmlStream
Throws:
VradiException

getAllThesaurus

List<org.sharengo.wikitty.TreeNodeImpl> getAllThesaurus()
                                                        throws VradiException
Returns all TreeNodeImpl considered as thesaurus nodes.

Returns:
a list of TreeNodeImpl
Throws:
VradiException

getAllFormTypes

List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
                                                            throws VradiException
Returns all Form Types.

Returns:
a list of WikittyExtension
Throws:
VradiException

getAllForms

List<Form> getAllForms()
                       throws VradiException
Returns all Forms.

Returns:
a list of Form
Throws:
VradiException

findForms2

VradiFormPageDTO findForms2(String query,
                            org.sharengo.wikitty.WikittyExtension extension,
                            String dateType,
                            Date beginDate,
                            Date endDate,
                            List<String>[] thesaurus,
                            String[] statusIds,
                            VradiFormPageDTO formPageDTO)
                            throws VradiException,
                                   UnsupportedQueryException
Searches for forms with the specified filters. The beginDate and endDate specifies a date range filter which is applied on dateType field. The date range filter is applied only if the three parameters are not null.

Parameters:
query - the query filter
extension - the extension filter
dateType - the date field. Must be fully qualified (extension.field)
beginDate - the begin date filter
endDate - the end date filter
thesaurus - the thesaurus filter
statusIds - the ids of the status filters
formPageDTO - ...
Returns:
VradiFormPageDTO
Throws:
UnsupportedQueryException
VradiException

getThesaurusCartography

VradiCartographyDTO getThesaurusCartography(String query,
                                            org.sharengo.wikitty.WikittyExtension extension,
                                            String dateType,
                                            Date beginDate,
                                            Date endDate,
                                            List<String>[] thesaurus,
                                            String[] statusIds)
                                            throws VradiException,
                                                   UnsupportedQueryException
Computes the number of forms associated with every thesaurus node.

Parameters:
query - the query filter
extension - the extension filter
dateType - the date field. Must be fully qualified (extension.field)
beginDate - the begin date filter
endDate - the end date filter
thesaurus - the thesaurus filter
statusIds - the ids of the status filters
Returns:
a VradiCartographyDTO containing forms result and a map of form count indexed by thesaurus nodes
Throws:
VradiException
UnsupportedQueryException

findForms

VradiFormPageDTO findForms(String query,
                           VradiFormPageDTO formPageDTO)
                           throws VradiException,
                                  UnsupportedQueryException
Searches for forms with the specified query.

Parameters:
query - the query to filter the forms
formPageDTO - ...
Returns:
VradiFormPageDTO
Throws:
UnsupportedQueryException
VradiException

deleteForm

void deleteForm(String formId)
                throws VradiException
Deletes a Form by the specified formId.

Parameters:
formId - the id of the Form to delete
Throws:
VradiException

bindForms

void bindForms()
               throws VradiException
Binds all queryMaker with the forms found by their queries and not already sent.

Throws:
VradiException

createSending

List<Sending> createSending(Session session,
                            QueryMaker queryMaker,
                            List<Form> formsToBind)
                            throws VradiException
Create new Sending

Parameters:
session -
queryMaker -
formsToBind -
Returns:
Throws:
VradiException

getSessions

List<Session> getSessions(Date sessionDate)
                          throws VradiException
Get all session by date

Parameters:
sessionDate - Date concerned
Returns:
a list of VradiSessionDTO
Throws:
VradiException

getFormsFromXmlStream

int[] getFormsFromXmlStream(XmlStream xmlStream,
                            VradiUser vradiUser)
                            throws VradiException
Creates and store forms from an XmlStream by using the XmlStreamBinding to link xml stream field values with form fields.

Parameters:
xmlStream - the xml stream to read
vradiUser - the VradiUser that launched the import
Returns:
an array containing : - the number of created forms - the number of already existing forms (non created) - the number of forms created with date parsing error - the number of forms created with number parsing error TODO EC-20100428 return a serializable structure (easier to use)
Throws:
VradiException - for various possible errors

getAllUsers

List<User> getAllUsers()
                       throws VradiException
Returns all the Users.

Returns:
a list of User
Throws:
VradiException

getAllUserDTOs

List<VradiUserDTO> getAllUserDTOs()
                                  throws VradiException
Returns all the Users.

Returns:
a list of VradiUserDTO
Throws:
VradiException

findQueriesReturningForm

Map<QueryMaker,List<VradiQueryBean>> findQueriesReturningForm(Form form)
                                                              throws VradiException
Computes a list of queries returning the specified Form.

Parameters:
form - the form which match queries
Returns:
a list of queries
Throws:
VradiException

getForms

List<Form> getForms(List<String> formIds)
                    throws VradiException
Returns all the Forms with the specified list of formIds.

Parameters:
formIds - the ids of the forms
Returns:
a list of Form
Throws:
VradiException

updateVradiUser

VradiUser updateVradiUser(VradiUser vradiUser)
                          throws VradiException
Updates a VradiUser.

Parameters:
vradiUser - the VradiUser to update
Returns:
the vradiUser updated
Throws:
VradiException

logVradiUser

VradiUser logVradiUser(String userName,
                       String userPassword)
                       throws VradiException
Checks if userName and userPassword matches a valid VradiUser.

Parameters:
userName - the username of a VradiUser
userPassword - the password of a VradiUser
Returns:
a VradiUser or null if either userName or userPassword don't match
Throws:
VradiException

updateSendings

void updateSendings(List<Sending> sendings)
                    throws VradiException
Update a list of Sending.

Parameters:
sendings - the list of Sending to update
Throws:
VradiException

importData

void importData(File file)
                throws VradiException
Import data from an XML file.

Parameters:
file - the XML file containing datas
Throws:
VradiException

exportData

String exportData()
                  throws VradiException
Export the datas into an XML format.

Returns:
the datas as an XML String
Throws:
VradiException

updateForms

List<Form> updateForms(List<Form> forms)
                       throws VradiException
Create or Update a list of Forms.

Parameters:
forms - the list of forms to insert or update
Returns:
an updated list of Form
Throws:
VradiException

importAsCSV

void importAsCSV(String uri)
                 throws VradiException
Import all data as CSV. FIXME EC-20100415 will not work in remote mode (or uri maybe be valid for remote server too)

Parameters:
uri - uri used to read input stream
Throws:
VradiException - if any error happen during import

exportAsCSV

String exportAsCSV(org.sharengo.wikitty.Criteria criteria)
                   throws VradiException
Get csv export.

Parameters:
criteria - export criteria
Returns:
csv export
Throws:
VradiException - if any error happen during export

reindexData

void reindexData()
                 throws VradiException
Reindex the datas.

Throws:
VradiException

getNbFormsForThesaurus

int getNbFormsForThesaurus(String thesaurusId)
                           throws VradiException
Computes the number of forms associated with the specified thesaurusId.

Returns:
the number of forms associated
Throws:
VradiException

getStatus

Status getStatus(String statusId)
                 throws VradiException
Returns a Status with the specified statusId.

Parameters:
statusId - the id of the status
Returns:
a Status
Throws:
VradiException

getStatuses

List<Status> getStatuses(List<String> statusIds)
                         throws VradiException
Returns a list of Status with the specified statusIds.

Parameters:
statusIds - the ids of the statuses
Returns:
a list of Status
Throws:
VradiException

getAllStatuses

List<Status> getAllStatuses()
                            throws VradiException
Returns all Status.

Returns:
a list of Status
Throws:
VradiException

updateStatus

Status updateStatus(Status status)
                    throws VradiException
Updates a Status.

Parameters:
status - the Status to update
Returns:
the Status updated
Throws:
VradiException

updateStatuses

List<Status> updateStatuses(List<Status> statuses)
                            throws VradiException
Updates a list of Status.

Parameters:
statuses - the list of Status to update
Returns:
the list of the Status updated
Throws:
VradiException

deleteStatus

void deleteStatus(String statusId)
                  throws VradiException
Deletes a Status.

Parameters:
statusId - the id of the Status to delete
Throws:
VradiException

deleteStatuses

void deleteStatuses(List<String> statusIds)
                    throws VradiException
Deletes a list of Status.

Parameters:
statusIds - the list of ids of the Status to delete
Throws:
VradiException

proposeThesaurus

List<org.sharengo.wikitty.TreeNodeImpl> proposeThesaurus(Form form,
                                                         List<org.sharengo.wikitty.TreeNodeImpl> thesaurus)
                                                         throws VradiException
Propose thesaurus nodes that might be in relation with a specified form

Parameters:
form - the Form containing the information needed to search the thesaurus nodes
thesaurus - the list of all the tree nodes of the thesaurus
Returns:
a list of TreeNodeImpl
Throws:
VradiException

archiveQueries

void archiveQueries(QueryMaker queryMaker)
                    throws VradiException
Archives the queries of a user, client or group in a RSS file.

Parameters:
queryMaker - the query maker whose queries are archived
Throws:
VradiException

autoLoadFormsFromXmlStreams

void autoLoadFormsFromXmlStreams(String intervalUnit,
                                 int intervalValue,
                                 Integer hour,
                                 Integer minute)
                                 throws VradiException
Regularly retrieves the information from all the xml streams and create new forms

Parameters:
intervalUnit - unit of te interval between 2 retrievings (minute, hour or day)
intervalValue - interval value between two retrievings
hour - hour of the retrieving if the unit is day
minute - of the retrieving if the unit is day or hour
Throws:
VradiException

uploadFiles

@Deprecated
void uploadFiles(Form form,
                            List<File> files)
                 throws IOException
Deprecated. can't use non serializable parameters with hessian

Upload files attached to a form.

Parameters:
form -
files -
Throws:
IOException

uploadAttachments

@Deprecated
void uploadAttachments(Form form,
                                  List<File> attachments)
                       throws IOException
Deprecated. can't use non serializable parameters with hessian

Upload attachments attached to a form.

Parameters:
form -
attachments -
Throws:
IOException

addTemplate

@Deprecated
File addTemplate(org.sharengo.wikitty.WikittyExtension extension,
                            File template)
                 throws VradiException
Deprecated. can't use non serializable parameters with hessian

Associates a new template file to the specified extension

Parameters:
extension -
template -
Returns:
the file copied in the vradi template folder
Throws:
VradiException

getTemplates

@Deprecated
File[] getTemplates(org.sharengo.wikitty.WikittyExtension extension)
Deprecated. can't use non serializable parameters with hessian

Lists the template files associated with the specified extension

Parameters:
extension -
Returns:

getTemplate

@Deprecated
File getTemplate(String extensionName,
                            String templateName)
Deprecated. can't use non serializable parameters with hessian

Parameters:
extensionName -
templateName -
Returns:

setAssociatedFields

void setAssociatedFields(String extensionName,
                         String templateName,
                         Map<String,String> fieldMap)
                         throws VradiException,
                                IOException
Throws:
VradiException
IOException

getAssociatedFields

Map<String,String> getAssociatedFields(String extensionName,
                                       String templateName)
                                       throws VradiException
Throws:
VradiException

getQueriesToModifyAfterThesaurusModification

Map<QueryMaker,List<VradiQueryBean>> getQueriesToModifyAfterThesaurusModification(String thesaurusName)
Gets the query makers whose queries are potentially to modify after a thesaurus node modification

Parameters:
thesaurusName - the modified thesaurus name node
Returns:
a map containing the query makers and their queries which contains the thesaurus node name

removeAllSending

List<Sending> removeAllSending(Session session,
                               Form form,
                               QueryMaker queryMaker)
                               throws VradiException
Throws:
VradiException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.