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)
PicManCommonFacadeaddSyncToLog in interface PicManCommonFacadesle - The SyncLogEntry to addpublic java.util.LinkedList<SyncLogEntry> getSyncLog()
PicManCommonFacadegetSyncLog in interface PicManCommonFacadepublic int getSyncLogMaxCount()
PicManCommonFacadegetSyncLogMaxCount in interface PicManCommonFacadepublic void addError(java.lang.Throwable t)
PicManCommonFacadeaddError in interface PicManCommonFacadet - The Throwable to be logged.public java.util.List<java.lang.Throwable> getErrorLog()
PicManCommonFacadegetErrorLog in interface PicManCommonFacadepublic void emptyErrorLog()
PicManCommonFacadeemptyErrorLog in interface PicManCommonFacadepublic java.lang.Throwable getError(int index)
PicManCommonFacadegetError in interface PicManCommonFacadeindex - The table indexpublic void addSetChangedListener(SetChangedListener setChangedListener)
PicManCommonFacadeaddSetChangedListener in interface PicManCommonFacadesetChangedListener - The Object who wishes to be notified when a set changespublic void removeSetChangedListener(SetChangedListener setChangedListener)
PicManCommonFacaderemoveSetChangedListener in interface PicManCommonFacadesetChangedListener - The Object who no longer wishes to be notified of changes.public void fireSetSizeChanged(SetSize setSize)
PicManCommonFacadefireSetSizeChanged in interface PicManCommonFacadesetSize - The set and size that has changed