|
||||||||||
| 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
org.olat.course.nodes.ProjectBrokerCourseNode
public class ProjectBrokerCourseNode
| Field Summary | |
|---|---|
static java.lang.String |
ACCESS_DROPBOX
ACCESS_DROPBOX configuration parameter key. |
static java.lang.String |
ACCESS_PROJECTLIST
|
static java.lang.String |
ACCESS_RETURNBOX
|
static java.lang.String |
ACCESS_SCORING
ACCESS_SCORING configuration parameter key. |
static java.lang.String |
CONF_ACCOUNTMANAGER_GROUP_KEY
|
static java.lang.String |
CONF_DROPBOX_CONFIRMATION
CONF_DROPBOX_CONFIRMATION configuration parameter key. |
static java.lang.String |
CONF_DROPBOX_ENABLED
CONF_DROPBOX_ENABLED configuration parameter key. |
static java.lang.String |
CONF_DROPBOX_ENABLEMAIL
CONF_DROPBOX_ENABLEMAIL configuration parameter key. |
static java.lang.String |
CONF_NODE_SHORT_TITLE_KEY
|
static java.lang.String |
CONF_PROJECTBROKER_KEY
|
static java.lang.String |
CONF_RETURNBOX_ENABLED
|
static java.lang.String |
CONF_SCORING_ENABLED
CONF_SCORING_ENABLED configuration parameter key. |
static java.lang.String |
CONF_TASK_PREVIEW
CONF_TASK_PREVIEW configuration parameter key used for task-form. |
| Fields inherited from interface org.olat.course.nodes.CourseNode |
|---|
DISPLAY_OPTS_CONTENT, DISPLAY_OPTS_TITLE_CONTENT, DISPLAY_OPTS_TITLE_DESCRIPTION_CONTENT |
| Constructor Summary | |
|---|---|
ProjectBrokerCourseNode()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File fArchiveDirectory,
java.lang.String charset)
archives the dropbox of this task course node to the user's personal folder under private/archive/[coursename]/dropboxes/[nodeIdent].zip |
void |
cleanupOnDelete(ICourse course)
Generic interface implementation. |
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(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 |
createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
default implementation of the previewController |
void |
exportNode(java.io.File fExportDirectory,
ICourse course)
Export all node user data to the given directory. |
Condition |
getConditionDrop()
|
java.util.List |
getConditionExpressions()
|
Condition |
getConditionReturnbox()
|
Condition |
getConditionScoring()
|
java.lang.Float |
getCutValueConfiguration()
|
Controller |
getDetailsEditController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnvironment)
Returns a controller to edit the node specific details |
java.lang.String |
getDetailsListView(UserCourseEnvironment userCourseEnvironment)
|
java.lang.String |
getDetailsListViewHeaderKey()
|
java.lang.Float |
getMaxScoreConfiguration()
|
java.lang.Float |
getMinScoreConfiguration()
|
RepositoryEntry |
getReferencedRepositoryEntry()
used by the publish process to ensure the reference counters for a repository entry are correct. |
java.lang.Integer |
getUserAttempts(UserCourseEnvironment userCourseEnvironment)
|
java.lang.String |
getUserCoachComment(UserCourseEnvironment userCourseEnvironment)
|
java.lang.String |
getUserLog(UserCourseEnvironment userCourseEnvironment)
|
ScoreEvaluation |
getUserScoreEvaluation(UserCourseEnvironment userCourseEnvironment)
this method implementation must not cache any results! The user has no scoring results jet (e.g. |
java.lang.String |
getUserUserComment(UserCourseEnvironment userCourseEnvironment)
|
boolean |
hasAttemptsConfigured()
|
boolean |
hasCommentConfigured()
|
boolean |
hasDetails()
|
boolean |
hasPassedConfigured()
|
boolean |
hasScoreConfigured()
|
boolean |
hasStatusConfigured()
|
Controller |
importNode(java.io.File importDirectory,
ICourse course,
boolean unattendedImport,
UserRequest ureq,
WindowControl wControl)
Import a course node's data. |
void |
incrementUserAttempts(UserCourseEnvironment userCourseEnvironment)
Increments the users attempts for this node and this user + 1. |
java.lang.String |
informOnDelete(java.util.Locale locale,
ICourse course)
Generic interface implementation. |
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 |
isEditableConfigured()
|
boolean |
needsReferenceToARepositoryEntry()
|
void |
setConditionDrop(Condition conditionDrop)
|
void |
setConditionReturnbox(Condition condition)
|
void |
setConditionScoring(Condition conditionScoring)
|
void |
updateModuleConfigDefaults(boolean isNewNode)
Init config parameter with default values for a new course node. |
void |
updateUserAttempts(java.lang.Integer userAttempts,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity)
Updates the users attempts for this node and this user. |
void |
updateUserCoachComment(java.lang.String coachComment,
UserCourseEnvironment userCourseEnvironment)
Updates the coach comment for this node and this user. |
void |
updateUserScoreEvaluation(ScoreEvaluation scoreEvaluation,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity,
boolean incrementAttempts)
|
void |
updateUserUserComment(java.lang.String userComment,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity)
Updates the user comment for this node and this user. |
| 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 |
|---|
createInstanceForCopy, createPeekViewRunController, eval, explainThisDuringPublish, getDisplayOption, getLearningObjectives, getLongTitle, getModuleConfiguration, getNoAccessExplanation, getPreConditionAccess, getPreConditionVisibility, getShortTitle, getType, setDisplayOption, setIdent, setLearningObjectives, setLongTitle, setNoAccessExplanation, setPreConditionVisibility, setShortTitle |
| 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 |
|---|
public static final transient java.lang.String CONF_DROPBOX_ENABLED
public static final transient java.lang.String CONF_DROPBOX_ENABLEMAIL
public static final transient java.lang.String CONF_DROPBOX_CONFIRMATION
public static final transient java.lang.String CONF_SCORING_ENABLED
public static final transient java.lang.String ACCESS_SCORING
public static final transient java.lang.String ACCESS_DROPBOX
public static final transient java.lang.String ACCESS_RETURNBOX
public static final transient java.lang.String ACCESS_PROJECTLIST
public static final transient java.lang.String CONF_TASK_PREVIEW
public static final transient java.lang.String CONF_RETURNBOX_ENABLED
public static final transient java.lang.String CONF_ACCOUNTMANAGER_GROUP_KEY
public static final transient java.lang.String CONF_PROJECTBROKER_KEY
public static final transient java.lang.String CONF_NODE_SHORT_TITLE_KEY
| Constructor Detail |
|---|
public ProjectBrokerCourseNode()
| Method Detail |
|---|
public TabbableController createEditController(UserRequest ureq,
WindowControl wControl,
ICourse course,
UserCourseEnvironment euce)
CourseNode
createEditController in interface CourseNodecreateEditController in class GenericCourseNodeureq - The user requestwControl - The current window controllercourse - The courseeuce - the editor user course environment provides syntax/semantic
check methods for conditions
org.olat.course.nodes.CourseNode#createEditController(org.olat.core.gui.UserRequest,
org.olat.core.gui.control.WindowControl, org.olat.course.ICourse)
public NodeRunConstructionResult createNodeRunConstructionResult(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne,
java.lang.String nodecmd)
CourseNode
createNodeRunConstructionResult in interface CourseNodecreateNodeRunConstructionResult in class GenericCourseNodeureq - The user requestwControl - The current window controlleruserCourseEnv - The course environmentne - The node evaluation
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)
public Controller createPreviewController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnv,
NodeEvaluation ne)
GenericCourseNode
createPreviewController in interface CourseNodecreatePreviewController in class GenericCourseNodeGenericCourseNode.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 RepositoryEntry getReferencedRepositoryEntry()
CourseNode
getReferencedRepositoryEntry in interface CourseNodeCourseNode.getReferencedRepositoryEntry()public boolean needsReferenceToARepositoryEntry()
needsReferenceToARepositoryEntry in interface CourseNodeCourseNode.needsReferenceToARepositoryEntry()public StatusDescription isConfigValid()
isConfigValid in interface CourseNodeCourseNode.isConfigValid()public StatusDescription[] isConfigValid(CourseEditorEnv cev)
GenericCourseNode
isConfigValid in interface CourseNodeisConfigValid in class GenericCourseNodeorg.olat.course.nodes.CourseNode#isConfigValid(org.olat.course.run.userview.UserCourseEnvironment)
public java.lang.String informOnDelete(java.util.Locale locale,
ICourse course)
GenericCourseNode
informOnDelete in interface CourseNodeinformOnDelete in class GenericCourseNodecourse - The course
org.olat.course.nodes.CourseNode#informOnDelete(org.olat.core.gui.UserRequest,
org.olat.course.ICourse)public void cleanupOnDelete(ICourse course)
GenericCourseNode
cleanupOnDelete in interface CourseNodecleanupOnDelete in class GenericCourseNodecourse - The courseCourseNode.cleanupOnDelete(
org.olat.course.ICourse)public Condition getConditionDrop()
public Condition getConditionScoring()
public Condition getConditionReturnbox()
public void setConditionDrop(Condition conditionDrop)
conditionDrop - public void setConditionScoring(Condition conditionScoring)
conditionScoring - public void setConditionReturnbox(Condition condition)
condition - public ScoreEvaluation getUserScoreEvaluation(UserCourseEnvironment userCourseEnvironment)
AssessableCourseNode
getUserScoreEvaluation in interface AssessableCourseNodeAssessableCourseNode.getUserScoreEvaluation(org.olat.course.run.userview.UserCourseEnvironment)public boolean hasCommentConfigured()
hasCommentConfigured in interface AssessableCourseNodeAssessableCourseNode.hasCommentConfigured()public boolean hasPassedConfigured()
hasPassedConfigured in interface AssessableCourseNodeAssessableCourseNode.hasPassedConfigured()public boolean hasScoreConfigured()
hasScoreConfigured in interface AssessableCourseNodeAssessableCourseNode.hasScoreConfigured()public boolean hasStatusConfigured()
hasStatusConfigured in interface AssessableCourseNodeAssessableCourseNode.hasStatusConfigured()public java.lang.Float getMaxScoreConfiguration()
getMaxScoreConfiguration in interface AssessableCourseNodeAssessableCourseNode.getMaxScoreConfiguration()public java.lang.Float getMinScoreConfiguration()
getMinScoreConfiguration in interface AssessableCourseNodeAssessableCourseNode.getMinScoreConfiguration()public java.lang.Float getCutValueConfiguration()
getCutValueConfiguration in interface AssessableCourseNodeAssessableCourseNode.getCutValueConfiguration()public java.lang.String getUserCoachComment(UserCourseEnvironment userCourseEnvironment)
getUserCoachComment in interface AssessableCourseNodeAssessableCourseNode.getUserCoachComment(org.olat.course.run.userview.UserCourseEnvironment)public java.lang.String getUserUserComment(UserCourseEnvironment userCourseEnvironment)
getUserUserComment in interface AssessableCourseNodeAssessableCourseNode.getUserUserComment(org.olat.course.run.userview.UserCourseEnvironment)public java.lang.String getUserLog(UserCourseEnvironment userCourseEnvironment)
getUserLog in interface AssessableCourseNodeAssessableCourseNode.getUserLog(org.olat.course.run.userview.UserCourseEnvironment)public boolean isEditableConfigured()
isEditableConfigured in interface AssessableCourseNodeAssessableCourseNode.isEditableConfigured()
public void updateUserCoachComment(java.lang.String coachComment,
UserCourseEnvironment userCourseEnvironment)
AssessableCourseNode
updateUserCoachComment in interface AssessableCourseNodeAssessableCourseNode.updateUserCoachComment(java.lang.String,
org.olat.course.run.userview.UserCourseEnvironment)
public void updateUserScoreEvaluation(ScoreEvaluation scoreEvaluation,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity,
boolean incrementAttempts)
updateUserScoreEvaluation in interface AssessableCourseNodescoreEvaluation - if scoreEvaluation.getScore() != null, then the score will be updated, and/or if scoreEvaluation.getPassed() != null, then 'passed' will be updatedorg.olat.course.nodes.AssessableCourseNode#updateUserScoreEvaluation(org.olat.course.run.scoring.ScoreEvaluation,
org.olat.course.run.userview.UserCourseEnvironment,
org.olat.core.id.Identity)
public void updateUserUserComment(java.lang.String userComment,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity)
AssessableCourseNode
updateUserUserComment in interface AssessableCourseNodeAssessableCourseNode.updateUserUserComment(java.lang.String,
org.olat.course.run.userview.UserCourseEnvironment,
org.olat.core.id.Identity)public java.lang.Integer getUserAttempts(UserCourseEnvironment userCourseEnvironment)
getUserAttempts in interface AssessableCourseNodeAssessableCourseNode.getUserAttempts(org.olat.course.run.userview.UserCourseEnvironment)public boolean hasAttemptsConfigured()
hasAttemptsConfigured in interface AssessableCourseNodeAssessableCourseNode.hasAttemptsConfigured()
public void updateUserAttempts(java.lang.Integer userAttempts,
UserCourseEnvironment userCourseEnvironment,
Identity coachingIdentity)
AssessableCourseNode
updateUserAttempts in interface AssessableCourseNodeAssessableCourseNode.updateUserAttempts(java.lang.Integer,
org.olat.course.run.userview.UserCourseEnvironment,
org.olat.core.id.Identity)public void incrementUserAttempts(UserCourseEnvironment userCourseEnvironment)
AssessableCourseNode
incrementUserAttempts in interface AssessableCourseNodeAssessableCourseNode.incrementUserAttempts(org.olat.course.run.userview.UserCourseEnvironment)
public Controller getDetailsEditController(UserRequest ureq,
WindowControl wControl,
UserCourseEnvironment userCourseEnvironment)
AssessableCourseNode
getDetailsEditController in interface AssessableCourseNodeAssessableCourseNode.getDetailsEditController(org.olat.core.gui.UserRequest,
org.olat.core.gui.control.WindowControl,
org.olat.course.run.userview.UserCourseEnvironment)public java.lang.String getDetailsListView(UserCourseEnvironment userCourseEnvironment)
getDetailsListView in interface AssessableCourseNodeAssessableCourseNode.getDetailsListView(org.olat.course.run.userview.UserCourseEnvironment)public java.lang.String getDetailsListViewHeaderKey()
getDetailsListViewHeaderKey in interface AssessableCourseNodeAssessableCourseNode.getDetailsListViewHeaderKey()public boolean hasDetails()
hasDetails in interface AssessableCourseNodeAssessableCourseNode.hasDetails()
public void exportNode(java.io.File fExportDirectory,
ICourse course)
CourseNode
exportNode in interface CourseNodeexportNode in class GenericCourseNodefExportDirectory - 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 CourseNodeimportNode in class GenericCourseNodeorg.olat.course.nodes.GenericCourseNode#importNode(java.io.File,
org.olat.course.ICourse, org.olat.core.gui.UserRequest,
org.olat.core.gui.control.WindowControl)
public void archiveNodeData(java.util.Locale locale,
ICourse course,
java.io.File fArchiveDirectory,
java.lang.String charset)
archiveNodeData in interface CourseNodearchiveNodeData in class GenericCourseNodelocale - course - fArchiveDirectory - charset - org.olat.course.nodes.CourseNode#archiveNodeData(java.util.Locale,
org.olat.course.ICourse, java.io.File)public java.util.List getConditionExpressions()
getConditionExpressions in interface CourseNodegetConditionExpressions in class GenericCourseNodeGenericCourseNode.getConditionExpressions()public void updateModuleConfigDefaults(boolean isNewNode)
updateModuleConfigDefaults in interface CourseNodeupdateModuleConfigDefaults in class GenericCourseNodeisNewNode - 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 CourseNode createInstanceForCopy(boolean isNewTitle)
CourseNode
createInstanceForCopy in interface CourseNodecreateInstanceForCopy in class GenericCourseNodeCourseNode.createInstanceForCopy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||