|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CourseNode
Initial Date: Feb 9, 2004
| Field Summary | |
|---|---|
static java.lang.String |
DISPLAY_OPTS_CONTENT
|
static java.lang.String |
DISPLAY_OPTS_TITLE_CONTENT
|
static java.lang.String |
DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT
|
| Method Summary | |
|---|---|
void |
archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File exportDirectory,
java.lang.String charset)
Archive all node user data to the given directory. |
void |
cleanupOnDelete(ICourse course)
Called if this node is deleted. |
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. |
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)
Create a minimised view for this course node that gives some insight about the real content of the view in a limited space. |
Controller |
createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
|
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 |
getConditionExpressions()
|
java.lang.String |
getDisplayOption()
|
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. |
RepositoryEntry |
getReferencedRepositoryEntry()
used by the publish process to ensure the reference counters for a repository entry are correct. |
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)
Called if this node is ABOUT TO BE deleted. |
StatusDescription |
isConfigValid()
|
StatusDescription[] |
isConfigValid(CourseEditorEnv cev)
|
boolean |
needsReferenceToARepositoryEntry()
|
void |
setDisplayOption(java.lang.String displayOption)
Set display option |
void |
setIdent(java.lang.String ident)
Set this node's ident. |
void |
setLearningObjectives(java.lang.String learningObjectives)
Sets the learningObjectives. |
void |
setLongTitle(java.lang.String longTitle)
Sets the longTitle. |
void |
setNoAccessExplanation(java.lang.String noAccessExplanation)
Set the text that will show up when no access is granted to this node but the node is still visible to the user |
void |
setPreConditionVisibility(Condition visibilityCondition)
Set the visibility precondition. |
void |
setShortTitle(java.lang.String shortTitle)
Sets the shortTitle. |
void |
updateModuleConfigDefaults(boolean isNewNode)
Update the module configuration to have all mandatory configuration flags set to usefull default values |
| Methods inherited from interface org.olat.core.util.nodes.INode |
|---|
addChild, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setParent |
| Methods inherited from interface org.olat.core.gui.ShortName |
|---|
getShortName |
| Field Detail |
|---|
static final java.lang.String DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT
static final java.lang.String DISPLAY_OPTS_TITLE_CONTENT
static final java.lang.String DISPLAY_OPTS_CONTENT
| Method Detail |
|---|
java.lang.String getLearningObjectives()
java.lang.String getLongTitle()
java.lang.String getShortTitle()
java.lang.String getDisplayOption()
java.lang.String getType()
void setIdent(java.lang.String ident)
ident - void setLearningObjectives(java.lang.String learningObjectives)
learningObjectives - The learningObjectives to setvoid setLongTitle(java.lang.String longTitle)
longTitle - The longTitle to setvoid setShortTitle(java.lang.String shortTitle)
shortTitle - The shortTitle to setvoid setDisplayOption(java.lang.String displayOption)
displayOption - void setNoAccessExplanation(java.lang.String noAccessExplanation)
noAccessExplanation - java.lang.String getNoAccessExplanation()
void setPreConditionVisibility(Condition visibilityCondition)
visibilityCondition - Condition getPreConditionVisibility()
Condition getPreConditionAccess()
RepositoryEntry getReferencedRepositoryEntry()
boolean needsReferenceToARepositoryEntry()
ModuleConfiguration getModuleConfiguration()
NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne,
java.lang.String nodecmd)
ureq - The user requestwControl - The current window controlleruserCourseEnv - The course environmentne - The node evaluation
TabbableController createEditController(UserRequest ureq,
WindowControl wControl,
ICourse course,
UserCourseEnvironment euce)
ureq - The user requestwControl - The current window controllercourse - The courseeuce - the editor user course environment provides syntax/semantic
check methods for conditions
Controller createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
ureq - wControl - userCourseEnv - ne -
Controller createPeekViewRunController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
ureq - wContro - userCourseEnv - ne -
NodeEvaluation eval(ConditionInterpreter ci,
TreeEvaluation treeEval)
ci - treeEval -
StatusDescription isConfigValid()
for a config
validation method taking the course environment into account.StatusDescription[] isConfigValid(CourseEditorEnv cev)
userCourseEnv -
java.lang.String informOnDelete(java.util.Locale locale,
ICourse course)
ureq - The user requestcourse - The course
void cleanupOnDelete(ICourse course)
course - The course
void archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File exportDirectory,
java.lang.String charset)
locale - The users localecourse - The courseexportDirectory - The directory where the exported files should be
put. This directory must exist prior to calling this method.value - of charset property of current user
void exportNode(java.io.File exportDirectory,
ICourse course)
exportDirectory - The directory where the exported files should be
put. This directory must exist prior to calling this method.course -
Controller importNode(java.io.File importDirectory,
ICourse course,
boolean unattendedImport,
UserRequest ureq,
WindowControl wControl)
importDirectory - course - ureq - wControl -
CourseNode createInstanceForCopy()
CourseNode createInstanceForCopy(boolean isNewTitle)
isNewTitle -
java.util.List getConditionExpressions()
StatusDescription explainThisDuringPublish(StatusDescription description)
description -
void updateModuleConfigDefaults(boolean isNewNode)
isNewNode - 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.
// TODO: Every click is too much. Only call this method on course start since changed config will be cached.
If you cache something in course nodes be aware to set such a variable TRANSIENT,
otherwise the editortree.xml and runstructure.xml of old courses would no longer be compatible.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||