public class PlanGenerator
extends java.lang.Object
First a gap analysis on the goal is performed, next all relevant learning paths are fetched from the db. A path is considered relevant if it targets at least one of the competences the user is still missing for this goal. In the final step the best paths are combined to create a new learning plan for the user.
Modifier and Type | Class and Description |
---|---|
class |
PlanGenerator.PathEntry
The Class PathEntry.
|
Constructor and Description |
---|
PlanGenerator(org.tencompetence.generated.model.Goal goal,
FilterController filterController,
com.liferay.portal.service.ServiceContext context)
Instantiates a new pan generator controller.
|
Modifier and Type | Method and Description |
---|---|
GenerateStatusType |
doGenerate(org.tencompetence.business.model.learningpath.ILearningPlan originalPlan)
Generates a new personal development plan for the current goal.
|
FilterController |
getFilterController()
Gets the filter controller.
|
java.util.List<PlanGenerator.PathEntry> |
getGeneratedPlan()
Gets the generated plan as a list of found paths.
|
java.lang.String |
getTitle()
Gets the title.
|
boolean |
isCompletePlan()
Checks if is complete plan.
|
boolean |
isNoPathsAvailable()
Checks if is no paths available.
|
boolean |
isPlanAvailable()
Checks if is plan available.
|
boolean |
isPlanGenerated()
Checks if is plan generated.
|
org.tencompetence.business.model.learningpath.ILearningPlan |
updatePlan(org.tencompetence.business.model.learningpath.ILearningPlan plan)
Accepts and saves the generated plan and returns to the small view.
|
public PlanGenerator(org.tencompetence.generated.model.Goal goal, FilterController filterController, com.liferay.portal.service.ServiceContext context) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
goal
- the goalfilterController
- the filter controllercontext
- the contextcom.liferay.portal.kernel.exception.PortalException
- the portal exceptioncom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic java.lang.String getTitle()
public FilterController getFilterController()
public java.util.List<PlanGenerator.PathEntry> getGeneratedPlan()
public boolean isPlanGenerated()
public boolean isNoPathsAvailable()
public boolean isCompletePlan()
public boolean isPlanAvailable()
public org.tencompetence.business.model.learningpath.ILearningPlan updatePlan(org.tencompetence.business.model.learningpath.ILearningPlan plan) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
plan
- the plancom.liferay.portal.kernel.exception.PortalException
- the portal exceptioncom.liferay.portal.kernel.exception.SystemException
- the system exceptionpublic GenerateStatusType doGenerate(org.tencompetence.business.model.learningpath.ILearningPlan originalPlan)
When generating the plan apply the filter options set by the user.
originalPlan
- the original plan used to compare the outcome of the process