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: 498 $ $Date: 2010-02-09 12:10:31 +0100 (mar., 09 févr. 2010) $
Author:
schorlet

Field Summary
static String ROOT_THESAURUS_NAME
           
 
Constructor Summary
ThesaurusManager()
           
ThesaurusManager(org.sharengo.wikitty.WikittyProxy proxy)
           
 
Method Summary
 List<org.sharengo.wikitty.TreeNode> getAllThesaurus()
           
 List<org.sharengo.wikitty.TreeNode> getChildrenThesaurus(String thesaurusId)
           
 Map<org.sharengo.wikitty.TreeNode,Integer> getNbFormsByThesaurus()
           
 int getNbFormsForThesaurus(String thesaurusId)
           
 org.sharengo.wikitty.TreeNode getRootThesaurus()
           
 List<org.sharengo.wikitty.TreeNode> getThesaurus(List<String> thesaurusIds)
           
 org.sharengo.wikitty.TreeNode getThesaurus(String thesaurusId)
           
 List<org.sharengo.wikitty.TreeNode> proposeThesaurus(Form form, List<org.sharengo.wikitty.TreeNode> 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
 

Field Detail

ROOT_THESAURUS_NAME

public static final String ROOT_THESAURUS_NAME
See Also:
Constant Field Values
Constructor Detail

ThesaurusManager

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

ThesaurusManager

public ThesaurusManager()
Method Detail

getRootThesaurus

public org.sharengo.wikitty.TreeNode getRootThesaurus()
                                               throws TechnicalException
Throws:
TechnicalException

getAllThesaurus

public List<org.sharengo.wikitty.TreeNode> getAllThesaurus()
                                                    throws TechnicalException
Throws:
TechnicalException

getThesaurus

public org.sharengo.wikitty.TreeNode getThesaurus(String thesaurusId)
                                           throws TechnicalException
Throws:
TechnicalException

getThesaurus

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

getChildrenThesaurus

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

getNbFormsByThesaurus

public Map<org.sharengo.wikitty.TreeNode,Integer> getNbFormsByThesaurus()
                                                                 throws TechnicalException
Throws:
TechnicalException

getNbFormsForThesaurus

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

proposeThesaurus

public List<org.sharengo.wikitty.TreeNode> proposeThesaurus(Form form,
                                                            List<org.sharengo.wikitty.TreeNode> thesaurus)
                                                     throws TechnicalException
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 TreeNode
Throws:
TechnicalException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.