|
||||||||||
| 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 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 | ||
|---|---|---|
protected org.nuiton.wikitty.WikittyExtension |
computeExtension(org.nuiton.wikitty.WikittyExtension extension)
Compute the specified extension and return a new one with ordered fields. |
|
java.util.List<Status> |
createDefaultStatuses()
Create all default status. |
|
protected
|
findAllByExtension(java.lang.Class<T> type,
java.lang.String extension,
java.lang.String... sortFields)
Do a find all by applying a criteria to WikittyProxy. |
|
java.util.List<Client> |
findAllClients()
Find all clients. |
|
java.util.List<Group> |
findAllGroups()
Find all groups. |
|
java.util.List<Thesaurus> |
findAllThesaurus()
Find all thesaurus. |
|
java.util.List<User> |
findAllUsers()
Find all users. |
|
java.util.List<WebHarvestStream> |
findAllWebHarvest()
Find all webHarvest stream. |
|
java.util.List<XmlStream> |
findAllXmlStreams()
Find all xml streams. |
|
java.util.List<User> |
findClientUsers(java.lang.String clientId)
Find all users for a client. |
|
FormPagedResult |
findForms(java.lang.String query,
org.nuiton.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.lang.String streamId,
java.util.List<java.lang.String> thesaurus,
java.lang.String[] statusIds,
FormPagedResult formPagedResult)
Searches for forms with the specified filters. |
|
java.util.List<org.nuiton.wikitty.WikittyExtension> |
getAllFormTypes()
Retrieves all the form types |
|
java.util.List<Thesaurus> |
getChildrenThesaurus(java.lang.String thesaurusId)
Returns all children of the specified thesaurusId. |
|
org.nuiton.wikitty.WikittyExtension |
getFormType(java.lang.String name)
Retrieves the form type whose name is the parameter 'name' |
|
int |
getNbFormsForThesaurus(java.lang.String thesaurusId)
Computes the number of forms associated with the specified thesaurusId. |
|
java.util.List<RootThesaurus> |
getRootThesaurus()
Return root thesaurus nodes. |
|
ThesaurusCartography |
getThesaurusCartography(java.lang.String query,
org.nuiton.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.lang.String streamId,
java.util.List<java.lang.String> thesaurus,
java.lang.String[] statusIds)
Computes the number of forms associated with every thesaurus node. |
|
protected void |
initManagers()
Init managers. |
|
org.nuiton.wikitty.WikittyExtension |
updateFormType(java.lang.String name,
java.util.Map<java.lang.String,org.nuiton.wikitty.FieldType> fields,
java.lang.String requires,
java.util.Map<java.lang.String,java.lang.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 |
|
java.util.List<XmlFieldBinding> |
updateXmlFieldBindings(java.util.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
| Constructor Detail |
|---|
public VradiDataServiceImpl(org.nuiton.wikitty.WikittyProxy wikittyProxy)
wikittyProxy - wikitty proxy| Method Detail |
|---|
protected void initManagers()
protected <T extends org.nuiton.wikitty.BusinessEntity> java.util.List<T> findAllByExtension(java.lang.Class<T> type,
java.lang.String extension,
java.lang.String... sortFields)
T - type of resulttype - type to searchextension - extension to searchsortFields - sort fields (ascending to sort on)
public java.util.List<Client> findAllClients()
findAllClients in interface VradiDataServicepublic java.util.List<User> findAllUsers()
findAllUsers in interface VradiDataServicepublic java.util.List<Group> findAllGroups()
findAllGroups in interface VradiDataService
public java.util.List<Status> createDefaultStatuses()
throws VradiException
createDefaultStatuses in interface VradiDataServiceVradiExceptionpublic java.util.List<WebHarvestStream> findAllWebHarvest()
findAllWebHarvest in interface VradiDataServicepublic java.util.List<XmlStream> findAllXmlStreams()
findAllXmlStreams in interface VradiDataServicepublic java.util.List<Thesaurus> findAllThesaurus()
findAllThesaurus in interface VradiDataServicepublic java.util.List<User> findClientUsers(java.lang.String clientId)
findClientUsers in interface VradiDataServiceclientId - client wikitty id
public org.nuiton.wikitty.WikittyExtension getFormType(java.lang.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(java.lang.String name,
java.util.Map<java.lang.String,org.nuiton.wikitty.FieldType> fields,
java.lang.String requires,
java.util.Map<java.lang.String,java.lang.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 FormPagedResult findForms(java.lang.String query,
org.nuiton.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.lang.String streamId,
java.util.List<java.lang.String> thesaurus,
java.lang.String[] statusIds,
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 VradiDataServicequery - the query filterextension - the extension filterdateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterstreamId - id of streamthesaurus - the thesaurus filterstatusIds - the ids of the status filtersformPagedResult - ...
UnsupportedQueryException
VradiException
public ThesaurusCartography getThesaurusCartography(java.lang.String query,
org.nuiton.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.lang.String streamId,
java.util.List<java.lang.String> thesaurus,
java.lang.String[] statusIds)
throws VradiException,
UnsupportedQueryException
VradiDataService
getThesaurusCartography in interface VradiDataServicequery - the query filterextension - the extension filterdateType - the date field. Must be fully qualified (extension.field)beginDate - the begin date filterendDate - the end date filterstreamId - id of streamthesaurus - 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
public java.util.List<XmlFieldBinding> updateXmlFieldBindings(java.util.List<XmlFieldBinding> bindings)
throws VradiException
updateXmlFieldBindings in interface VradiDataServicebindings - the list of the xml field bindings to update
VradiException
public java.util.List<org.nuiton.wikitty.WikittyExtension> getAllFormTypes()
throws VradiException
getAllFormTypes in interface VradiDataServiceVradiExceptionprotected org.nuiton.wikitty.WikittyExtension computeExtension(org.nuiton.wikitty.WikittyExtension extension)
public java.util.List<RootThesaurus> getRootThesaurus()
throws VradiException
VradiDataService
getRootThesaurus in interface VradiDataServiceRootThesaurus
VradiException
public int getNbFormsForThesaurus(java.lang.String thesaurusId)
throws VradiException
VradiDataServicethesaurusId.
getNbFormsForThesaurus in interface VradiDataServicethesaurusId - thesaurus id
VradiException
public java.util.List<Thesaurus> getChildrenThesaurus(java.lang.String thesaurusId)
throws VradiException
VradiDataServicethesaurusId.
getChildrenThesaurus in interface VradiDataServiceTreeNodeImpl
VradiException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||