|
||||||||||
| 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. |
List<String> |
deleteThesaurus(String thesaurusId)
Delete all thesaurus and sub thesaurus. |
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. |
List<Group> |
findUserGroups(String userId)
Find user group. |
List<org.nuiton.wikitty.WikittyExtension> |
getAllFormTypes()
Retrieves all the form types |
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' |
int |
getNbFormsForThesaurus(String thesaurusId)
Computes the number of forms associated with the specified thesaurusId. |
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 |
List<Thesaurus> |
getThesaurusAttachedToForm(Form form)
Retourne l'ensemble des thesaurus qui sont attachés a un formulaire. |
boolean |
isFormTypeExists(String formTypeName)
Check if a form type name already exists. |
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. |
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()
List<User> findAllUsers()
List<User> findClientUsers(String clientId)
clientId - client wikitty id
List<Group> findUserGroups(String userId)
userId - user wikitty id
List<Group> findAllGroups()
List<Status> findAllStatus()
List<Status> createDefaultStatuses()
throws VradiException
VradiExceptionList<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
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
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
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
boolean checkUserEmail(Sending sending)
sending - to check
Session getSessionBySending(String sendingId)
sendingId - corresponding to session to find
void deleteAllThesaurus()
throws VradiException
VradiException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||