|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AssessmentManager
Description:
The assessment manager is used by the assessable course nodes to store
and retrieve user assessment data from the database. The assessment Manager
should not be used directly from the controllers but only via the assessable
course nodes interface.
Exception are nodes that want to save or get node attempts variables for nodes
that are not assessable nodes (e.g. questionnaire)
Initial Date: Nov 24, 2004
| Field Summary | |
|---|---|
static java.lang.String |
ASSESSMENT_ID
|
static java.lang.String |
ATTEMPTS
|
static java.lang.String |
COACH_COMMENT
|
static java.lang.String |
COMMENT
|
static java.lang.String |
PASSED
|
static java.lang.String |
SCORE
|
| Method Summary | |
|---|---|
OLATResourceable |
createOLATResourceableForLocking(Identity assessedIdentity)
Provides an OLATResourceable for locking (of score/passed etc.) purposes (if doInSync is called on score/passed data) Or provides a lock token for assessment data of the assessedIdentity. |
void |
deregisterFromAssessmentChangeEvents(GenericEventListener gel)
Deregister the given event listener from all assessment changed events of this course |
java.lang.Long |
getAssessmentID(CourseNode courseNode,
Identity identity)
If this returns null, try get the assessmentID via the IQManager.getLastAssessmentID(). |
java.lang.Integer |
getNodeAttempts(CourseNode courseNode,
Identity identity)
|
java.lang.String |
getNodeCoachComment(CourseNode courseNode,
Identity identity)
|
java.lang.String |
getNodeComment(CourseNode courseNode,
Identity identity)
|
java.lang.Boolean |
getNodePassed(CourseNode courseNode,
Identity identity)
|
java.lang.Float |
getNodeScore(CourseNode courseNode,
Identity identity)
|
void |
incrementNodeAttempts(CourseNode courseNode,
Identity identity,
UserCourseEnvironment userCourseEnvironment)
Increment the users attempts for this course node. |
void |
preloadCache()
Load all persisted assessment data of a course into a local cache if such a cache is available |
void |
preloadCache(Identity identity)
Load all persisted assessment data into a local cache if such a cache is available |
void |
registerForAssessmentChangeEvents(GenericEventListener gel,
Identity identity)
Register the given event listener for all assessment changed events of this course |
void |
saveNodeAttempts(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
java.lang.Integer attempts)
Save the users attempts for this node. |
void |
saveNodeCoachComment(CourseNode courseNode,
Identity assessedIdentity,
java.lang.String comment)
Save an coach comment for this node for a user. |
void |
saveNodeComment(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
java.lang.String comment)
Save an assessment comment for this node for a user. |
void |
saveScoreEvaluation(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
ScoreEvaluation scoreEvaluation,
UserCourseEnvironment userCourseEnvironment,
boolean incrementUserAttempts)
Save the users achieved ScoreEvaluation for this node. |
| Field Detail |
|---|
static final java.lang.String SCORE
static final java.lang.String PASSED
static final java.lang.String ATTEMPTS
static final java.lang.String COMMENT
static final java.lang.String COACH_COMMENT
static final java.lang.String ASSESSMENT_ID
| Method Detail |
|---|
void preloadCache()
void preloadCache(Identity identity)
identity - Restrict preloading to a certain identity or null to preload assessment data from all users
void saveNodeAttempts(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
java.lang.Integer attempts)
courseNode - identity - The user who changes this scoreassessedIdentity - The user whose score is changedattempts - The new attempts
void saveNodeComment(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
java.lang.String comment)
courseNode - identity - The user who changes this commentassessedIdentity - The user whose comment is changedcomment -
void saveNodeCoachComment(CourseNode courseNode,
Identity assessedIdentity,
java.lang.String comment)
courseNode - assessedIdentity - The user whose coach comment is changedcomment -
void incrementNodeAttempts(CourseNode courseNode,
Identity identity,
UserCourseEnvironment userCourseEnvironment)
courseNode - identity -
java.lang.Float getNodeScore(CourseNode courseNode,
Identity identity)
courseNode - The course nodeidentity - The identity
java.lang.String getNodeComment(CourseNode courseNode,
Identity identity)
courseNode - The course nodeidentity - The identity
java.lang.String getNodeCoachComment(CourseNode courseNode,
Identity identity)
courseNode - The course nodeidentity - The identity
java.lang.Boolean getNodePassed(CourseNode courseNode,
Identity identity)
courseNode - The course nodeidentity - The identity
java.lang.Integer getNodeAttempts(CourseNode courseNode,
Identity identity)
courseNode - The course nodeidentity - The identity
void registerForAssessmentChangeEvents(GenericEventListener gel,
Identity identity)
gel - identity - void deregisterFromAssessmentChangeEvents(GenericEventListener gel)
gel -
java.lang.Long getAssessmentID(CourseNode courseNode,
Identity identity)
courseNode - identity -
void saveScoreEvaluation(CourseNode courseNode,
Identity identity,
Identity assessedIdentity,
ScoreEvaluation scoreEvaluation,
UserCourseEnvironment userCourseEnvironment,
boolean incrementUserAttempts)
courseNode - identity - assessedIdentity - scoreEvaluation - OLATResourceable createOLATResourceableForLocking(Identity assessedIdentity)
assessedIdentity -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||