Subversion Repositories eFlore/Applications.del

Rev

Rev 893 | Rev 979 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 893 Rev 918
Line 1... Line 1...
1
package org.tela_botanica.del.client.modeles;
1
package org.tela_botanica.del.client.modeles;
Line 2... Line 2...
2
 
2
 
3
import java.util.ArrayList;
3
import java.util.ArrayList;
-
 
4
import java.util.Date;
4
import java.util.Date;
5
import java.util.Iterator;
5
import java.util.List;
6
import java.util.List;
Line 6... Line 7...
6
public class InterventionForum {
7
public class InterventionForum {
7
	
8
	
Line 89... Line 90...
89
		if(parent != null) {
90
		if(parent != null) {
90
			proposition = (PropositionDetermination)parent;
91
			proposition = (PropositionDetermination)parent;
91
		}
92
		}
92
		return proposition;
93
		return proposition;
93
	}
94
	}
-
 
95
	
-
 
96
	public int getTotalCommentaires() {
-
 
97
		int nbCommentaires = 0;
-
 
98
		for (Iterator<Commentaire> iterator = listeCommentaires.iterator(); iterator.hasNext();) {
-
 
99
			nbCommentaires++;
-
 
100
			Commentaire commentaire = (Commentaire) iterator.next();
-
 
101
			nbCommentaires += commentaire.getTotalCommentaires();
-
 
102
		}
-
 
103
		
-
 
104
		return nbCommentaires;
-
 
105
	}
94
}
106
}