pl.edu.agh.cast.importer.base.logging
Class CompositeImportLogger

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.logging.AbstractImportLogger
      extended by pl.edu.agh.cast.importer.base.logging.CompositeImportLogger
All Implemented Interfaces:
IImportDataObserver, IImportLogger

public class CompositeImportLogger
extends AbstractImportLogger

An observer of the import process, which logs events to a composite.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class pl.edu.agh.cast.importer.base.logging.AbstractImportLogger
LEFT_BRACKET, RIGHT_BRACKET, SEPARATOR_COMMA, SEPARATOR_SEMICOMMA
 
Constructor Summary
CompositeImportLogger()
          The default constructor.
 
Method Summary
 void finish(String dataSetId)
          Finishes the import logging.
 void notifyError(AbstractErrorLogData error)
          Notifies when an error occurs.
 void notifyRemoved(DataRow row)
          Notifies when a row is removed.
 void notifyRestored(DataRow row)
          Notifies when a row is restored.
 void notifyValueChanged(DataRow row, int index, Object oldValue, Object newValue)
          Notifies when new value is set in a specified row.
 void setComposite(org.eclipse.swt.widgets.Composite composite)
           
 
Methods inherited from class pl.edu.agh.cast.importer.base.logging.AbstractImportLogger
createErrorMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeImportLogger

public CompositeImportLogger()
The default constructor.

Method Detail

notifyError

public void notifyError(AbstractErrorLogData error)
Notifies when an error occurs.

Parameters:
error - the error that occurred
See Also:
IImportLogger.notifyError( pl.edu.agh.cast.importer.base.stat.AbstractErrorLogData)

notifyRemoved

public void notifyRemoved(DataRow row)
Notifies when a row is removed.

Parameters:
row - the row which is removed
See Also:
IImportDataObserver.notifyRemoved( pl.edu.agh.cast.importer.base.data.DataRow)

notifyRestored

public void notifyRestored(DataRow row)
Notifies when a row is restored.

Parameters:
row - the row which is restored
See Also:
IImportDataObserver.notifyRestored( pl.edu.agh.cast.importer.base.data.DataRow)

notifyValueChanged

public void notifyValueChanged(DataRow row,
                               int index,
                               Object oldValue,
                               Object newValue)
Notifies when new value is set in a specified row.

Parameters:
row - the row which is edited
index - the position, on which the change had occurred
oldValue - the old value
newValue - the new value
See Also:
IImportDataObserver.notifyValueChanged( pl.edu.agh.cast.importer.base.data.DataRow, int, java.lang.Object, java.lang.Object)

finish

public void finish(String dataSetId)
Finishes the import logging.

Parameters:
dataSetId - the data set identifier
See Also:
IImportLogger.finish(java.lang.String)

setComposite

public void setComposite(org.eclipse.swt.widgets.Composite composite)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.