com.jurismarches.vradi.ui.thesaurus.helpers
Class ThesaurusDataHelper

java.lang.Object
  extended by com.jurismarches.vradi.ui.thesaurus.helpers.ThesaurusDataHelper

public class ThesaurusDataHelper
extends Object


Constructor Summary
ThesaurusDataHelper()
           
 
Method Summary
static String concateOrderName(Thesaurus thesaurus)
          Concatenate order and name of thesaurus in param (order - name}
static List<Thesaurus> getChildrenRecursivly(Thesaurus thesaurus)
           
static int getDepth(Thesaurus thesaurus)
           
static String getNamePath(Thesaurus thesaurus, String pathSeparator)
          Get the path with name of thesaurus (root/thesaurus...)
static int getNbFormsForThesaurus(Thesaurus thesaurus)
          Return number of form associated to thesaurus pass in param
static String getParentPath(Thesaurus thesaurus, String pathSeparator)
           
static org.nuiton.wikitty.WikittyProxy getProxy()
          Get the wikitty proxy
static String getRequestName(Thesaurus thesaurus)
           
protected static List<String> getStringAsList(String s)
           
static String getTagsAsString(Thesaurus thesaurus)
          Get tags as string (tag1, tag2, ...)
static boolean isFirstChild(Thesaurus thesaurus)
           
static List<RootThesaurus> restoreRootThesaurus(List<String> rootThesaurusIds)
          Get corresponding list root thesaurus
static RootThesaurus restoreRootThesaurus(String rootThesaurusId)
          Get corresponding root thesaurus
static List<Thesaurus> restoreThesaurus(Collection<String> thesaurusIds)
          Get corresponding list of thesaurus
static Thesaurus restoreThesaurus(String thesaurusId)
          Get corresponding thesaurus
static void setTagsAsString(Thesaurus thesaurus, String tagsAsString)
          Set tags as string (tag1, tag2, ...)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThesaurusDataHelper

public ThesaurusDataHelper()
Method Detail

getProxy

public static org.nuiton.wikitty.WikittyProxy getProxy()
Get the wikitty proxy

Returns:
WikittyProxy

restoreThesaurus

public static Thesaurus restoreThesaurus(String thesaurusId)
Get corresponding thesaurus

Parameters:
thesaurusId - thesaurus id
Returns:
Thesaurus from base

restoreThesaurus

public static List<Thesaurus> restoreThesaurus(Collection<String> thesaurusIds)
Get corresponding list of thesaurus

Parameters:
thesaurusIds - thesaurus ids
Returns:
List of thesaurus from base

restoreRootThesaurus

public static RootThesaurus restoreRootThesaurus(String rootThesaurusId)
Get corresponding root thesaurus

Parameters:
rootThesaurusId - root thesaurus id
Returns:
Thesaurus from base

restoreRootThesaurus

public static List<RootThesaurus> restoreRootThesaurus(List<String> rootThesaurusIds)
Get corresponding list root thesaurus

Parameters:
rootThesaurusIds - root thesaurus ids
Returns:
List root thesaurus from base

getNamePath

public static String getNamePath(Thesaurus thesaurus,
                                 String pathSeparator)
Get the path with name of thesaurus (root/thesaurus...)

Parameters:
thesaurus - thesaurus concerned
pathSeparator - separator
Returns:
path with name

concateOrderName

public static String concateOrderName(Thesaurus thesaurus)
Concatenate order and name of thesaurus in param (order - name}

Parameters:
thesaurus - thesaurus concerned
Returns:
concatenate order and name

getTagsAsString

public static String getTagsAsString(Thesaurus thesaurus)
Get tags as string (tag1, tag2, ...)

Parameters:
thesaurus - thesaurus concerned
Returns:
tags as string

setTagsAsString

public static void setTagsAsString(Thesaurus thesaurus,
                                   String tagsAsString)
Set tags as string (tag1, tag2, ...)

Parameters:
thesaurus - thesaurus concerned
tagsAsString - tags as string

getNbFormsForThesaurus

public static int getNbFormsForThesaurus(Thesaurus thesaurus)
Return number of form associated to thesaurus pass in param

Parameters:
thesaurus - thesaurus concerned
Returns:
number of form associated

getStringAsList

protected static List<String> getStringAsList(String s)

getParentPath

public static String getParentPath(Thesaurus thesaurus,
                                   String pathSeparator)

getDepth

public static int getDepth(Thesaurus thesaurus)

isFirstChild

public static boolean isFirstChild(Thesaurus thesaurus)

getRequestName

public static String getRequestName(Thesaurus thesaurus)

getChildrenRecursivly

public static List<Thesaurus> getChildrenRecursivly(Thesaurus thesaurus)
                                             throws VradiException
Throws:
VradiException


Copyright © 2009-2011 JurisMarches. All Rights Reserved.