Class ProgressLogImpl
java.lang.Object
ch.tocco.nice2.tasks.impl.progress.ProgressLogImpl
- All Implemented Interfaces:
ProgressLog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindLogEntryByState(String state) Find a singleLogEntryfor a given state value.Get e (unmodifiable) list containing the log entries.Log a message.Log a message.
-
Constructor Details
-
ProgressLogImpl
-
-
Method Details
-
log
Description copied from interface:ProgressLogLog a message.Creates a new log entry with status "running". If the last log entry before this new entry is not completed, it will be completed automatically.
- Specified by:
login interfaceProgressLog- Parameters:
textKey- the key (textressources) of the message to display- Returns:
- the created
LogEntry
-
log
Description copied from interface:ProgressLogLog a message.Creates a new log entry with status "running". If the last log entry before this new entry is not completed, it will be completed automatically.
- Specified by:
login interfaceProgressLog- Parameters:
textKey- the key (textressources) of the message to displayvars- a map with the parameters to replace the placeholders in the log message with- Returns:
- the created
LogEntry
-
getLogEntries
Description copied from interface:ProgressLogGet e (unmodifiable) list containing the log entries.- Specified by:
getLogEntriesin interfaceProgressLog- Returns:
- a list containing the log entries.
-
findLogEntryByState
Description copied from interface:ProgressLogFind a singleLogEntryfor a given state value. This value must uniquely identify the log entry!If more than one result is found, an exception is thrown. Otherwise either the single result is returned or none.
- Specified by:
findLogEntryByStatein interfaceProgressLog
-
findLatestLogEntry
- Specified by:
findLatestLogEntryin interfaceProgressLog
-