org.olat.course.auditing
Class UserNodeAuditManager

java.lang.Object
  extended by org.olat.course.auditing.UserNodeAuditManager
Direct Known Subclasses:
UserNodeAuditManagerImpl

public abstract class UserNodeAuditManager
extends java.lang.Object

Description:
The audit manager provides logging functionality for user node logging.

There used to be two variants of logging of which one is now handled in the ThreadLocalUserActivityLogger - check there for further details.

The user node logs: This is the users personal log that is used in some nodes to guarantee transparent changes of user data like passed or score attributes. Ths has access to this log via browser on the node that provides this log.

Initial Date: Dec 1, 2004

Author:
gnaegi

Constructor Summary
UserNodeAuditManager()
           
 
Method Summary
abstract  void appendToUserNodeLog(CourseNode courseNode, Identity identity, Identity assessedIdentity, java.lang.String logText)
          Append a log message to the personal course node log
abstract  java.lang.String getUserNodeLog(CourseNode courseNode, Identity identity)
           
abstract  boolean hasUserNodeLogs(CourseNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserNodeAuditManager

public UserNodeAuditManager()
Method Detail

hasUserNodeLogs

public abstract boolean hasUserNodeLogs(CourseNode node)
Parameters:
node - The current course node
Returns:
true if this node has user logs, false otherwhise

getUserNodeLog

public abstract java.lang.String getUserNodeLog(CourseNode courseNode,
                                                Identity identity)
Parameters:
courseNode - The course node
identity - The identity
Returns:
The user log or null if no log available

appendToUserNodeLog

public abstract void appendToUserNodeLog(CourseNode courseNode,
                                         Identity identity,
                                         Identity assessedIdentity,
                                         java.lang.String logText)
Append a log message to the personal course node log

Parameters:
courseNode -
identity - The user who initiated the action that triggered the log entry
assessedIdentity - The user who is affected by the change
logText -