com.jurismarches.vradi.ui.helpers
Class ThesaurusDataHelper

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

public class ThesaurusDataHelper
extends java.lang.Object


Constructor Summary
ThesaurusDataHelper()
           
 
Method Summary
static java.lang.String concateOrderName(Thesaurus thesaurus)
          Concatenate order and name of thesaurus in param (order - name}
static int getDepth(Thesaurus thesaurus)
           
static java.lang.String getNamePath(Thesaurus thesaurus, java.lang.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 java.lang.String getParentPath(Thesaurus thesaurus, java.lang.String pathSeparator)
           
static org.nuiton.wikitty.WikittyProxy getProxy()
          Get the wikitty proxy
static java.lang.String getRequestName(Thesaurus thesaurus)
           
protected static java.util.List<java.lang.String> getStringAsList(java.lang.String s)
           
static java.lang.String getTagsAsString(Thesaurus thesaurus)
          Get tags as string (tag1, tag2, ...)
static boolean isFirstChild(Thesaurus thesaurus)
           
static java.util.List<RootThesaurus> restoreRootThesaurus(java.util.List<java.lang.String> rootThesaurusIds)
          Get corresponding list root thesaurus
static RootThesaurus restoreRootThesaurus(java.lang.String rootThesaurusId)
          Get corresponding root thesaurus
static java.util.List<Thesaurus> restoreThesaurus(java.util.List<java.lang.String> thesaurusIds)
          Get corresponding list of thesaurus
static java.util.List<Thesaurus> restoreThesaurus(java.util.Set<java.lang.String> thesaurusIds)
           
static Thesaurus restoreThesaurus(java.lang.String thesaurusId)
          Get corresponding thesaurus
static void setTagsAsString(Thesaurus thesaurus, java.lang.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(java.lang.String thesaurusId)
Get corresponding thesaurus

Parameters:
thesaurusId - thesaurus id
Returns:
Thesaurus from base

restoreThesaurus

public static java.util.List<Thesaurus> restoreThesaurus(java.util.List<java.lang.String> thesaurusIds)
Get corresponding list of thesaurus

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

restoreThesaurus

public static java.util.List<Thesaurus> restoreThesaurus(java.util.Set<java.lang.String> thesaurusIds)

restoreRootThesaurus

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

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

restoreRootThesaurus

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

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

getNamePath

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

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

concateOrderName

public static java.lang.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 java.lang.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,
                                   java.lang.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 java.util.List<java.lang.String> getStringAsList(java.lang.String s)

getParentPath

public static java.lang.String getParentPath(Thesaurus thesaurus,
                                             java.lang.String pathSeparator)

getDepth

public static int getDepth(Thesaurus thesaurus)

isFirstChild

public static boolean isFirstChild(Thesaurus thesaurus)

getRequestName

public static java.lang.String getRequestName(Thesaurus thesaurus)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.