Search in sources :

Example 1 with TreeChange

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

the class NewTreeBean method fromTTToGroupOtherDomain.

/* public void fromSubGroupToConceptOtherDomain(){
        System.out.println(" from sub group to  concept other  domain"); 
    }
    public void fromSubGroupToConceptDomain(){
         System.out.println(" from sub group to  concept   domain");
    }*/
/**
 * ******************déplacement d'un top term************************* **
 */
public void fromTTToGroupOtherDomain() {
    TreeChange tc = new TreeChange();
    tc.moveTopTermToOtherDomaine(connect, draggedNode.getIdConcept(), draggedNode.getIdCurrentGroup(), droppedNode.getIdCurrentGroup(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
// System.out.println("from top term to group other domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 2 with TreeChange

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

the class NewTreeBean method fromConceptToSubGroupDomain.

/**
 * fromConceptToSubGroupDomain
 *
 * déplace un concept dnas un sous groupe
 */
public void fromConceptToSubGroupDomain() {
    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 sub group domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 3 with TreeChange

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

the class NewTreeBean method fromSubGoupToSubGroupOtherDomain.

/**
 * fromSubGroupToSubGroupOtherDomain() déplace un sous groupe vers un autre
 * sous groupe d'un autre domaine
 */
public void fromSubGoupToSubGroupOtherDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveSubGroupToSubGroupDomain(connect, draggedNode.getIdConcept(), idBT, draggedNode.getIdCurrentGroup(), draggedNode.getType(), droppedNode.getIdConcept(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println("from sub grou to subgroup other domain");
}
Also used : TreeChange(mom.trd.opentheso.dragdrop.TreeChange)

Example 4 with TreeChange

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

the class NewTreeBean method fromConceptToTTDomain.

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

Example 5 with TreeChange

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

the class NewTreeBean method fromTTToTTOtherDomain.

/**
 * fromTTTOTTTOtherDomain déplace un top terme vers un top terme d'un autre
 * domaine
 */
public void fromTTToTTOtherDomain() {
    for (String idBT : idsBTRemoveNode) {
        TreeChange tc = new TreeChange();
        tc.moveTopTermToConceptOtherDomaine(connect, draggedNode.getIdConcept(), draggedNode.getIdCurrentGroup(), idBT, droppedNode.getIdConcept(), droppedNode.getIdCurrentGroup(), idThesoSelected, this.selectedTerme.getUser().getUser().getId());
    }
// System.out.println("from to top term to top term other 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