public class InfoCourseNode extends AbstractAccessableCourseNode implements UsedByXstream
Initial Date: 3 aug. 2010
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ADMIN_CONDITION_ID |
static java.lang.String |
EDIT_CONDITION_ID |
static java.lang.String |
TYPE |
DISPLAY_OPTS_CONTENT, DISPLAY_OPTS_TITLE_CONTENT, DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT, SHORT_TITLE_MAX_LENGTH
构造器和说明 |
---|
InfoCourseNode() |
限定符和类型 | 方法和说明 |
---|---|
void |
cleanupOnDelete(ICourse course)
Generic interface implementation.
|
TabbableController |
createEditController(UserRequest ureq,
WindowControl wControl,
ICourse course,
UserCourseEnvironment euce)
ATTENTION: all course nodes must call updateModuleConfigDefaults(false) here
|
NodeRunConstructionResult |
createNodeRunConstructionResult(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne,
java.lang.String nodecmd)
org.olat.lms.course.run.userview.UserCourseEnvironment, org.olat.lms.course.run.userview.NodeEvaluation)
|
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 org.olat.lms.course.run.userview.NodeEvaluation) |
Condition |
getPreConditionAdmin()
Default set the write privileges to coaches and admin only
|
Condition |
getPreConditionEdit()
Default set the write privileges to coaches and admin only
|
RepositoryEntry |
getReferencedRepositoryEntry()
used by the publish process to ensure the reference counters for a repository entry are correct.
|
StatusDescription |
isConfigValid() |
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
|
boolean |
needsReferenceToARepositoryEntry() |
void |
setPreConditionAdmin(Condition preConditionAdmin) |
void |
setPreConditionEdit(Condition preConditionEdit) |
void |
updateModuleConfigDefaults(boolean isNewNode)
Update the module configuration to have all mandatory configuration flags set to usefull default values
|
createInstanceForCopy, getConditionExpressions, getPreConditionAccess, setPreConditionAccess
archiveNodeData, createInstanceForCopy, createPreviewController, eval, explainThisDuringPublish, exportNode, getDisplayOption, getDisplayOption, getLearningObjectives, getLongTitle, getModuleConfiguration, getNoAccessExplanation, getPreConditionVisibility, getReferencedRepositoryEntry, getShortName, getShortTitle, getType, importNode, informOnDelete, isModuleConfigValid, removeRepositoryReference, setDisplayOption, setLearningObjectives, setLongTitle, setModuleConfiguration, setNoAccessExplanation, setPreConditionVisibility, setRepositoryReference, setShortTitle, setType, toString
addChild, findRoot, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setIdent, setParent
setIdent
addChild, getChildAt, getChildCount, getIdent, getParent, getPosition, insert, remove, removeAllChildren, removeFromParent, setParent
public static final java.lang.String TYPE
public static final java.lang.String EDIT_CONDITION_ID
public static final java.lang.String ADMIN_CONDITION_ID
public void updateModuleConfigDefaults(boolean isNewNode)
GenericCourseNode
updateModuleConfigDefaults
在接口中 CourseNode
updateModuleConfigDefaults
在类中 GenericCourseNode
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.public boolean needsReferenceToARepositoryEntry()
needsReferenceToARepositoryEntry
在接口中 CourseNode
public RepositoryEntry getReferencedRepositoryEntry()
CourseNode
getReferencedRepositoryEntry
在接口中 CourseNode
getReferencedRepositoryEntry
在类中 GenericCourseNode
public StatusDescription isConfigValid()
isConfigValid
在接口中 CourseNode
public StatusDescription[] isConfigValid(CourseEditorEnv cev)
GenericCourseNode
isConfigValid
在接口中 CourseNode
isConfigValid
在类中 GenericCourseNode
public TabbableController createEditController(UserRequest ureq, WindowControl wControl, ICourse course, UserCourseEnvironment euce)
GenericCourseNode
createEditController
在接口中 CourseNode
createEditController
在类中 AbstractAccessableCourseNode
ureq
- The user requestwControl
- The current window controllercourse
- The courseeuce
- the editor user course environment provides syntax/semantic check methods for conditionspublic Controller createPeekViewRunController(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne)
GenericCourseNode
createPeekViewRunController
在接口中 CourseNode
createPeekViewRunController
在类中 GenericCourseNode
public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne, java.lang.String nodecmd)
AbstractAccessableCourseNode
createNodeRunConstructionResult
在接口中 CourseNode
createNodeRunConstructionResult
在类中 AbstractAccessableCourseNode
ureq
- The user requestwControl
- The current window controlleruserCourseEnv
- The course environmentne
- The node evaluationpublic Condition getPreConditionEdit()
public void setPreConditionEdit(Condition preConditionEdit)
preConditionEdit
- public Condition getPreConditionAdmin()
public void setPreConditionAdmin(Condition preConditionAdmin)
preConditionEdit
- public void cleanupOnDelete(ICourse course)
GenericCourseNode
cleanupOnDelete
在接口中 CourseNode
cleanupOnDelete
在类中 GenericCourseNode
course
- The course