|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VradiStorageService
VradiStorageService.
| 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 |
|
|
getEntities(List<String> ids,
Class<E> clazz)
Returns the BusinessEntity of the specified ids and clazz. |
|
|
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)
|
|
|
updateEntities(E... entities)
Updates the specified BusinessEntity. |
|
|
updateEntities(List<E> entities)
Updates the specified BusinessEntity. |
|
|
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 |
|---|
<E extends org.sharengo.wikitty.BusinessEntity> E getEntity(String id,
Class<E> clazz)
throws VradiException
BusinessEntity of the specified id and clazz.
id - the id of the entityclazz - the class of the entity
BusinessEntity
VradiException
<E extends org.sharengo.wikitty.BusinessEntity> List<E> getEntities(List<String> ids,
Class<E> clazz)
throws VradiException
BusinessEntity of the specified ids and clazz.
ids - the id of the entitiesclazz - the class of the entity
BusinessEntity
VradiException
<E extends org.sharengo.wikitty.BusinessEntity> E updateEntity(E entity)
throws VradiException
BusinessEntity.
entity - the entity to update
VradiException
<E extends org.sharengo.wikitty.BusinessEntity> E[] updateEntities(E... entities)
throws VradiException
BusinessEntity.
entities - list of the entity to update
VradiException
<E extends org.sharengo.wikitty.BusinessEntity> List<E> updateEntities(List<E> entities)
throws VradiException
BusinessEntity.
entities - list of the entity to update
VradiException
void deleteEntity(String id)
throws VradiException
BusinessEntity by id.
id - of the entity the entity to delete
VradiException
void deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
throws VradiException
BusinessEntity.
entity - the entity to delete
VradiException
Client getClient(String clientId)
throws VradiException
Client with the specified clientId.
clientId - the id of the client
Client
VradiException
User getUser(String userId)
throws VradiException
User with the specified userId.
userId - the id of the user
User
VradiException
Group getGroup(String groupId)
throws VradiException
Group with the specified groupId.
groupId - the id of the group
Group
VradiExceptionString getQueryHistoryFile(String id)
id - the id of the queryMaker
List<User> getGroupUsers(String groupId)
throws VradiException
Users belonging to the specified groupId.
groupId - the id of the group
Users
VradiException
@Deprecated
List<User> getClientUsers(String clientId)
throws VradiException
Users belonging to the specified clientId.
clientId - the id of the client
Users
VradiException
List<Client> getGroupClients(String groupId)
throws VradiException
Clients belonging to the specified groupId.
groupId - the id of the group
Clients
VradiException
Client getClientByUserId(String userId)
throws VradiException
Client whose specified userId belongs.
userId - the id of the user
Client
VradiException
List<Client> getAllClients()
throws VradiException
VradiException
List<Group> getAllGroups()
throws VradiException
VradiException
List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
throws VradiException
XmlFieldBinding.
bindings - the list of XmlFieldBinding to update
VradiException
XmlStream updateXmlStream(XmlStream xmlStream,
List<XmlFieldBinding> bindings)
throws VradiException
VradiException
org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
throws VradiException
extension - the extension designing the form type
WikittyExtension
VradiException
org.sharengo.wikitty.WikittyExtension updateFormType2(String name,
Map<String,org.sharengo.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
throws VradiException
name - the name of the form typefields - the fields of the form typerequires - the extension requred by the extension to updatetagValues - the map containing the tags and their values
WikittyExtension
VradiException
Form updateForm(Form form)
throws VradiException
form.
form - the form to create or update
Form
VradiException
XmlStream getXmlStream(String xmlStreamId)
throws VradiException
XmlStream with the specified xmlStreamId.
xmlStreamId - the id of the XmlStream
XmlStream
VradiException
List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
throws VradiException
XmlFieldBinding belonging to the specified xmlStream.
xmlStream - the XmlStream
XmlFieldBinding
VradiException
XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
throws VradiException
XmlFieldBinding with the specified xmlFieldBindingId.
xmlFieldBindingId - the id of the XmlFieldBinding
XmlFieldBinding
VradiException
org.sharengo.wikitty.TreeNodeImpl getThesaurus(String thesaurusId)
throws VradiException
TreeNodeImpl with the specified thesaurusId.
thesaurusId - the id of the thesaurus
TreeNodeImpl
VradiException
org.sharengo.wikitty.TreeNodeImpl getRootThesaurus()
throws VradiException
TreeNodeImpl
VradiException
List<org.sharengo.wikitty.TreeNodeImpl> getChildrenThesaurus(String thesaurusId)
throws VradiException
thesaurusId.
TreeNodeImpl
VradiException
Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
throws VradiException
name - the name of the form type
VradiException
org.sharengo.wikitty.WikittyExtension getFormType(String name)
throws VradiException
name.
name - the name of the form type
WikittyExtension
VradiException
Form getForm(String formId)
throws VradiException
Form with the specified formId.
formId - the id of the form
VradiException
List<XmlStream> getAllXmlStreams()
throws VradiException
XmlStreams.
XmlStream
VradiException
List<org.sharengo.wikitty.TreeNodeImpl> getAllThesaurus()
throws VradiException
TreeNodeImpl considered as thesaurus nodes.
TreeNodeImpl
VradiException
List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
throws VradiException
WikittyExtension
VradiException
List<Form> getAllForms()
throws VradiException
Forms.
Form
VradiException
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
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.
query - the query filterextension - the extension filterdateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterthesaurus - the thesaurus filterstatusIds - the ids of the status filtersformPageDTO - ...
UnsupportedQueryException
VradiException
VradiCartographyDTO getThesaurusCartography(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] thesaurus,
String[] statusIds)
throws VradiException,
UnsupportedQueryException
query - the query filterextension - the extension filterdateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterthesaurus - the thesaurus filterstatusIds - the ids of the status filters
VradiCartographyDTO containing forms result and a map of form count indexed by thesaurus nodes
VradiException
UnsupportedQueryException
VradiFormPageDTO findForms(String query,
VradiFormPageDTO formPageDTO)
throws VradiException,
UnsupportedQueryException
query - the query to filter the formsformPageDTO - ...
UnsupportedQueryException
VradiException
void deleteForm(String formId)
throws VradiException
Form by the specified formId.
formId - the id of the Form to delete
VradiException
void bindForms()
throws VradiException
VradiException
List<Sending> createSending(Session session,
QueryMaker queryMaker,
List<Form> formsToBind)
throws VradiException
session - queryMaker - formsToBind -
VradiException
List<Session> getSessions(Date sessionDate)
throws VradiException
sessionDate - Date concerned
VradiException
int[] getFormsFromXmlStream(XmlStream xmlStream,
VradiUser vradiUser)
throws VradiException
XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
xmlStream - the xml stream to readvradiUser - the VradiUser that launched the import
VradiException - for various possible errors
List<User> getAllUsers()
throws VradiException
Users.
User
VradiException
List<VradiUserDTO> getAllUserDTOs()
throws VradiException
Users.
VradiUserDTO
VradiException
Map<QueryMaker,List<VradiQueryBean>> findQueriesReturningForm(Form form)
throws VradiException
Form.
form - the form which match queries
VradiException
List<Form> getForms(List<String> formIds)
throws VradiException
Forms with the specified list of formIds.
formIds - the ids of the forms
Form
VradiException
VradiUser updateVradiUser(VradiUser vradiUser)
throws VradiException
VradiUser.
vradiUser - the VradiUser to update
VradiException
VradiUser logVradiUser(String userName,
String userPassword)
throws VradiException
userName and userPassword matches a valid VradiUser.
userName - the username of a VradiUseruserPassword - the password of a VradiUser
VradiUser or null if either userName or userPassword don't match
VradiException
void updateSendings(List<Sending> sendings)
throws VradiException
sendings - the list of Sending to update
VradiException
void importData(File file)
throws VradiException
file - the XML file containing datas
VradiException
String exportData()
throws VradiException
VradiException
List<Form> updateForms(List<Form> forms)
throws VradiException
Forms.
forms - the list of forms to insert or update
Form
VradiException
void importAsCSV(String uri)
throws VradiException
uri - uri used to read input stream
VradiException - if any error happen during import
String exportAsCSV(org.sharengo.wikitty.Criteria criteria)
throws VradiException
criteria - export criteria
VradiException - if any error happen during export
void reindexData()
throws VradiException
VradiException
int getNbFormsForThesaurus(String thesaurusId)
throws VradiException
thesaurusId.
VradiException
Status getStatus(String statusId)
throws VradiException
Status with the specified statusId.
statusId - the id of the status
Status
VradiException
List<Status> getStatuses(List<String> statusIds)
throws VradiException
Status with the specified
statusIds.
statusIds - the ids of the statuses
Status
VradiException
List<Status> getAllStatuses()
throws VradiException
Status.
Status
VradiException
Status updateStatus(Status status)
throws VradiException
Status.
status - the Status to update
Status updated
VradiException
List<Status> updateStatuses(List<Status> statuses)
throws VradiException
Status.
statuses - the list of Status to update
Status updated
VradiException
void deleteStatus(String statusId)
throws VradiException
Status.
statusId - the id of the Status to delete
VradiException
void deleteStatuses(List<String> statusIds)
throws VradiException
Status.
statusIds - the list of ids of the Status to delete
VradiException
List<org.sharengo.wikitty.TreeNodeImpl> proposeThesaurus(Form form,
List<org.sharengo.wikitty.TreeNodeImpl> thesaurus)
throws VradiException
form - the Form containing the information needed
to search the thesaurus nodesthesaurus - the list of all the tree nodes of the thesaurus
TreeNodeImpl
VradiException
void archiveQueries(QueryMaker queryMaker)
throws VradiException
queryMaker - the query maker whose queries are archived
VradiException
void autoLoadFormsFromXmlStreams(String intervalUnit,
int intervalValue,
Integer hour,
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
VradiException
@Deprecated
void uploadFiles(Form form,
List<File> files)
throws IOException
form - files -
IOException
@Deprecated
void uploadAttachments(Form form,
List<File> attachments)
throws IOException
form - attachments -
IOException
@Deprecated
File addTemplate(org.sharengo.wikitty.WikittyExtension extension,
File template)
throws VradiException
extension - template -
VradiException@Deprecated File[] getTemplates(org.sharengo.wikitty.WikittyExtension extension)
extension -
@Deprecated
File getTemplate(String extensionName,
String templateName)
extensionName - templateName -
void setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
throws VradiException,
IOException
VradiException
IOException
Map<String,String> getAssociatedFields(String extensionName,
String templateName)
throws VradiException
VradiExceptionMap<QueryMaker,List<VradiQueryBean>> getQueriesToModifyAfterThesaurusModification(String thesaurusName)
thesaurusName - the modified thesaurus name node
List<Sending> removeAllSending(Session session,
Form form,
QueryMaker queryMaker)
throws VradiException
VradiException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||