Search in sources :

Example 6 with TreeChange

use of mom.trd.opentheso.dragdrop.TreeChange in project opentheso by miledrousset.

the class NewTreeBean method fromConceptToGroupDomain.

public void fromConceptToGroupDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.momveConceptToGroupSameDomain(connect, draggedNode.getIdConcept(), idBT, draggedNode.getIdCurrentGroup(), droppedNode.getIdConcept(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println(" from concept to group  domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 7 with TreeChange

use of mom.trd.opentheso.dragdrop.TreeChange in project opentheso by miledrousset.

the class NewTreeBean method fromConceptToConceptOtherDomain.

/**
 * fromConceptToConceptOtherDomain déplacement d'un concept vers un concept
 * d'un autre domaine
 */
public void fromConceptToConceptOtherDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveConceptTermToConceptTermOtherDomain(connect, draggedNode.getIdConcept(), draggedNode.getIdCurrentGroup(), idBT, droppedNode.getIdConcept(), droppedNode.getIdCurrentGroup(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println("from concept to concept other domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 8 with TreeChange

use of mom.trd.opentheso.dragdrop.TreeChange in project opentheso by miledrousset.

the class NewTreeBean method fromTTToTT.

/**
 * fromTTToTT() déplace un top terme dans un autre top terme
 */
public void fromTTToTT() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveTopTermToConceptSameDomaine(connect, draggedNode.getIdConcept(), idBT, draggedNode.getIdCurrentGroup(), droppedNode.getIdConcept(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println("from top term to top term domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 9 with TreeChange

use of mom.trd.opentheso.dragdrop.TreeChange in project opentheso by miledrousset.

the class NewTreeBean method fromTTToConceptOtherDomain.

/**
 * fromTTToConceptOtherDomain déplace un top terme vers une branche dans un
 * autre domaine
 */
public void fromTTToConceptOtherDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveTopTermToConceptOtherDomaine(connect, draggedNode.getIdConcept(), idBT, draggedNode.getIdCurrentGroup(), droppedNode.getIdConcept(), droppedNode.getIdCurrentGroup(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println(" from top term to concept  other domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 10 with TreeChange

use of mom.trd.opentheso.dragdrop.TreeChange in project opentheso by miledrousset.

the class NewTreeBean method fromTTToConceptDomain.

/**
 * fromTTToConceptDomain déplace un top terme vers un concept du même
 * domaine
 */
public void fromTTToConceptDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveTopTermToConceptSameDomaine(connect, draggedNode.getIdConcept(), idBT, draggedNode.getIdCurrentGroup(), droppedNode.getIdConcept(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println(" from top term to concept  domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Aggregations

TreeChange (mom.trd.opentheso.dragdrop.TreeChange)19 ArrayList (java.util.ArrayList)2 ConceptHelper (mom.trd.opentheso.bdd.helper.ConceptHelper)2 MyTreeNode (mom.trd.opentheso.bdd.helper.nodes.MyTreeNode)2 GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)1 RelationsHelper (mom.trd.opentheso.bdd.helper.RelationsHelper)1 StructIdBroaderTerm (mom.trd.opentheso.dragdrop.StructIdBroaderTerm)1 DefaultTreeNode (org.primefaces.model.DefaultTreeNode)1 TreeNode (org.primefaces.model.TreeNode)1