|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.core.util.nodes.GenericNode
org.olat.course.nodes.GenericCourseNode
public abstract class GenericCourseNode
Description:
| Field Summary |
|---|
| Fields inherited from interface org.olat.course.nodes.CourseNode |
|---|
DISPLAY_OPTS_CONTENT, DISPLAY_OPTS_TITLE_CONTENT, DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT |
| Constructor Summary | |
|---|---|
GenericCourseNode(java.lang.String type)
Generic course node constructor |
|
| Method Summary | |
|---|---|
void |
archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File exportDirectory,
java.lang.String charset)
Generic interface implementation. |
void |
cleanupOnDelete(ICourse course)
Generic interface implementation. |
abstract TabbableController |
createEditController(UserRequest ureq,
WindowControl wControl,
ICourse course,
UserCourseEnvironment euce)
Create a node edit controller for this node to configure node specific features |
CourseNode |
createInstanceForCopy()
Create an instance for the copy process. |
CourseNode |
createInstanceForCopy(boolean isNewTitle)
Create an instance for the copy process. |
abstract NodeRunConstructionResult |
createNodeRunConstructionResult(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne,
java.lang.String nodecmd)
Create a course run controller for this node |
Controller |
createPeekViewRunController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
Default implementation of the peekview controller that returns NULL: no node specific peekview information should be shown Override this method with a specific implementation if you have something interesting to show in the peekview |
Controller |
createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
default implementation of the previewController |
NodeEvaluation |
eval(ConditionInterpreter ci,
TreeEvaluation treeEval)
this method must generate a nodeevaluation and take care of (if any) child nodeevaluations. |
StatusDescription |
explainThisDuringPublish(StatusDescription description)
explain what the given status description means in the publish environment |
void |
exportNode(java.io.File exportDirectory,
ICourse course)
Export all node user data to the given directory. |
java.util.List<ConditionExpression> |
getConditionExpressions()
|
java.lang.String |
getDisplayOption()
|
java.lang.String |
getDisplayOption(boolean returnDefault)
allows to specify if default value should be returned in case where there is no value. |
java.lang.String |
getLearningObjectives()
|
java.lang.String |
getLongTitle()
|
ModuleConfiguration |
getModuleConfiguration()
special configuration, used by the module, e.g. |
java.lang.String |
getNoAccessExplanation()
Get the text that will show up when no access is granted to this node but the node is still visible to the user |
Condition |
getPreConditionAccess()
Get the access precondition. |
Condition |
getPreConditionVisibility()
Get the visibility precondition. |
java.lang.String |
getShortName()
Get the display value that represents this object. |
java.lang.String |
getShortTitle()
|
java.lang.String |
getType()
|
Controller |
importNode(java.io.File importDirectory,
ICourse course,
boolean unattendedImport,
UserRequest ureq,
WindowControl wControl)
Import a course node's data. |
java.lang.String |
informOnDelete(java.util.Locale locale,
ICourse course)
Generic interface implementation. |
abstract StatusDescription[] |
isConfigValid(CourseEditorEnv cev)
must be implemented in the concrete subclasses as a translator is needed for the errormessages which comes with evaluating condition expressions |
void |
setDisplayOption(java.lang.String displayOption)
Sets the display option |
void |
setLearningObjectives(java.lang.String learningObjectives)
Sets the learningObjectives. |
void |
setLongTitle(java.lang.String longTitle)
Sets the longTitle. |
void |
setModuleConfiguration(ModuleConfiguration moduleConfiguration)
Sets the moduleConfiguration. |
void |
setNoAccessExplanation(java.lang.String noAccessExplanation)
Sets the noAccessExplanation. |
void |
setPreConditionVisibility(Condition preConditionVisibility)
Sets the preConditionVisibility. |
void |
setShortTitle(java.lang.String shortTitle)
Sets the shortTitle. |
void |
setType(java.lang.String type)
Sets the type. |
java.lang.String |
toString()
|
void |
updateModuleConfigDefaults(boolean isNewNode)
Update the module configuration to have all mandatory configuration flags set to usefull default values |
| Methods inherited from class org.olat.core.util.nodes.GenericNode |
|---|
addChild, findRoot, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setIdent, setParent |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.olat.course.nodes.CourseNode |
|---|
getReferencedRepositoryEntry, isConfigValid, needsReferenceToARepositoryEntry, setIdent |
| Methods inherited from interface org.olat.core.util.nodes.INode |
|---|
addChild, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setParent |
| Constructor Detail |
|---|
public GenericCourseNode(java.lang.String type)
type - The course node type
ATTENTION:
all course nodes must call updateModuleConfigDefaults(true) here| Method Detail |
|---|
public abstract TabbableController createEditController(UserRequest ureq,
WindowControl wControl,
ICourse course,
UserCourseEnvironment euce)
CourseNode
createEditController in interface CourseNodeureq - The user requestwControl - The current window controllercourse - The courseeuce - the editor user course environment provides syntax/semantic
check methods for conditions
ATTENTION:
all course nodes must call updateModuleConfigDefaults(false) here
public abstract NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne,
java.lang.String nodecmd)
CourseNode
createNodeRunConstructionResult in interface CourseNodeureq - The user requestwControl - The current window controlleruserCourseEnv - The course environmentne - The node evaluation
ATTENTION:
all course nodes must call updateModuleConfigDefaults(false) here
public Controller createPeekViewRunController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
createPeekViewRunController in interface CourseNodeorg.olat.course.nodes.CourseNode#createPeekViewRunController(org.olat.core.gui.UserRequest,
org.olat.course.run.userview.UserCourseEnvironment,
org.olat.course.run.userview.NodeEvaluation)
public Controller createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
createPreviewController in interface CourseNodeorg.olat.course.nodes.CourseNode#createPreviewController(org.olat.core.gui.UserRequest,,
org.olat.core.gui.control.WindowControl,,
org.olat.course.run.userview.UserCourseEnvironment,,
org.olat.course.run.userview.NodeEvaluation)public java.lang.String getLearningObjectives()
getLearningObjectives in interface CourseNodepublic java.lang.String getLongTitle()
getLongTitle in interface CourseNodepublic java.lang.String getShortTitle()
getShortTitle in interface CourseNodepublic java.lang.String getDisplayOption(boolean returnDefault)
returnDefault - if false: null may be returned if no value found!
public java.lang.String getDisplayOption()
getDisplayOption in interface CourseNodepublic java.lang.String getType()
getType in interface CourseNodepublic void setLearningObjectives(java.lang.String learningObjectives)
setLearningObjectives in interface CourseNodelearningObjectives - The learningObjectives to setpublic void setLongTitle(java.lang.String longTitle)
setLongTitle in interface CourseNodelongTitle - The longTitle to setpublic void setShortTitle(java.lang.String shortTitle)
setShortTitle in interface CourseNodeshortTitle - The shortTitle to setpublic void setDisplayOption(java.lang.String displayOption)
setDisplayOption in interface CourseNodedisplayOption - public void setType(java.lang.String type)
type - The type to setpublic ModuleConfiguration getModuleConfiguration()
CourseNode
getModuleConfiguration in interface CourseNodepublic void setModuleConfiguration(ModuleConfiguration moduleConfiguration)
moduleConfiguration - The moduleConfiguration to set
public NodeEvaluation eval(ConditionInterpreter ci,
TreeEvaluation treeEval)
CourseNode
eval in interface CourseNodeCourseNode.eval(org.olat.course.condition.interpreter.ConditionInterpreter,
org.olat.course.run.userview.TreeEvaluation)public java.lang.String getNoAccessExplanation()
CourseNode
getNoAccessExplanation in interface CourseNodepublic void setNoAccessExplanation(java.lang.String noAccessExplanation)
setNoAccessExplanation in interface CourseNodenoAccessExplanation - The noAccessExplanation to setpublic Condition getPreConditionVisibility()
CourseNode
getPreConditionVisibility in interface CourseNodepublic void setPreConditionVisibility(Condition preConditionVisibility)
setPreConditionVisibility in interface CourseNodepreConditionVisibility - The preConditionVisibility to setpublic Condition getPreConditionAccess()
CourseNode
getPreConditionAccess in interface CourseNode
public java.lang.String informOnDelete(java.util.Locale locale,
ICourse course)
informOnDelete in interface CourseNodecourse - The course
org.olat.course.nodes.CourseNode#informOnDelete(org.olat.core.gui.UserRequest,
org.olat.course.ICourse)public void cleanupOnDelete(ICourse course)
cleanupOnDelete in interface CourseNodecourse - The courseCourseNode.cleanupOnDelete(org.olat.course.ICourse)
public void archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File exportDirectory,
java.lang.String charset)
archiveNodeData in interface CourseNodelocale - The users localecourse - The courseexportDirectory - The directory where the exported files should be
put. This directory must exist prior to calling this method.org.olat.course.nodes.CourseNode#archiveNodeData(java.util.Locale,
org.olat.course.ICourse, java.io.File)
public void exportNode(java.io.File exportDirectory,
ICourse course)
CourseNode
exportNode in interface CourseNodeexportDirectory - The directory where the exported files should be
put. This directory must exist prior to calling this method.CourseNode.exportNode(java.io.File,
org.olat.course.ICourse)
public Controller importNode(java.io.File importDirectory,
ICourse course,
boolean unattendedImport,
UserRequest ureq,
WindowControl wControl)
CourseNode
importNode in interface CourseNodeorg.olat.course.nodes.CourseNode#importNode(java.io.File,
org.olat.course.ICourse, org.olat.core.gui.UserRequest,
org.olat.core.gui.control.WindowControl)public java.lang.String getShortName()
ShortName
getShortName in interface ShortNameShortName.getShortName()public CourseNode createInstanceForCopy()
CourseNode
createInstanceForCopy in interface CourseNodeCourseNode.createInstanceForCopy()public CourseNode createInstanceForCopy(boolean isNewTitle)
CourseNode
createInstanceForCopy in interface CourseNodepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.util.List<ConditionExpression> getConditionExpressions()
getConditionExpressions in interface CourseNodeCourseNode.getConditionExpressions()public abstract StatusDescription[] isConfigValid(CourseEditorEnv cev)
isConfigValid in interface CourseNodeorg.olat.course.nodes.CourseNode#isConfigValid(org.olat.course.run.userview.UserCourseEnvironment)public StatusDescription explainThisDuringPublish(StatusDescription description)
CourseNode
explainThisDuringPublish in interface CourseNodeorg.olat.course.nodes.CourseNode#explainThisDuringPublish(org.olat.core.gui.control.StatusDescription)public void updateModuleConfigDefaults(boolean isNewNode)
updateModuleConfigDefaults in interface CourseNodeisNewNode - true: an initial configuration is set; false: upgrading
from previous node configuration version, set default to maintain
previous behaviour
This is the workflow:
On every click on a entry of the navigation tree, this method will be called
to ensure a valid configration of the depending module. This is only done in
RAM. If the user clicks on that node in course editor and publishes the course
after that, then the updated config will be persisted to disk. Otherwise
everything what is done here has to be done once at every course start.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||