An ILoggingAction is used to summarize all information required to reflect an occurrance of logging in a particular place in a workflow.
The ILoggingAction therefore contains the following properties, which are described here shortly:
- resourceAdminAction: specifies the visibility of this logging action later in the reporting: true for 'only visible to resource admins' false for 'visible for both resource admins and a normal user'
- crudAction: this is a means to allow simplified SQL statements on the logging table later by specifying - at log-runtime-time - whether this logging action is about retrieving something, updating, deleting or creating. Not always can an action easily be associated to one of them - in which case it is best to default back to retrieve
- logMessage: the actual log message. Please follow the standard way of composing a log message - which is something like LEARNING_RESOURCE_OPEN
- typeListDefinition: this is an instance of ResourceableTypeList which defines what ILoggingResourceableTypes are expected and allowed to be stored to the DB along side this log message. It also serves as a way to document possible occurrances
Furthermore there is a property called javaFieldIdForDebug - which is only used for debugging (as the name suggests). In the default implementation (LoggingAction) it is set to the actual java filed name - allowing quicker debugging.
Initial Date: 20.10.2009
@author Stefan