org.olat.course.nodes
Class AbstractAccessableCourseNode

java.lang.Object
  extended by org.olat.core.util.nodes.GenericNode
      extended by org.olat.course.nodes.GenericCourseNode
          extended by org.olat.course.nodes.AbstractAccessableCourseNode
All Implemented Interfaces:
java.io.Serializable, ShortName, INode, CourseNode
Direct Known Subclasses:
CalCourseNode, ChecklistCourseNode, COCourseNode, CPCourseNode, DENCourseNode, DialogCourseNode, ENCourseNode, IQSELFCourseNode, IQSURVCourseNode, IQTESTCourseNode, LLCourseNode, MSCourseNode, ScormCourseNode, SPCourseNode, STCourseNode, TUCourseNode, WikiCourseNode

public abstract class AbstractAccessableCourseNode
extends GenericCourseNode

Initial Date: May 28, 2004

Author:
gnaegi
Comment: Use this abstract course node if you implement a node that has only one accessability condition: access the node. See the CPCourse node for an example implementation.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.olat.course.nodes.CourseNode
DISPLAY_OPTS_CONTENT, DISPLAY_OPTS_TITLE_CONTENT, DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT
 
Method Summary
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.
abstract  NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq, WindowControl wControl, UserCourseEnvironment userCourseEnv, NodeEvaluation ne, java.lang.String nodecmd)
          Create a course run controller for this node
 java.util.List<ConditionExpression> getConditionExpressions()
           
 Condition getPreConditionAccess()
          Returns the generic access precondition
 void setPreConditionAccess(Condition precondition_accessor)
          Sets the generic access precondition.
 
Methods inherited from class org.olat.course.nodes.GenericCourseNode
archiveNodeData, cleanupOnDelete, createInstanceForCopy, createPeekViewRunController, createPreviewController, eval, explainThisDuringPublish, exportNode, getDisplayOption, getDisplayOption, getLearningObjectives, getLongTitle, getModuleConfiguration, getNoAccessExplanation, getPreConditionVisibility, getShortName, getShortTitle, getType, importNode, informOnDelete, isConfigValid, setDisplayOption, setLearningObjectives, setLongTitle, setModuleConfiguration, setNoAccessExplanation, setPreConditionVisibility, setShortTitle, setType, toString, updateModuleConfigDefaults
 
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
 

Method Detail

createEditController

public abstract TabbableController createEditController(UserRequest ureq,
                                                        WindowControl wControl,
                                                        ICourse course,
                                                        UserCourseEnvironment euce)
Description copied from interface: CourseNode
Create a node edit controller for this node to configure node specific features

Specified by:
createEditController in interface CourseNode
Specified by:
createEditController in class GenericCourseNode
Parameters:
ureq - The user request
wControl - The current window controller
course - The course
euce - the editor user course environment provides syntax/semantic check methods for conditions
Returns:
A tabbable node edit controller
See Also:
org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)

createNodeRunConstructionResult

public abstract NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq,
                                                                          WindowControl wControl,
                                                                          UserCourseEnvironment userCourseEnv,
                                                                          NodeEvaluation ne,
                                                                          java.lang.String nodecmd)
Description copied from interface: CourseNode
Create a course run controller for this node

Specified by:
createNodeRunConstructionResult in interface CourseNode
Specified by:
createNodeRunConstructionResult in class GenericCourseNode
Parameters:
ureq - The user request
wControl - The current window controller
userCourseEnv - The course environment
ne - The node evaluation
Returns:
The node run controller ATTENTION: udpateModuleConfigDefaults(false) should be called inside from the courseNode.createNodeRunConstructionResult(ureq, bwControl, userCourseEnv, nodeEval, nodecmd) to set the course node specific configuration default values!
See Also:
org.olat.course.nodes.CourseNode#createNodeRunConstructionResult(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl, org.olat.course.run.userview.UserCourseEnvironment, org.olat.course.run.userview.NodeEvaluation)

getPreConditionAccess

public Condition getPreConditionAccess()
Returns the generic access precondition

Specified by:
getPreConditionAccess in interface CourseNode
Overrides:
getPreConditionAccess in class GenericCourseNode
Returns:
Condition

setPreConditionAccess

public void setPreConditionAccess(Condition precondition_accessor)
Sets the generic access precondition.

Parameters:
precondition_accessor - The precondition_accessor to set

createInstanceForCopy

public CourseNode createInstanceForCopy()
Description copied from interface: CourseNode
Create an instance for the copy process. The copy must have a different unique ID and may take some of the configuration values configured for this node.

Specified by:
createInstanceForCopy in interface CourseNode
Overrides:
createInstanceForCopy in class GenericCourseNode
Returns:
See Also:
CourseNode.createInstanceForCopy()

getConditionExpressions

public java.util.List<ConditionExpression> getConditionExpressions()
Specified by:
getConditionExpressions in interface CourseNode
Overrides:
getConditionExpressions in class GenericCourseNode
Returns:
empty list, or list with active condition expressions of the course node
See Also:
org.olat.course.nodes.GenericCourseNode#getConditionExpression()