|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VradiStorageService
VradiStorageService.
| Method Summary | |
|---|---|
void |
bindFormsToClients()
Binds all clients with the forms found by their queries and not already sent. |
void |
changeDataDir(String newDataDir,
String oldDataDir)
Changes datas directory. |
void |
deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
Delete the specified BusinessEntity. |
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 |
exportData()
Export the datas into an XML format. |
void |
findForms(String query,
VradiFormPageDTO formPageDTO)
Searches for forms with the specified query. |
void |
findForms(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] theasurus,
VradiFormPageDTO formPageDTO)
Searches for forms with the specified filters. |
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.TreeNode> |
getAllThesaurus()
Returns all TreeNode considered as thesaurus nodes. |
List<User> |
getAllUsers()
Returns all the Users. |
List<XmlStream> |
getAllXmlStreams()
Returns all XmlStreams. |
List<org.sharengo.wikitty.TreeNode> |
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. |
Map<Form,List<Client>> |
getClientsByForms(String dateType,
Date beginDate,
Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
Computes a map of Clients indexed by Forms. |
List<User> |
getClientUsers(String clientId)
Returns a list of Users belonging to the specified clientId. |
org.sharengo.wikitty.BusinessEntity |
getEntity(String id,
Class<? extends org.sharengo.wikitty.BusinessEntity> 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. |
List<VradiSendingDTO> |
getFormsByClients(String dateType,
Date beginDate,
Date endDate,
org.sharengo.wikitty.WikittyExtension extension,
Boolean receptionProof,
Boolean paragraph,
int status)
Computes all forms by clients, status and sent date with a filter. |
Object[] |
getFormsFromXmlStream(XmlStream xmlStream,
String lastItemRecorded,
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<Group> |
getGroupsByClientId(String clientId)
Returns a list of Group that the specified clientId belongs. |
List<Group> |
getGroupsByUserId(String userId)
Returns a list of Group that the specified userId belongs. |
List<User> |
getGroupUsers(String groupId)
Returns a list of Users belonging to the specified groupId. |
Map<org.sharengo.wikitty.TreeNode,Integer> |
getNbFormsByThesaurus()
Computes the number of forms associated with every thesaurus node. |
int |
getNbFormsForThesaurus(String thesaurusId)
Computes the number of forms associated with the specified thesaurusId. |
List<String> |
getQueriesReturningForm(Form form)
Computes a list of queries returning the specified Form. |
org.sharengo.wikitty.TreeNode |
getRootThesaurus()
Returns the root Thesaurus Node. |
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. |
org.sharengo.wikitty.TreeNode |
getThesaurus(String thesaurusId)
Returns a TreeNode with the specified thesaurusId. |
Status |
getToTreatStatus()
Get the unmodifiable status 'to treat' |
User |
getUser(String userId)
Returns a User with the specified userId. |
Status |
getValidatedStatus()
Get the unmodifiable status 'validated' |
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 |
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.TreeNode> |
proposeThesaurus(Form form,
List<org.sharengo.wikitty.TreeNode> thesaurus)
Propose thesaurus nodes that might be in relation with a specified form |
void |
reindexData()
Reindex the datas. |
org.sharengo.wikitty.BusinessEntity |
updateEntity(org.sharengo.wikitty.BusinessEntity 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(String name,
Map<String,org.sharengo.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
Creates or Update a form type. |
org.sharengo.wikitty.WikittyExtension |
updateFormType(org.sharengo.wikitty.WikittyExtension extension)
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. |
| Method Detail |
|---|
org.sharengo.wikitty.BusinessEntity getEntity(String id,
Class<? extends org.sharengo.wikitty.BusinessEntity> clazz)
throws TechnicalException
BusinessEntity of the specified id and clazz.
id - the id of the entityclazz - the class of the entity
BusinessEntity
TechnicalException
org.sharengo.wikitty.BusinessEntity updateEntity(org.sharengo.wikitty.BusinessEntity entity)
throws TechnicalException
BusinessEntity.
entity - the entity to update
TechnicalException
void deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
throws TechnicalException
BusinessEntity.
entity - the entity to delete
TechnicalException
Client getClient(String clientId)
throws TechnicalException
Client with the specified clientId.
clientId - the id of the client
Client
TechnicalException
User getUser(String userId)
throws TechnicalException
User with the specified userId.
userId - the id of the user
User
TechnicalException
Group getGroup(String groupId)
throws TechnicalException
Group with the specified groupId.
groupId - the id of the group
Group
TechnicalException
List<User> getGroupUsers(String groupId)
throws TechnicalException
Users belonging to the specified groupId.
groupId - the id of the group
Users
TechnicalException
List<User> getClientUsers(String clientId)
throws TechnicalException
Users belonging to the specified clientId.
clientId - the id of the client
Users
TechnicalException
List<Client> getGroupClients(String groupId)
throws TechnicalException
Clients belonging to the specified groupId.
groupId - the id of the group
Clients
TechnicalException
Client getClientByUserId(String userId)
throws TechnicalException
Client whose specified userId belongs.
userId - the id of the user
Client
TechnicalException
List<Group> getGroupsByUserId(String userId)
throws TechnicalException
Group that the specified userId belongs.
userId - the id of the user
Group
TechnicalException
List<Group> getGroupsByClientId(String clientId)
throws TechnicalException
Group that the specified clientId belongs.
clientId - the id of the client
Group
TechnicalException
List<Client> getAllClients()
throws TechnicalException
TechnicalException
List<Group> getAllGroups()
throws TechnicalException
TechnicalException
List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
throws TechnicalException
XmlFieldBinding.
bindings - the list of XmlFieldBinding to update
TechnicalException
org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
throws TechnicalException
extension - the extension designing the form type
WikittyExtension
TechnicalException
org.sharengo.wikitty.WikittyExtension updateFormType(String name,
Map<String,org.sharengo.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
throws TechnicalException
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
TechnicalException
Form updateForm(Form form)
throws TechnicalException
form.
form - the form to create or update
Form
TechnicalException
XmlStream getXmlStream(String xmlStreamId)
throws TechnicalException
XmlStream with the specified xmlStreamId.
xmlStreamId - the id of the XmlStream
XmlStream
TechnicalException
List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
throws TechnicalException
XmlFieldBinding belonging to the specified xmlStream.
xmlStream - the XmlStream
XmlFieldBinding
TechnicalException
XmlFieldBinding getXmlFieldBinding(String xmlFieldBindingId)
throws TechnicalException
XmlFieldBinding with the specified xmlFieldBindingId.
xmlFieldBindingId - the id of the XmlFieldBinding
XmlFieldBinding
TechnicalException
org.sharengo.wikitty.TreeNode getThesaurus(String thesaurusId)
throws TechnicalException
TreeNode with the specified thesaurusId.
thesaurusId - the id of the thesaurus
TreeNode
TechnicalException
org.sharengo.wikitty.TreeNode getRootThesaurus()
throws TechnicalException
TreeNode
TechnicalException
List<org.sharengo.wikitty.TreeNode> getChildrenThesaurus(String thesaurusId)
throws TechnicalException
thesaurusId.
TreeNode
TechnicalException
Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
throws TechnicalException
name - the name of the form type
TechnicalException
org.sharengo.wikitty.WikittyExtension getFormType(String name)
throws TechnicalException
name.
name - the name of the form type
WikittyExtension
TechnicalException
Form getForm(String formId)
throws TechnicalException
Form with the specified formId.
formId - the id of the form
TechnicalException
List<XmlStream> getAllXmlStreams()
throws TechnicalException
XmlStreams.
XmlStream
TechnicalException
List<org.sharengo.wikitty.TreeNode> getAllThesaurus()
throws TechnicalException
TreeNode considered as thesaurus nodes.
TreeNode
TechnicalException
List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
throws TechnicalException
WikittyExtension
TechnicalException
List<Form> getAllForms()
throws TechnicalException
Forms.
Form
TechnicalException
void findForms(String query,
org.sharengo.wikitty.WikittyExtension extension,
String dateType,
Date beginDate,
Date endDate,
List<String>[] theasurus,
VradiFormPageDTO formPageDTO)
throws TechnicalException,
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 filterformPageDTO - ...
UnsupportedQueryException
TechnicalException
void findForms(String query,
VradiFormPageDTO formPageDTO)
throws TechnicalException,
UnsupportedQueryException
query - the query to filter the formsformPageDTO - ...
UnsupportedQueryException
TechnicalException
void deleteForm(String formId)
throws TechnicalException
Form by the specified formId.
formId - the id of the Form to delete
TechnicalException
void bindFormsToClients()
throws TechnicalException
TechnicalException
List<VradiSendingDTO> getFormsByClients(String dateType,
Date beginDate,
Date endDate,
org.sharengo.wikitty.WikittyExtension extension,
Boolean receptionProof,
Boolean paragraph,
int status)
throws TechnicalException
dateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterextension - the extension filterreceptionProof - true if the sending must have a reception proofparagraph - the paragraph sent with the formsstatus - the status of the sending
TechnicalException
Map<Form,List<Client>> getClientsByForms(String dateType,
Date beginDate,
Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
throws TechnicalException
Clients indexed by Forms.
dateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterextension - the extension filter
TechnicalException
Object[] getFormsFromXmlStream(XmlStream xmlStream,
String lastItemRecorded,
VradiUser vradiUser)
throws TechnicalException
XmlStream by using the XmlStreamBinding
to link xml stream field values with form fields.
xmlStream - the xml stream to readlastItemRecorded - the encrypted value of the last read item
of the xml streamvradiUser - the VradiUser that launched the import
TechnicalException
void changeDataDir(String newDataDir,
String oldDataDir)
throws TechnicalException
newDataDir - the new data directory patholdDataDir - the old data directory path.
If null, the data in the old directory will not be copied.
TechnicalException
List<User> getAllUsers()
throws TechnicalException
Users.
User
TechnicalException
List<String> getQueriesReturningForm(Form form)
throws TechnicalException
Form.
form - the form which match queries
TechnicalException
List<Form> getForms(List<String> formIds)
throws TechnicalException
Forms with the specified list of formIds.
formIds - the ids of the forms
Form
TechnicalException
VradiUser updateVradiUser(VradiUser vradiUser)
throws TechnicalException
VradiUser.
vradiUser - the VradiUser to update
TechnicalException
VradiUser logVradiUser(String userName,
String userPassword)
throws TechnicalException
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
TechnicalException
void updateSendings(List<Sending> sendings)
throws TechnicalException
sendings - the list of Sending to update
TechnicalException
void importData(File file)
throws TechnicalException
file - the XML file containing datas
TechnicalException
String exportData()
throws TechnicalException
TechnicalException
List<Form> updateForms(List<Form> forms)
throws TechnicalException
Forms.
forms - the list of forms to insert or update
Form
TechnicalException
void reindexData()
throws TechnicalException
TechnicalException
Map<org.sharengo.wikitty.TreeNode,Integer> getNbFormsByThesaurus()
throws TechnicalException
TechnicalException
int getNbFormsForThesaurus(String thesaurusId)
throws TechnicalException
thesaurusId.
TechnicalException
Status getStatus(String statusId)
throws TechnicalException
Status with the specified statusId.
statusId - the id of the status
Status
TechnicalException
List<Status> getStatuses(List<String> statusIds)
throws TechnicalException
Status with the specified
statusIds.
statusIds - the ids of the statuses
Status
TechnicalException
List<Status> getAllStatuses()
throws TechnicalException
Status.
Status
TechnicalException
Status updateStatus(Status status)
throws TechnicalException
Status.
status - the Status to update
Status updated
TechnicalException
List<Status> updateStatuses(List<Status> statuses)
throws TechnicalException
Status.
statuses - the list of Status to update
Status updated
TechnicalException
void deleteStatus(String statusId)
throws TechnicalException
Status.
statusId - the id of the Status to delete
TechnicalException
void deleteStatuses(List<String> statusIds)
throws TechnicalException
Status.
statusIds - the list of ids of the Status to delete
TechnicalExceptionStatus getToTreatStatus()
StatusStatus getValidatedStatus()
Status
List<org.sharengo.wikitty.TreeNode> proposeThesaurus(Form form,
List<org.sharengo.wikitty.TreeNode> thesaurus)
throws TechnicalException
form - the Form containing the information needed
to search the thesaurus nodesthesaurus - the list of all the tree nodes of the thesaurus
TreeNode
TechnicalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||