|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VradiDataService
This service contains business code to do on data before calling
WikittyProxy.
It's intended to be used on a local WikittyProxy.
| Method Summary | |
|---|---|
boolean |
checkUserEmail(Sending sending)
Check if user have email non empyt |
List<Status> |
createDefaultStatuses()
Create all default status. |
org.nuiton.wikitty.WikittyExtension |
createFormType(String formTypeName)
Create new form type. |
RootThesaurus |
createRootThesaurus(String rootThesaurusName)
Create new thesaurus. |
void |
deleteAllThesaurus()
Delete all thesauruses recursively. |
void |
deleteClient(String clientId)
Delete client, users associated and user groups association |
void |
deleteGroup(String groupId)
Delete group |
boolean |
deleteStatus(List<String> statusIds)
Delete status if no form is use this |
List<String> |
deleteThesaurus(String thesaurusId)
Delete all thesaurus and sub thesaurus. |
void |
deleteUser(String userId)
Delete users, and groups association |
void |
deleteXmlStream(String id)
Delete group |
List<Client> |
findAllClients()
Find all clients ordered by client name. |
List<Group> |
findAllGroups()
Find all groups ordered by group name. |
List<Status> |
findAllStatus()
Find all status ordered by status name. |
List<User> |
findAllUsers()
Find all users ordered by user name. |
List<WebHarvestStream> |
findAllWebHarvest()
Find all webHarvest stream ordered by stream name. |
List<XmlStream> |
findAllXmlStreams()
Find all xml streams ordered by stream name. |
List<User> |
findClientUsers(String clientId)
Find all users for a client ordered by user name. |
FormPagedResult |
findForms(QueryParameters queryParameters,
FormPagedResult formPagedResult)
Searches for forms with the specified filters. |
Map<Group,List<QueryBean>> |
findQueriesReturningForm(List<Group> groups,
String formId)
Computes a list of queries returning the specified Form and groups. |
Map<Group,List<QueryBean>> |
findQueriesReturningForm(String formId)
Computes a list of queries returning the specified Form. |
List<Group> |
findUserGroups(String userId)
Find user group. |
List<org.nuiton.wikitty.WikittyExtension> |
getAllFormTypes()
Retrieves all the form types |
List<String> |
getAllWebHarvestScripts()
Get all WebHarvest script name in server's WebHarvest directory. |
Map<Thesaurus,Integer> |
getChildrenCartography(String thesaurusId,
QueryParameters queryParameters)
Computes the number of forms associated with every thesaurus node. |
List<Thesaurus> |
getChildrenThesaurus(String thesaurusId)
Returns all children of the specified thesaurusId sorted by name. |
org.nuiton.wikitty.WikittyExtension |
getFormType(String name)
Retrieves the form type whose name is the parameter 'name' |
Map<String,org.nuiton.wikitty.FieldType> |
getFormTypeFields(String name)
Finds fields of a form type. |
String |
getFormTypeTemplateName(org.nuiton.wikitty.WikittyExtension extension)
Get form type template name |
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 |
int |
getNbFormsForThesaurus(String thesaurusId)
Computes the number of forms associated with the specified thesaurusId. |
Map<Group,List<QueryBean>> |
getQueriesToModifyAfterThesaurusModification(String rootThesaurusName,
String thesaurusName)
Gets the query makers whose queries are potentially to modify after a thesaurus node modification |
List<String> |
getRelatedFormsLinkIds(String formId)
Get all related forms ids of form in param |
List<String> |
getReplaceFormsLinkIds(String formId)
Get all replace forms ids of form in param |
List<RootThesaurus> |
getRootThesaurus()
Return root thesaurus ids (ie thesaurus nodes without parent) sorted by root thesaurus name. |
Session |
getSessionBySending(String sendingId)
Return session corresponding of sending id in param |
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. |
List<Thesaurus> |
getThesaurusAttachedToForm(Form form)
Retourne l'ensemble des thesaurus qui sont attachés a un formulaire. |
String |
getWebHarvestPreviewURL(WebHarvestStream stream)
Get web harvest preview url from script |
boolean |
isFormTypeExists(String formTypeName)
Check if a form type name already exists. |
boolean |
isFormTypeInUse(org.nuiton.wikitty.WikittyExtension formType)
Find if form type is used |
boolean |
isRootThesaurusNameExists(String rootThesaurusName)
Return true if rootThesaurusName already exists. |
boolean |
isRootThesaurusNameExists(String rootThesaurusName,
String exceptedRootThesaurusId)
Return true if rootThesaurusName already exists. |
boolean |
isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName)
Return true if thesaurusName exists in rootThesaurus children. |
boolean |
isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName,
String exceptedThesaurusId)
Check if name of thesaurus is existing in rootThesaurus. |
List<Thesaurus> |
proposeThesaurus(String formId)
Propose thesaurus nodes that might be in relation with a specified form |
org.nuiton.wikitty.WikittyExtension |
updateFormType(String name,
Map<String,org.nuiton.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
Creates or Update a form type. |
org.nuiton.wikitty.WikittyExtension |
updateFormType(org.nuiton.wikitty.WikittyExtension extension)
Creates or Update a form type. |
org.nuiton.wikitty.WikittyExtension |
updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
Creates or Update a form type. |
List<XmlFieldBinding> |
updateXmlFieldBindings(List<XmlFieldBinding> bindings)
Update a list of XmlFieldBinding. |
| Method Detail |
|---|
List<Client> findAllClients()
void deleteClient(String clientId)
throws VradiException
clientId - to delete
VradiExceptionList<User> findAllUsers()
List<User> findClientUsers(String clientId)
clientId - client wikitty id
void deleteUser(String userId)
throws VradiException
userId - to delete
VradiExceptionList<Group> findUserGroups(String userId)
userId - user wikitty id
List<Group> findAllGroups()
List<Group> getGroupsForUser(String userId)
throws VradiException
userId - the user we want the groups of
VradiException
void deleteGroup(String groupId)
throws VradiException
groupId - to delete
VradiException
void deleteXmlStream(String id)
throws VradiException
groupId - to delete
VradiExceptionList<Status> findAllStatus()
List<Status> createDefaultStatuses()
throws VradiException
VradiException
Status getStatus(VradiConstants.FormStatus formStatus)
throws VradiException
formStatus - the status from enum
VradiException - if an error occur during statuses initialisation
boolean deleteStatus(List<String> statusIds)
throws VradiException
statusIds - to delete
VradiException - is occured if status deletion is abordedList<WebHarvestStream> findAllWebHarvest()
List<XmlStream> findAllXmlStreams()
List<RootThesaurus> getRootThesaurus()
throws VradiException
RootThesaurus collection
VradiException
org.nuiton.wikitty.WikittyExtension getFormType(String name)
throws VradiException
name - the name of the form type we want to retrieve
VradiException
Map<String,org.nuiton.wikitty.FieldType> getFormTypeFields(String name)
throws VradiException
name - the name of the form type
VradiException
org.nuiton.wikitty.WikittyExtension updateFormType(org.nuiton.wikitty.WikittyExtension extension)
throws VradiException
extension - the extension designing the form type
WikittyExtension
VradiException
org.nuiton.wikitty.WikittyExtension updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
throws VradiException
extension - the extension designing the form typetemplate - name
WikittyExtension
VradiException
org.nuiton.wikitty.WikittyExtension updateFormType(String name,
Map<String,org.nuiton.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 required by the extension to updatetagValues - the map containing the tags and their values
WikittyExtension
VradiException
List<Thesaurus> getThesaurusAttachedToForm(Form form)
throws VradiException
form - form dont on veut les thesaurus
VradiException
FormPagedResult findForms(QueryParameters queryParameters,
FormPagedResult formPagedResult)
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.
queryParameters - query parameters
UnsupportedQueryException
VradiException
Map<Thesaurus,Integer> getChildrenCartography(String thesaurusId,
QueryParameters queryParameters)
throws VradiException,
UnsupportedQueryException
thesaurusId - thesaurusIdqueryParameters - query parameters
VradiException
UnsupportedQueryException
Map<Group,List<QueryBean>> findQueriesReturningForm(String formId)
throws VradiException
Form.
formId - id of the form which match queries
VradiException
Map<Group,List<QueryBean>> findQueriesReturningForm(List<Group> groups,
String formId)
throws VradiException
Form and groups.
formId - id of the form which match queriesgroups - concerned
VradiException
List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
throws VradiException
XmlFieldBinding.
bindings - the list of XmlFieldBinding to update
VradiException
List<org.nuiton.wikitty.WikittyExtension> getAllFormTypes()
throws VradiException
VradiException
List<Thesaurus> getChildrenThesaurus(String thesaurusId)
throws VradiException
thesaurusId sorted by name.
thesaurusId - thesaurus wikitty id
TreeNodeImpl
VradiException
int getNbFormsForThesaurus(String thesaurusId)
throws VradiException
thesaurusId.
thesaurusId - thesaurus id
VradiException
RootThesaurus createRootThesaurus(String rootThesaurusName)
throws VradiException
rootThesaurusName - root thesaurus name (must contains only alphnum characters)
VradiException - if name is not valid
List<String> deleteThesaurus(String thesaurusId)
throws VradiException
thesaurusId - thesaurusId to delete
VradiException
boolean isFormTypeExists(String formTypeName)
throws VradiException
formTypeName - form type name
VradiException - if name is not valid
org.nuiton.wikitty.WikittyExtension createFormType(String formTypeName)
throws VradiException
formTypeName - form type name
VradiException - if name is not valid
String getWebHarvestPreviewURL(WebHarvestStream stream)
throws VradiException
stream -
VradiExceptionList<String> getAllWebHarvestScripts()
Map<Group,List<QueryBean>> getQueriesToModifyAfterThesaurusModification(String rootThesaurusName,
String thesaurusName)
rootThesaurusName - the modified root thesaurus name nodethesaurusName - the modified thesaurus name node
boolean isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName)
rootThesaurus - root thesaurusthesaurusName - thesaurus name to test
boolean isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName,
String exceptedThesaurusId)
rootThesaurus - to checkthesaurusName - name to checkexceptedThesaurusId - in case of rename, exclude exceptedThesaurusId from check
boolean isRootThesaurusNameExists(String rootThesaurusName)
rootThesaurusName - rootThesaurus name to test
boolean isRootThesaurusNameExists(String rootThesaurusName,
String exceptedRootThesaurusId)
rootThesaurusName - rootThesaurus name to testexceptedRootThesaurusId - in case of rename, exclude exceptedRootThesaurusId from check
List<Thesaurus> proposeThesaurus(String formId)
throws VradiException
formId - the Form id containing the information needed
to search the thesaurus nodes
Thesaurus
VradiExceptionboolean checkUserEmail(Sending sending)
sending - to check
Session getSessionBySending(String sendingId)
sendingId - corresponding to session to find
List<Session> getSessions(Date sessionDate)
throws VradiException
sessionDate - Date concerned
VradiException
Session getSessionOfSending(String sendingId)
throws VradiException
sendingId - concerned
VradiException - if an error occur
Session getLastCloseSession()
throws VradiException
VradiException - if an error occur
Session getLastOpenSession()
throws VradiException
VradiException - if an error occur
void deleteAllThesaurus()
throws VradiException
VradiException - if an error occur
List<String> getRelatedFormsLinkIds(String formId)
throws VradiException
formId - concerned
VradiException - if an error occur
List<String> getReplaceFormsLinkIds(String formId)
throws VradiException
formId - concerned
VradiException - if an error occurboolean isFormTypeInUse(org.nuiton.wikitty.WikittyExtension formType)
formType - concerned
String getFormTypeTemplateName(org.nuiton.wikitty.WikittyExtension extension)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||