com.jurismarches.vradi.services.managers
Class ThesaurusManager

java.lang.Object
  extended by com.jurismarches.vradi.services.managers.ThesaurusManager

public class ThesaurusManager
extends java.lang.Object

Class containing the methods to manage the thesaurus : - node creation, update, retrieving, deletion - get child node number - get children TODO SLE 27/07/10 : Do for descripteurs

Version:
$Revision: 1184 $ $Date: 2010-08-05 15:20:36 +0200 (jeu., 05 août 2010) $
Author:
schorlet

Field Summary
protected  org.nuiton.wikitty.WikittyProxy proxy
           
 
Constructor Summary
ThesaurusManager(org.nuiton.wikitty.WikittyProxy proxy)
           
 
Method Summary
 java.util.List<Thesaurus> getAllThesaurus()
           
 java.util.List<Thesaurus> getChildrenThesaurus(java.lang.String thesaurusId)
           
 int getNbFormsForThesaurus(java.lang.String thesaurusId)
           
 java.util.Map<Group,java.util.List<QueryBean>> getQueriesToModifyAfterThesaurusModification(java.lang.String rootThesaurusName, java.lang.String thesaurusName)
          Gets the query makers whose queries are potentially to modify after a thesaurus node modification
 java.util.List<RootThesaurus> getRootThesaurus()
          Return root thesaurus (ie thesaurus nodes without parent).
 java.util.List<Thesaurus> getThesaurus(java.util.List<java.lang.String> thesaurusIds)
           
 Thesaurus getThesaurus(java.lang.String thesaurusId)
           
 java.util.List<Thesaurus> proposeThesaurus(Form form)
          Propose thesaurus nodes that might be in relation with a specified form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proxy

protected final org.nuiton.wikitty.WikittyProxy proxy
Constructor Detail

ThesaurusManager

public ThesaurusManager(org.nuiton.wikitty.WikittyProxy proxy)
Method Detail

getRootThesaurus

public java.util.List<RootThesaurus> getRootThesaurus()
                                               throws VradiException
Return root thesaurus (ie thesaurus nodes without parent).

Returns:
a RootThesaurus collection
Throws:
VradiException

getAllThesaurus

public java.util.List<Thesaurus> getAllThesaurus()
                                          throws VradiException
Throws:
VradiException

getThesaurus

public Thesaurus getThesaurus(java.lang.String thesaurusId)
                       throws VradiException
Throws:
VradiException

getThesaurus

public java.util.List<Thesaurus> getThesaurus(java.util.List<java.lang.String> thesaurusIds)
                                       throws VradiException
Throws:
VradiException

getChildrenThesaurus

public java.util.List<Thesaurus> getChildrenThesaurus(java.lang.String thesaurusId)
                                               throws VradiException
Throws:
VradiException

getNbFormsForThesaurus

public int getNbFormsForThesaurus(java.lang.String thesaurusId)
                           throws VradiException
Throws:
VradiException

proposeThesaurus

public java.util.List<Thesaurus> proposeThesaurus(Form form)
                                           throws VradiException
Propose thesaurus nodes that might be in relation with a specified form

Parameters:
form - the Form containing the information needed to search the thesaurus nodes
Returns:
a list of Thesaurus
Throws:
VradiException

getQueriesToModifyAfterThesaurusModification

public java.util.Map<Group,java.util.List<QueryBean>> getQueriesToModifyAfterThesaurusModification(java.lang.String rootThesaurusName,
                                                                                                   java.lang.String thesaurusName)
Gets the query makers whose queries are potentially to modify after a thesaurus node modification

Parameters:
thesaurusName - the modified thesaurus node
Returns:
a map containing the query makers and their queries which contains the thesaurus node name


Copyright © 2009-2010 JurisMarches. All Rights Reserved.