Skip to content
Snippets Groups Projects
Commit 6e99d9b3 authored by Martin Staehr's avatar Martin Staehr
Browse files

closes #98: move start of optional portfolio task into reflexionProcess

parent 73d0d09d
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ import unipotsdam.gf.interfaces.IGroupFinding;
import unipotsdam.gf.interfaces.IJournal;
import unipotsdam.gf.interfaces.IPeerAssessment;
import unipotsdam.gf.interfaces.IPhases;
import unipotsdam.gf.interfaces.IReflectionService;
import unipotsdam.gf.interfaces.IReflexionService;
import unipotsdam.gf.modules.annotation.controller.AnnotationController;
import unipotsdam.gf.modules.annotation.controller.FeedbackImpl;
import unipotsdam.gf.modules.assessment.AssessmentDAO;
......@@ -40,7 +40,7 @@ import unipotsdam.gf.modules.project.Management;
import unipotsdam.gf.modules.project.ManagementImpl;
import unipotsdam.gf.modules.project.ProjectConfigurationDAO;
import unipotsdam.gf.modules.project.ProjectDAO;
import unipotsdam.gf.modules.reflection.service.ReflectionService;
import unipotsdam.gf.modules.reflection.service.ReflexionService;
import unipotsdam.gf.modules.researchreport.DummyResearchReportManagement;
import unipotsdam.gf.modules.researchreport.ResearchReportManagement;
import unipotsdam.gf.modules.submission.controller.SubmissionController;
......@@ -53,6 +53,7 @@ import unipotsdam.gf.process.GroupFormationProcess;
import unipotsdam.gf.process.IExecutionProcess;
import unipotsdam.gf.process.PeerAssessmentProcess;
import unipotsdam.gf.process.ProjectCreationProcess;
import unipotsdam.gf.process.ReflexionProcess;
import unipotsdam.gf.process.SurveyProcess;
import unipotsdam.gf.process.constraints.ConstraintsImpl;
import unipotsdam.gf.process.phases.PhasesImpl;
......@@ -117,6 +118,7 @@ public class GFApplicationBinder extends AbstractBinder {
bind(FileManagementService.class).to(FileManagementService.class);
bind(FileManagementDAO.class).to(FileManagementDAO.class);
bind(AssessmentDAO.class).to(AssessmentDAO.class);
bind(ReflexionProcess.class).to(ReflexionProcess.class);
/*
* TODO: @Martin comment in for your development
......@@ -133,6 +135,6 @@ public class GFApplicationBinder extends AbstractBinder {
bind(UnirestService.class).to(UnirestService.class);
bind(ContributionFeedbackService.class).to(IContributionFeedback.class);
bind(ContributionFeedbackDAO.class).to(ContributionFeedbackDAO.class);
bind(ReflectionService.class).to(IReflectionService.class);
bind(ReflexionService.class).to(IReflexionService.class);
}
}
......@@ -4,7 +4,7 @@ import unipotsdam.gf.modules.group.Group;
import unipotsdam.gf.modules.project.Project;
import unipotsdam.gf.process.phases.Phase;
public interface IReflectionService {
public interface IReflexionService {
void startOptionalPortfolioTask(Project project, Group group, Phase phase);
......
package unipotsdam.gf.modules.reflection.service;
import unipotsdam.gf.interfaces.IReflectionService;
import unipotsdam.gf.interfaces.IReflexionService;
import unipotsdam.gf.modules.group.Group;
import unipotsdam.gf.modules.project.Project;
import unipotsdam.gf.modules.user.User;
......@@ -17,7 +17,7 @@ import javax.inject.Inject;
@ManagedBean
@Resource
public class ReflectionService implements IReflectionService {
public class ReflexionService implements IReflexionService {
@Inject
private TaskDAO taskDAO;
......
......@@ -3,7 +3,6 @@ package unipotsdam.gf.process;
import com.itextpdf.text.DocumentException;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import unipotsdam.gf.interfaces.Feedback;
import unipotsdam.gf.interfaces.IReflectionService;
import unipotsdam.gf.modules.assessment.controller.model.ContributionCategory;
import unipotsdam.gf.modules.fileManagement.FileManagementService;
import unipotsdam.gf.modules.fileManagement.FileRole;
......@@ -56,7 +55,7 @@ public class DossierCreationProcess {
private GroupDAO groupDAO;
@Inject
private IReflectionService reflectionService;
private ReflexionProcess reflexionProcess;
/**
......@@ -89,8 +88,7 @@ public class DossierCreationProcess {
taskDAO.persistTaskGroup(project, user, TaskName.ANNOTATE_DOSSIER, Phase.DossierFeedback);
Group group = groupDAO.getMyGroup(user, project);
reflectionService.startOptionalPortfolioTask(project, group, Phase.DossierFeedback);
reflexionProcess.startOptionalEPortfolioEntryTask(project, group);
}
public FullSubmission updateSubmission(FullSubmissionPostRequest fullSubmissionPostRequest,
......
package unipotsdam.gf.process;
import unipotsdam.gf.interfaces.IReflexionService;
import unipotsdam.gf.modules.group.Group;
import unipotsdam.gf.modules.project.Project;
import unipotsdam.gf.process.phases.Phase;
import javax.annotation.ManagedBean;
import javax.annotation.Resource;
import javax.inject.Inject;
@Resource
@ManagedBean
public class ReflexionProcess {
@Inject
private IReflexionService reflexionService;
public void startOptionalEPortfolioEntryTask(Project project, Group group) {
reflexionService.startOptionalPortfolioTask(project, group, Phase.DossierFeedback);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment