|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.silverpeas.peasCore.AbstractComponentSessionController
com.silverpeas.thesaurusPeas.control.ThesaurusSessionController
public class ThesaurusSessionController
Field Summary |
---|
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController |
---|
CHARACTER_ENCODING, context |
Constructor Summary | |
---|---|
ThesaurusSessionController(MainSessionController mainSessionCtrl,
ComponentContext componentContext,
String multilangBundle,
String iconBundle)
|
Method Summary | |
---|---|
int |
assignVocabulary()
Enregistre l'affectation au vocabulaire courant de tous les users et groupes sélectionnés au travers du userPanel s'il n'existe pas de conflits Retourne le nombre de conflits |
int |
assignVocabulary(long idVoca)
Enregistre l'affectation au vocabulaire passé en paramètre de tous les users et groupes sélectionnés au travers du userPanel s'il n'existe pas de conflits Retourne le nombre de conflits |
void |
createJargons()
Enregistre en base les affectations au vocabulaire courant de tous les users et groupes sélectionnés au travers du userPanel |
void |
createJargons(long idVoca)
Enregistre en base les affectations au vocabulaire passé en paramètre de tous les users et groupes sélectionnés au travers du userPanel |
void |
createNewJargons()
Enregistre en base les affectations au vocabulaire courant de tous les users et groupes sélectionnés au travers du userPanel et ... ... n'ayant pas déjà une affectation autre que celle au vocabulaire courant |
void |
createNewJargons(long idVoca)
Enregistre en base les affectations au vocabulaire passé en paramètre de tous les users et groupes sélectionnés au travers du userPanel et ... ... n'ayant pas déjà une affectation autre que celle au vocabulaire |
long |
createVocabulary(String name,
String desc)
Crée en base un vocabulaire à partir du nom et de la description du vocabulaire Retourne l'id du vocabulaire créé ou -1 si le vocabulaire ne peut pas être créé car un vocabulaire de même nom existe |
void |
deleteJargons()
Supprime l'affectation de vocabulaire actuel de la liste des users et groupes sélectionnés au travers du userPanel |
void |
deleteSynonyms(Collection<Long> idSynonyms)
Supprime un ensemble de synonymes à partir de leur id |
void |
deleteVocabulary()
Supprime le vocabulaire courant |
void |
deleteVocabulary(long idVoca)
Supprime un vocabulaire à partir de son id |
Axis |
getAxis(String idAxis)
Retourne le détail d'un axe et le met en session (currentAxis) |
Collection<Value> |
getAxisTerms()
Retourne la liste des termes de l'axe courant (getCurrentAxis().getValues()) |
Axis |
getCurrentAxis()
|
Vocabulary |
getCurrentUpdVoca()
|
Vocabulary |
getCurrentVoca()
|
Collection<Jargon> |
getJargons()
Retourne la liste des users ou groupes utilisant le vocabulaire courant (Collection Jargon) |
Collection<AxisHeader> |
getListAxis()
Retourne la liste des axes (Collection Axis) |
Collection<Vocabulary> |
getListVoca()
Retourne la liste des vocabulaires |
Collection<Synonym> |
getSynonyms(String termId)
Retourne la liste des synonymes du vocabulaire et du terme courant |
Value |
getTerm(String idTerm)
Retourne le détail d'un terme à partir d'un idTerm et du rootId de l'axe courant, met le terme en session (currentTerm) |
Collection<Jargon> |
getUserSelectedJargons()
|
Collection<Jargon> |
getUserSelectedNewJargons()
|
Vocabulary |
getVocabulary(long idVoca)
Retourne le détail d'un vocabulaire et le met en session (currentVoca) |
String |
initSelectedUserPanel()
Paramètre le userPannel => tous les users et groupes, users et groupes affectés au voca courant sont sélectionnés |
String |
initUserPanel()
Paramètre le userPannel => tous les users et groupes, aucun sélectionné |
void |
resetCriterias()
|
void |
setCurrentUpdVoca(String nom,
String desc)
|
void |
setJargons()
met en session les jargons des users et groupes sélectionnés au travers du userPanel |
void |
setUserPanelJargons()
met en session les jargons des users et groupes sélectionnés au travers du userPanel met en session la liste des users et la liste des groupes sélectionnés au travers du userPanel |
void |
updateSynonyms(Collection<String> names,
String termId)
Met à jour la liste des synonymes du vocabulaire et du terme courant |
long |
updateVocabulary(String name,
String desc)
Affecte au vocabualire courant le nom et la description en paramètre et enregistre en base Retourne -1 si le vocabulaire ne peut pas être modifié car un vocabulaire de même nom existe, 0 sinon |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThesaurusSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext, String multilangBundle, String iconBundle)
Method Detail |
---|
public void setCurrentUpdVoca(String nom, String desc)
public Vocabulary getCurrentVoca()
public Vocabulary getCurrentUpdVoca()
public Axis getCurrentAxis()
public Collection<Jargon> getUserSelectedJargons()
public Collection<Jargon> getUserSelectedNewJargons()
public void resetCriterias()
public Collection<AxisHeader> getListAxis() throws ThesaurusException
-
ThesaurusException
public Axis getAxis(String idAxis) throws ThesaurusException
idAxis
-
ThesaurusException
public Collection<Value> getAxisTerms()
-
ThesaurusException
public Value getTerm(String idTerm) throws ThesaurusException
idTerm
-
ThesaurusException
public Collection<Vocabulary> getListVoca() throws ThesaurusException
-
ThesaurusException
public Vocabulary getVocabulary(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public long createVocabulary(String name, String desc) throws ThesaurusException
name
- desc
-
ThesaurusException
public long updateVocabulary(String name, String desc) throws ThesaurusException
name
- desc
-
ThesaurusException
public void deleteVocabulary(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public void deleteVocabulary() throws ThesaurusException
-
ThesaurusException
public Collection<Synonym> getSynonyms(String termId) throws ThesaurusException
-
ThesaurusException
public void updateSynonyms(Collection<String> names, String termId) throws ThesaurusException
names
-
ThesaurusException
public void deleteSynonyms(Collection<Long> idSynonyms) throws ThesaurusException
idSynonyms
-
ThesaurusException
getNewSynonym
public Collection<Jargon> getJargons() throws ThesaurusException
-
ThesaurusException
public String initSelectedUserPanel() throws ThesaurusException
-
ThesaurusException
public String initUserPanel() throws ThesaurusException
-
ThesaurusException
public void setUserPanelJargons() throws ThesaurusException
-
ThesaurusException
public void setJargons() throws ThesaurusException
-
ThesaurusException
public int assignVocabulary() throws ThesaurusException
-
ThesaurusException
public int assignVocabulary(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
existJargonsConflict
,
createNewJargons
public void createJargons() throws ThesaurusException
-
ThesaurusException
public void createNewJargons() throws ThesaurusException
-
ThesaurusException
public void createJargons(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public void createNewJargons(long idVoca) throws ThesaurusException
idVoca
-
ThesaurusException
public void deleteJargons() throws ThesaurusException
-
ThesaurusException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |