Policy failures:
Code warning - failed on resource EvaluationManagerBean.java. Reason: The import java.util.Collection is never used, line 6 - failed on resource IEvaluationManager.java. Reason: The import java.util.Collection is never used, line Override reason: v
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.yacos.core.evaluation;
|
package org.yacos.core.evaluation;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ejb.Stateless;
|
import javax.ejb.Stateless;
|
||||||
@@ -92,9 +93,10 @@ public class EvaluationManagerBean implements IEvaluationManager {
|
|||||||
* methodes du Report
|
* methodes du Report
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public Report addReport(Article article) {
|
public Report addReport(Article article, String commentPCMember, String commentAuthor, List<Rating> ratings,
|
||||||
// TODO Auto-generated method stub
|
User referee) {
|
||||||
return null;
|
Report report = new Report(commentPCMember, commentAuthor,ratings, referee, article);
|
||||||
|
return report;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.yacos.core.evaluation;
|
package org.yacos.core.evaluation;
|
||||||
|
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ejb.Remote;
|
import javax.ejb.Remote;
|
||||||
@@ -24,7 +25,8 @@ public interface IEvaluationManager {
|
|||||||
public void removeCriterion(int criterionId);
|
public void removeCriterion(int criterionId);
|
||||||
public List<Criterion> getCriterions(int confId);
|
public List<Criterion> getCriterions(int confId);
|
||||||
|
|
||||||
public Report addReport(Article article);
|
public Report addReport(Article article, String commentPCMember, String commentAuthor,
|
||||||
|
List<Rating> ratings, User referee);
|
||||||
public void updateReport(Report report);
|
public void updateReport(Report report);
|
||||||
public List<Report> getReportsForArticle(Article article);
|
public List<Report> getReportsForArticle(Article article);
|
||||||
public List<Report> getReportsForUser(User user);
|
public List<Report> getReportsForUser(User user);
|
||||||
|
|||||||
@@ -37,6 +37,21 @@ public class Report {
|
|||||||
@ManyToOne(targetEntity=Article.class)
|
@ManyToOne(targetEntity=Article.class)
|
||||||
@JoinColumn(name="article_id",nullable=false)
|
@JoinColumn(name="article_id",nullable=false)
|
||||||
private Article article;
|
private Article article;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @constructor
|
||||||
|
*/
|
||||||
|
public Report(String commentPCMember, String commentAuthor,
|
||||||
|
Collection<Rating> ratings, User referee, Article article) {
|
||||||
|
super();
|
||||||
|
this.commentPCMember = commentPCMember;
|
||||||
|
this.commentAuthor = commentAuthor;
|
||||||
|
this.ratings = ratings;
|
||||||
|
this.referee = referee;
|
||||||
|
this.article = article;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the id
|
* @return the id
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user