public class PicManCommonImpl extends java.lang.Object implements PicManCommonFacade
Modifier and Type | Field and Description |
---|---|
protected DatabaseFacade |
dbf |
Constructor and Description |
---|
PicManCommonImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.Throwable t)
Add an entry to the Error Log.
|
void |
addSetChangedListener(SetChangedListener setChangedListener)
Add this SetChangedListener to the global notification list.
|
void |
addSyncToLog(SyncLogEntry sle)
Add a sync entry to the log
|
void |
emptyErrorLog()
Delete any entries in the Error Log
|
void |
fireSetSizeChanged(SetSize setSize)
A set, or the contents of a set, has changed
|
java.lang.Throwable |
getError(int index)
Fetch an error from our table
|
java.util.List<java.lang.Throwable> |
getErrorLog()
Get a Reference to the Error Log
|
java.util.LinkedList<SyncLogEntry> |
getSyncLog()
Return a reference to the sync log
|
int |
getSyncLogMaxCount()
Get the maximum displayed sync log lines in the status page.
|
void |
removeSetChangedListener(SetChangedListener setChangedListener)
Remove this SetChangedListener from the global notification list.
|
void |
setPicManDatabase(DatabaseFacade pmdb)
AOP Injector to set the Database
|
protected DatabaseFacade dbf
public void setPicManDatabase(DatabaseFacade pmdb)
pmdb
- A reference to the databasepublic void addSyncToLog(SyncLogEntry sle)
PicManCommonFacade
addSyncToLog
in interface PicManCommonFacade
sle
- The SyncLogEntry to addpublic java.util.LinkedList<SyncLogEntry> getSyncLog()
PicManCommonFacade
getSyncLog
in interface PicManCommonFacade
public int getSyncLogMaxCount()
PicManCommonFacade
getSyncLogMaxCount
in interface PicManCommonFacade
public void addError(java.lang.Throwable t)
PicManCommonFacade
addError
in interface PicManCommonFacade
t
- The Throwable to be logged.public java.util.List<java.lang.Throwable> getErrorLog()
PicManCommonFacade
getErrorLog
in interface PicManCommonFacade
public void emptyErrorLog()
PicManCommonFacade
emptyErrorLog
in interface PicManCommonFacade
public java.lang.Throwable getError(int index)
PicManCommonFacade
getError
in interface PicManCommonFacade
index
- The table indexpublic void addSetChangedListener(SetChangedListener setChangedListener)
PicManCommonFacade
addSetChangedListener
in interface PicManCommonFacade
setChangedListener
- The Object who wishes to be notified when a set changespublic void removeSetChangedListener(SetChangedListener setChangedListener)
PicManCommonFacade
removeSetChangedListener
in interface PicManCommonFacade
setChangedListener
- The Object who no longer wishes to be notified of changes.public void fireSetSizeChanged(SetSize setSize)
PicManCommonFacade
fireSetSizeChanged
in interface PicManCommonFacade
setSize
- The set and size that has changed