|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.VradiStorageServiceImpl
public class VradiStorageServiceImpl
| Field Summary | |
|---|---|
protected static java.lang.String |
channel
|
protected static java.lang.String |
defaultFormSendingStatus
|
protected static java.lang.String |
entry
|
protected static java.lang.String |
feed
|
protected static java.lang.String |
fieldPattern
|
protected static java.lang.String |
item
|
protected static java.lang.String |
notPattern
|
protected org.sharengo.wikitty.WikittyProxy |
proxy
|
protected java.util.List<java.lang.String> |
queriesInTheDB
|
protected static java.util.regex.Pattern |
queryPattern
|
protected static java.lang.String |
rdf
|
static java.lang.String |
ROOT_THESAURUS_NAME
|
static java.text.SimpleDateFormat |
RSS_DATE_FORMAT
|
protected static java.lang.String |
valuePattern
|
| Constructor Summary | |
|---|---|
VradiStorageServiceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addTokens(org.sharengo.wikitty.search.Search search,
java.lang.String[] tokens,
java.lang.String field,
java.util.Map<java.lang.String,java.lang.String> caught)
Add the equals or not equals conditions to the search |
void |
bindFormsToClients()
|
void |
changeDataDir(java.lang.String newDataDir,
java.lang.String oldDataDir)
|
protected void |
createQuery(org.sharengo.wikitty.search.Search search,
java.util.Map<java.lang.String,java.lang.String> caught,
java.lang.String sss,
java.lang.String field)
Add the AND or OR to the search |
void |
deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
|
void |
deleteForm(java.lang.String formId)
Deletes a Form |
protected java.lang.Boolean |
equalsFieldValue(java.lang.String[] tokens,
java.lang.String field,
java.util.Map<java.lang.String,java.lang.String> caught,
Form form,
java.lang.Boolean and)
Add the equals or not equals conditions to the search |
java.util.List<Form> |
findForms(java.lang.String query)
Find the forms filtered by the parameter query |
java.util.List<Form> |
findForms(java.lang.String query,
org.sharengo.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.util.List[] thesaurus)
Find the forms filtered by the parameter query |
java.util.List<Client> |
getAllClients()
|
protected java.util.List<org.sharengo.wikitty.BusinessEntity> |
getAllEntities(java.lang.Class clazz,
java.lang.String ext)
|
java.util.List<Form> |
getAllForms()
Get all the forms recorded |
java.util.List<org.sharengo.wikitty.WikittyExtension> |
getAllFormTypes()
Get all the form types |
java.util.List<Group> |
getAllGroups()
|
java.util.List<org.sharengo.wikitty.TreeNode> |
getAllThesaurus()
|
java.util.List<User> |
getAllUsers()
|
java.util.List<XmlStream> |
getAllXmlStreams()
|
Client |
getClient(java.lang.String clientId)
|
Client |
getClientByUserId(java.lang.String userId)
|
java.util.Map<Form,java.util.List<Client>> |
getClientsByForms(java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
|
java.util.List<User> |
getClientUsers(java.lang.String clientId)
|
org.sharengo.wikitty.BusinessEntity |
getEntity(java.lang.String id,
java.lang.Class clazz)
|
Form |
getForm(java.lang.String formId)
Get the form whose id is id. |
java.util.List<Form> |
getForms(java.util.List<java.lang.String> formIds)
Get the form whose id is id. |
java.util.List<VradiSendingDTO> |
getFormsByClients(java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
|
java.lang.String |
getFormsFromXmlStream(XmlStream xmlStream,
java.lang.String lastItemRecorded)
|
org.sharengo.wikitty.WikittyExtension |
getFormType(java.lang.String name)
Get the last version of the extension named name |
java.util.Map<java.lang.String,org.sharengo.wikitty.FieldType> |
getFormTypeFields(java.lang.String name)
Get the fields of a form type |
Group |
getGroup(java.lang.String groupId)
|
java.util.List<Client> |
getGroupClients(java.lang.String groupId)
|
java.util.List<Group> |
getGroupsByClientId(java.lang.String clientId)
|
java.util.List<Group> |
getGroupsByUserId(java.lang.String userId)
|
java.util.List<User> |
getGroupUsers(java.lang.String groupId)
|
java.util.List<java.lang.String> |
getQueriesReturningForm(Form form)
|
org.sharengo.wikitty.TreeNode |
getRootThesaurus()
|
java.util.List<java.lang.String> |
getRSSFields(java.lang.String url)
|
org.sharengo.wikitty.TreeNode |
getThesaurus(java.lang.String thesaurusId)
|
User |
getUser(java.lang.String userId)
|
XmlFieldBinding |
getXmlFieldBinding(java.lang.String xmlFieldBindingId)
|
java.util.List<XmlFieldBinding> |
getXmlFieldBindings(XmlStream xmlStream)
|
XmlStream |
getXmlStream(java.lang.String xmlStreamId)
|
protected java.lang.Class |
initCacheMap(java.lang.Class clazz)
|
protected java.lang.Boolean |
isQueryReturningForm(java.util.Map<java.lang.String,java.lang.String> caught,
java.lang.String sss,
java.lang.String field,
Form form)
Add the AND or OR to the search |
protected java.util.Map<java.lang.String,java.lang.String> |
parseQuery(java.lang.String query)
|
org.sharengo.wikitty.BusinessEntity |
updateEntity(org.sharengo.wikitty.BusinessEntity entity)
|
Form |
updateForm(Form form)
Saves a form |
org.sharengo.wikitty.WikittyExtension |
updateFormType(java.lang.String name,
java.util.Map<java.lang.String,org.sharengo.wikitty.FieldType> fields,
java.lang.String requires)
Inserts a form type. |
org.sharengo.wikitty.WikittyExtension |
updateFormType(org.sharengo.wikitty.WikittyExtension extention)
Inserts a form type. |
java.util.List<XmlFieldBinding> |
updateXmlFieldBindings(java.util.List<XmlFieldBinding> bindings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.sharengo.wikitty.WikittyProxy proxy
protected static java.lang.String fieldPattern
protected static java.lang.String valuePattern
protected static java.lang.String notPattern
protected static java.util.regex.Pattern queryPattern
public static java.lang.String ROOT_THESAURUS_NAME
protected static java.lang.String channel
protected static java.lang.String entry
protected static java.lang.String feed
protected static java.lang.String item
protected static java.lang.String rdf
protected static java.lang.String defaultFormSendingStatus
public static java.text.SimpleDateFormat RSS_DATE_FORMAT
protected java.util.List<java.lang.String> queriesInTheDB
| Constructor Detail |
|---|
public VradiStorageServiceImpl()
| Method Detail |
|---|
protected java.lang.Class initCacheMap(java.lang.Class clazz)
throws TechnicalException
TechnicalException
public org.sharengo.wikitty.BusinessEntity getEntity(java.lang.String id,
java.lang.Class clazz)
throws TechnicalException
getEntity in interface VradiStorageServiceTechnicalException
protected java.util.List<org.sharengo.wikitty.BusinessEntity> getAllEntities(java.lang.Class clazz,
java.lang.String ext)
public org.sharengo.wikitty.BusinessEntity updateEntity(org.sharengo.wikitty.BusinessEntity entity)
throws TechnicalException
updateEntity in interface VradiStorageServiceTechnicalException
public void deleteEntity(org.sharengo.wikitty.BusinessEntity entity)
throws TechnicalException
deleteEntity in interface VradiStorageServiceTechnicalException
public User getUser(java.lang.String userId)
throws TechnicalException
getUser in interface VradiStorageServiceTechnicalException
public Client getClient(java.lang.String clientId)
throws TechnicalException
getClient in interface VradiStorageServiceTechnicalException
public Group getGroup(java.lang.String groupId)
throws TechnicalException
getGroup in interface VradiStorageServiceTechnicalException
public java.util.List<User> getGroupUsers(java.lang.String groupId)
throws TechnicalException
getGroupUsers in interface VradiStorageServiceTechnicalException
public java.util.List<User> getClientUsers(java.lang.String clientId)
throws TechnicalException
getClientUsers in interface VradiStorageServiceTechnicalException
public java.util.List<Client> getGroupClients(java.lang.String groupId)
throws TechnicalException
getGroupClients in interface VradiStorageServiceTechnicalException
public Client getClientByUserId(java.lang.String userId)
throws TechnicalException
getClientByUserId in interface VradiStorageServiceTechnicalException
public java.util.List<Group> getGroupsByUserId(java.lang.String userId)
throws TechnicalException
getGroupsByUserId in interface VradiStorageServiceTechnicalException
public java.util.List<Group> getGroupsByClientId(java.lang.String clientId)
throws TechnicalException
getGroupsByClientId in interface VradiStorageServiceTechnicalException
public java.util.List<Client> getAllClients()
throws TechnicalException
getAllClients in interface VradiStorageServiceTechnicalException
public java.util.List<User> getAllUsers()
throws TechnicalException
getAllUsers in interface VradiStorageServiceTechnicalException
public java.util.List<Group> getAllGroups()
throws TechnicalException
getAllGroups in interface VradiStorageServiceTechnicalExceptionpublic Form updateForm(Form form)
updateForm in interface VradiStorageServiceform - the form to insert or update
public void deleteForm(java.lang.String formId)
deleteForm in interface VradiStorageServiceformId - the id of the Form to deletepublic java.util.List<Form> findForms(java.lang.String query)
findForms in interface VradiStorageServicequery - the query to filter the forms
public java.util.List<Form> findForms(java.lang.String query,
org.sharengo.wikitty.WikittyExtension extension,
java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
java.util.List[] thesaurus)
findForms in interface VradiStorageServicequery - the query to filter the formsbeginDate - endDate -
public java.util.List<java.lang.String> getQueriesReturningForm(Form form)
throws TechnicalException
getQueriesReturningForm in interface VradiStorageServiceTechnicalExceptionprotected java.util.Map<java.lang.String,java.lang.String> parseQuery(java.lang.String query)
public java.util.List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
getAllFormTypes in interface VradiStorageServicepublic org.sharengo.wikitty.WikittyExtension getFormType(java.lang.String name)
getFormType in interface VradiStorageServicename - the name of the extension
public java.util.Map<java.lang.String,org.sharengo.wikitty.FieldType> getFormTypeFields(java.lang.String name)
getFormTypeFields in interface VradiStorageServicename - the name of the field type
public org.sharengo.wikitty.WikittyExtension updateFormType(java.lang.String name,
java.util.Map<java.lang.String,org.sharengo.wikitty.FieldType> fields,
java.lang.String requires)
updateFormType in interface VradiStorageServicename - the name of the form typefields - the fields of the form type
public org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extention)
updateFormType in interface VradiStorageServiceextention - to store
public Form getForm(java.lang.String formId)
getForm in interface VradiStorageServiceformId - the id of the form
public java.util.List<Form> getForms(java.util.List<java.lang.String> formIds)
getForms in interface VradiStorageServiceformIds - the ids of the forms
public java.util.List<Form> getAllForms()
getAllForms in interface VradiStorageService
protected void createQuery(org.sharengo.wikitty.search.Search search,
java.util.Map<java.lang.String,java.lang.String> caught,
java.lang.String sss,
java.lang.String field)
search - the Search instance to add the conditionscaught - the map of the patterns with their idsss - the id of the pattern matchedfield - the field which must (or not) be equals to the values
protected void addTokens(org.sharengo.wikitty.search.Search search,
java.lang.String[] tokens,
java.lang.String field,
java.util.Map<java.lang.String,java.lang.String> caught)
search - the Search instance to add the conditionstokens - the list of values that must equals or not the searchfield - the field which must (or not) be equals to the valuescaught - the map of the patterns with their id
protected java.lang.Boolean isQueryReturningForm(java.util.Map<java.lang.String,java.lang.String> caught,
java.lang.String sss,
java.lang.String field,
Form form)
caught - the map of the patterns with their idsss - the id of the pattern matchedfield - the field which must (or not) be equals to the values
protected java.lang.Boolean equalsFieldValue(java.lang.String[] tokens,
java.lang.String field,
java.util.Map<java.lang.String,java.lang.String> caught,
Form form,
java.lang.Boolean and)
tokens - the list of values that must equals or not the searchfield - the field which must (or not) be equals to the valuescaught - the map of the patterns with their idpublic java.util.List<XmlStream> getAllXmlStreams()
getAllXmlStreams in interface VradiStorageServicepublic java.util.List<XmlFieldBinding> updateXmlFieldBindings(java.util.List<XmlFieldBinding> bindings)
updateXmlFieldBindings in interface VradiStorageService
public org.sharengo.wikitty.TreeNode getRootThesaurus()
throws TechnicalException
getRootThesaurus in interface VradiStorageServiceTechnicalException
public java.util.List<org.sharengo.wikitty.TreeNode> getAllThesaurus()
throws TechnicalException
getAllThesaurus in interface VradiStorageServiceTechnicalException
public org.sharengo.wikitty.TreeNode getThesaurus(java.lang.String thesaurusId)
throws TechnicalException
getThesaurus in interface VradiStorageServiceTechnicalException
public XmlStream getXmlStream(java.lang.String xmlStreamId)
throws TechnicalException
getXmlStream in interface VradiStorageServiceTechnicalExceptionpublic XmlFieldBinding getXmlFieldBinding(java.lang.String xmlFieldBindingId)
getXmlFieldBinding in interface VradiStorageServicepublic java.util.List<XmlFieldBinding> getXmlFieldBindings(XmlStream xmlStream)
getXmlFieldBindings in interface VradiStorageServicepublic void bindFormsToClients()
bindFormsToClients in interface VradiStorageService
public java.util.List<VradiSendingDTO> getFormsByClients(java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
throws TechnicalException
getFormsByClients in interface VradiStorageServiceTechnicalException
public java.util.Map<Form,java.util.List<Client>> getClientsByForms(java.lang.String dateType,
java.util.Date beginDate,
java.util.Date endDate,
org.sharengo.wikitty.WikittyExtension extension)
getClientsByForms in interface VradiStorageService
public java.lang.String getFormsFromXmlStream(XmlStream xmlStream,
java.lang.String lastItemRecorded)
getFormsFromXmlStream in interface VradiStorageServicepublic java.util.List<java.lang.String> getRSSFields(java.lang.String url)
public void changeDataDir(java.lang.String newDataDir,
java.lang.String oldDataDir)
changeDataDir in interface VradiStorageService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||