|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.thesaurus.control.ThesaurusBm
public class ThesaurusBm
ThesaurusBm Classe servant à gérer le métier du thesuaurus
Method Summary | |
---|---|
void |
createJargons(Collection<Jargon> jargons)
Crée une liste de jargons |
void |
createJargons(Connection con,
Collection<Jargon> jargons)
Crée une liste de jargons |
long |
createVocabulary(Vocabulary voca)
Crée un nouveau vocabulaire et retourne l'id de celui-ci |
void |
createVocaJargons(Collection<Jargon> jargons,
long idVoca)
Crée la liste des jargons d'un vocabulaire (suppression tous les jargons du voca puis création) |
void |
deleteJargons(Collection<Jargon> jargons)
Supprime tous les jargons passés en paramètre |
void |
deleteSynonyms(Collection<Long> idSynonyms)
Supprime les synonymes passés en paramètre |
void |
deleteSynonyms(String idVoca,
String idTree,
String idTerm)
Supprime les synonymes d'un terme dans un vocabulaire |
void |
deleteSynonymsAxis(Connection con,
long idTree)
Supprime les synonymes de tous les termes associés à l'axe passé en paramètre |
void |
deleteSynonymsTerms(Connection con,
long idTree,
List<String> idTerms)
Supprime les synonymes de tous les termes passés en paramètre |
void |
deleteVocabulary(long idVoca)
Supprime le vocabulaire passé en paramètre |
boolean |
existVocabulary(String name)
Retourne vrai si le vocabulaire passé en paramètre existe déjà |
static ThesaurusBm |
getInstance()
|
Jargon |
getJargon(String idUser)
Retourne le jargon de l'utilisateur (type 0) passé en paramètre |
Collection<Jargon> |
getJargons(Collection<String> idUsers,
int type)
Retourne la liste des jargons untilisés pas la liste des utilisateurs passés en paramètre Retoune une Collection de Jargon |
Collection<Jargon> |
getJargons(Connection con,
Collection<String> idUsers,
int type)
Retourne la liste des jargons untilisés pas la liste des utilisateurs passés en paramètre Retoune une Collection de Jargon |
Collection<Jargon> |
getJargons(long idVoca)
Retourne la liste des utilisateurs utilisant le vocabulaire passé en paramètre retourne une Collection de Jargon |
Collection<Vocabulary> |
getListVocabulary()
Retourne la liste des vocabulaires (Collection de Vocabulary) |
Collection<Synonym> |
getSynonyms(long idVoca,
long idTree,
long idTerm)
Retourne la liste des synonymes d'un vocabulaire, pour un terme |
Collection<Synonym> |
getSynonyms(long idVoca,
String name)
Retourne la liste des autres synonymes d'un synonyme dans un vocabulaire retourne une Collection de Synonym |
Collection<Synonym> |
getSynonymsByTree(long idVoca,
long idTree)
Retourne la liste des autres synonymes d'un synonyme dans un vocabulaire retourne une Collection de Synonym |
Vocabulary |
getVocabulary(long idVoca)
Retourne le détail du vocabulaire à partir d'un idVoca |
void |
updateSynonyms(Collection<Synonym> synonyms)
Met à jour une liste de synonymes |
void |
updateVocabulary(Vocabulary voca)
Met à jour le vocabulaire passé en paramètre |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ThesaurusBm getInstance()
public Collection<Vocabulary> getListVocabulary() throws ThesaurusException
ThesaurusException
public Vocabulary getVocabulary(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public long createVocabulary(Vocabulary voca) throws ThesaurusException
voca
-
ThesaurusException
public boolean existVocabulary(String name) throws ThesaurusException
name
-
ThesaurusException
public void updateVocabulary(Vocabulary voca) throws ThesaurusException
voca
-
ThesaurusException
public void deleteVocabulary(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public void deleteJargons(Collection<Jargon> jargons) throws ThesaurusException
jargons
-
ThesaurusException
public Collection<Synonym> getSynonyms(long idVoca, long idTree, long idTerm) throws ThesaurusException
idVoca
- idTree
- idTerm
-
ThesaurusException
public void updateSynonyms(Collection<Synonym> synonyms) throws ThesaurusException
synonyms
-
ThesaurusException
public void deleteSynonyms(String idVoca, String idTree, String idTerm) throws ThesaurusException
idVoca
- idTree
- idTerm
-
ThesaurusException
public void deleteSynonyms(Collection<Long> idSynonyms) throws ThesaurusException
idSynonyms
-
ThesaurusException
public void deleteSynonymsAxis(Connection con, long idTree) throws ThesaurusException
idTree
-
ThesaurusException
public void deleteSynonymsTerms(Connection con, long idTree, List<String> idTerms) throws ThesaurusException
idTree
- idTerms
- : List de String
ThesaurusException
public Collection<Jargon> getJargons(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public Collection<Jargon> getJargons(Collection<String> idUsers, int type) throws ThesaurusException
idUsers
- type
- (0=UserDetail ou 1=Group)
ThesaurusException
public Collection<Jargon> getJargons(Connection con, Collection<String> idUsers, int type) throws ThesaurusException
idUsers
- type
- (0=UserDetail ou 1=Group)
ThesaurusException
public void createJargons(Collection<Jargon> jargons) throws ThesaurusException
jargons
-
ThesaurusException
public void createJargons(Connection con, Collection<Jargon> jargons) throws ThesaurusException
jargons
-
ThesaurusException
public void createVocaJargons(Collection<Jargon> jargons, long idVoca) throws ThesaurusException
jargons
-
ThesaurusException
public Jargon getJargon(String idUser) throws ThesaurusException
idUser
-
ThesaurusException
public Collection<Synonym> getSynonyms(long idVoca, String name) throws ThesaurusException
idVoca
- name
-
ThesaurusException
public Collection<Synonym> getSynonymsByTree(long idVoca, long idTree) throws ThesaurusException
idVoca
- idTree
-
ThesaurusException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |