|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.VradiDataServiceImpl
public class VradiDataServiceImpl
Vradi data service implementation (on a local wikiity proxy).
| Field Summary | |
|---|---|
protected FormManager |
formManager
|
protected FormTypeManager |
formTypeManager
|
protected SearchManager |
searchManager
|
protected ThesaurusManager |
thesaurusManager
|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
Wikiity proxy. |
| Constructor Summary | |
|---|---|
VradiDataServiceImpl(org.nuiton.wikitty.WikittyProxy wikittyProxy)
Constructor with a wikitty proxy. |
|
| Method Summary | ||
|---|---|---|
boolean |
checkUserEmail(Sending sending)
Check if user have email non empyt |
|
protected org.nuiton.wikitty.WikittyExtension |
computeExtension(org.nuiton.wikitty.WikittyExtension extension)
Compute the specified extension and return a new one with ordered fields. |
|
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. |
|
protected
|
findAllByExtension(Class<T> type,
String extension,
String... sortFields)
Do a find all by applying a criteria to WikittyProxy. |
|
List<Client> |
findAllClients()
Find all clients. |
|
List<Group> |
findAllGroups()
Find all groups. |
|
List<Status> |
findAllStatus()
Find all status. |
|
List<User> |
findAllUsers()
Find all users. |
|
List<WebHarvestStream> |
findAllWebHarvest()
Find all webHarvest stream. |
|
List<XmlStream> |
findAllXmlStreams()
Find all xml streams. |
|
List<User> |
findClientUsers(String clientId)
Find all users for a client. |
|
FormPagedResult |
findForms(QueryParameters queryParameters,
FormPagedResult formPagedResult)
Searches for forms with the specified filters. |
|
List<Group> |
findUserGroups(String userId)
Find all groups for a user. |
|
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. |
|
protected void |
initManagers()
Init managers. |
|
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)
Updates the form type whose name is 'name'. |
|
org.nuiton.wikitty.WikittyExtension |
updateFormType(org.nuiton.wikitty.WikittyExtension extension)
Update the form type given in parameter |
|
org.nuiton.wikitty.WikittyExtension |
updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
Update the form type given in parameter |
|
List<XmlFieldBinding> |
updateXmlFieldBindings(List<XmlFieldBinding> bindings)
Updates the xml field bindings given in parameters. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
protected ThesaurusManager thesaurusManager
protected SearchManager searchManager
protected FormManager formManager
protected FormTypeManager formTypeManager
| Constructor Detail |
|---|
public VradiDataServiceImpl(org.nuiton.wikitty.WikittyProxy wikittyProxy)
wikittyProxy - wikitty proxy| Method Detail |
|---|
protected void initManagers()
protected <T extends org.nuiton.wikitty.BusinessEntity> List<T> findAllByExtension(Class<T> type,
String extension,
String... sortFields)
T - type of resulttype - type to searchextension - extension to searchsortFields - sort fields (ascending to sort on)
public List<Client> findAllClients()
findAllClients in interface VradiDataServicepublic List<User> findAllUsers()
findAllUsers in interface VradiDataServicepublic List<Group> findAllGroups()
findAllGroups in interface VradiDataServicepublic List<Status> findAllStatus()
findAllStatus in interface VradiDataService
public List<Status> createDefaultStatuses()
throws VradiException
createDefaultStatuses in interface VradiDataServiceVradiExceptionpublic List<WebHarvestStream> findAllWebHarvest()
findAllWebHarvest in interface VradiDataServicepublic List<XmlStream> findAllXmlStreams()
findAllXmlStreams in interface VradiDataServicepublic List<User> findClientUsers(String clientId)
findClientUsers in interface VradiDataServiceclientId - client wikitty id
public List<Group> findUserGroups(String userId)
findUserGroups in interface VradiDataServiceuserId - user wikitty id
public org.nuiton.wikitty.WikittyExtension getFormType(String name)
throws VradiException
getFormType in interface VradiDataServicename - the name of the form type we want to retrieve
VradiException
public org.nuiton.wikitty.WikittyExtension updateFormType(String name,
Map<String,org.nuiton.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
throws VradiException
updateFormType in interface VradiDataServicename - the name of the form type to updatefields - the new fields of the form typerequires - the new requires of the form typetagValues - the new tag values of the form type
VradiException
public org.nuiton.wikitty.WikittyExtension updateFormType(org.nuiton.wikitty.WikittyExtension extension)
throws VradiException
updateFormType in interface VradiDataServiceextension - the form type to update
VradiException
public org.nuiton.wikitty.WikittyExtension updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
throws VradiException
updateFormType in interface VradiDataServiceextension - the form type to update
VradiException
public FormPagedResult findForms(QueryParameters queryParameters,
FormPagedResult formPagedResult)
throws UnsupportedQueryException,
VradiException
VradiDataServicebeginDate 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.
findForms in interface VradiDataServicequeryParameters - query parameters
UnsupportedQueryException
VradiException
public Map<Thesaurus,Integer> getChildrenCartography(String thesaurusId,
QueryParameters queryParameters)
throws VradiException,
UnsupportedQueryException
VradiDataService
getChildrenCartography in interface VradiDataServicethesaurusId - thesaurusIdqueryParameters - query parameters
VradiException
UnsupportedQueryException
public List<XmlFieldBinding> updateXmlFieldBindings(List<XmlFieldBinding> bindings)
throws VradiException
updateXmlFieldBindings in interface VradiDataServicebindings - the list of the xml field bindings to update
VradiException
public List<org.nuiton.wikitty.WikittyExtension> getAllFormTypes()
throws VradiException
getAllFormTypes in interface VradiDataServiceVradiExceptionprotected org.nuiton.wikitty.WikittyExtension computeExtension(org.nuiton.wikitty.WikittyExtension extension)
public List<RootThesaurus> getRootThesaurus()
throws VradiException
getRootThesaurus in interface VradiDataServiceRootThesaurus collection
VradiException
public int getNbFormsForThesaurus(String thesaurusId)
throws VradiException
VradiDataServicethesaurusId.
getNbFormsForThesaurus in interface VradiDataServicethesaurusId - thesaurus id
VradiExceptionpublic List<Thesaurus> getThesaurusAttachedToForm(Form form)
getThesaurusAttachedToForm in interface VradiDataServiceform - form dont on veut les thesaurus
public List<Thesaurus> getChildrenThesaurus(String thesaurusId)
throws VradiException
thesaurusId sorted by name.
getChildrenThesaurus in interface VradiDataServicethesaurusId - thesaurus wikitty id
TreeNodeImpl
VradiException
public RootThesaurus createRootThesaurus(String rootThesaurusName)
throws VradiException
VradiDataService
createRootThesaurus in interface VradiDataServicerootThesaurusName - root thesaurus name (must contains only alphnum characters)
VradiException - if name is not valid
public List<String> deleteThesaurus(String thesaurusId)
throws VradiException
deleteThesaurus in interface VradiDataServicethesaurusId - thesaurusId to delete
VradiException
public void deleteAllThesaurus()
throws VradiException
deleteAllThesaurus in interface VradiDataServiceVradiException
public boolean isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName)
isThesaurusNameExistsInRootThesaurus in interface VradiDataServicerootThesaurus - root thesaurusthesaurusName - thesaurus name to test
public boolean isThesaurusNameExistsInRootThesaurus(RootThesaurus rootThesaurus,
String thesaurusName,
String exceptedThesaurusId)
isThesaurusNameExistsInRootThesaurus in interface VradiDataServicerootThesaurus - to checkthesaurusName - name to checkexceptedThesaurusId - in case of rename, exclude exceptedThesaurusId from check
public boolean isRootThesaurusNameExists(String rootThesaurusName)
isRootThesaurusNameExists in interface VradiDataServicerootThesaurusName - rootThesaurus name to test
public boolean isRootThesaurusNameExists(String rootThesaurusName,
String exceptedRootThesaurusId)
isRootThesaurusNameExists in interface VradiDataServicerootThesaurusName - rootThesaurus name to testexceptedRootThesaurusId - in case of rename, exclude exceptedRootThesaurusId from check
public boolean isFormTypeExists(String formTypeName)
throws VradiException
isFormTypeExists in interface VradiDataServiceformTypeName - form type name
VradiException - if name is not valid
public org.nuiton.wikitty.WikittyExtension createFormType(String formTypeName)
throws VradiException
createFormType in interface VradiDataServiceformTypeName - form type name
VradiException - if name is not validpublic boolean checkUserEmail(Sending sending)
VradiDataService
checkUserEmail in interface VradiDataServicesending - to check
public Session getSessionBySending(String sendingId)
VradiDataService
getSessionBySending in interface VradiDataServicesendingId - corresponding to session to find
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||