com.jurismarches.vradi.services.managers
Class ThesaurusManager

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

public class ThesaurusManager
extends Object

Class containing the methods to manage the thesaurus : - node creation, update, retrieving, deletion - get child node number - get children

Version:
$Revision: 783 $ $Date: 2010-04-28 12:34:13 +0200 (mer., 28 avril 2010) $
Author:
schorlet

Constructor Summary
ThesaurusManager(org.sharengo.wikitty.WikittyProxy proxy)
           
 
Method Summary
 List<org.sharengo.wikitty.TreeNodeImpl> getAllThesaurus()
           
 List<org.sharengo.wikitty.TreeNodeImpl> getChildrenThesaurus(String thesaurusId)
           
 int getNbFormsForThesaurus(String thesaurusId)
           
 Map<QueryMaker,List<VradiQueryBean>> getQueriesToModifyAfterThesaurusModification(String thesaurusName)
          Gets the query makers whose queries are potentially to modify after a thesaurus node modification
 org.sharengo.wikitty.TreeNodeImpl getRootThesaurus()
           
 List<org.sharengo.wikitty.TreeNodeImpl> getThesaurus(List<String> thesaurusIds)
           
 org.sharengo.wikitty.TreeNodeImpl getThesaurus(String thesaurusId)
           
 List<org.sharengo.wikitty.TreeNodeImpl> proposeThesaurus(Form form, List<org.sharengo.wikitty.TreeNodeImpl> thesaurus)
          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
 

Constructor Detail

ThesaurusManager

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

getRootThesaurus

public org.sharengo.wikitty.TreeNodeImpl getRootThesaurus()
                                                   throws VradiException
Throws:
VradiException

getAllThesaurus

public List<org.sharengo.wikitty.TreeNodeImpl> getAllThesaurus()
                                                        throws VradiException
Throws:
VradiException

getThesaurus

public org.sharengo.wikitty.TreeNodeImpl getThesaurus(String thesaurusId)
                                               throws VradiException
Throws:
VradiException

getThesaurus

public List<org.sharengo.wikitty.TreeNodeImpl> getThesaurus(List<String> thesaurusIds)
                                                     throws VradiException
Throws:
VradiException

getChildrenThesaurus

public List<org.sharengo.wikitty.TreeNodeImpl> getChildrenThesaurus(String thesaurusId)
                                                             throws VradiException
Throws:
VradiException

getNbFormsForThesaurus

public int getNbFormsForThesaurus(String thesaurusId)
                           throws VradiException
Throws:
VradiException

proposeThesaurus

public List<org.sharengo.wikitty.TreeNodeImpl> proposeThesaurus(Form form,
                                                                List<org.sharengo.wikitty.TreeNodeImpl> thesaurus)
                                                         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
thesaurus - the list of all the tree nodes of the thesaurus
Returns:
a list of TreeNodeImpl
Throws:
VradiException

getQueriesToModifyAfterThesaurusModification

public Map<QueryMaker,List<VradiQueryBean>> getQueriesToModifyAfterThesaurusModification(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.