public class PicManImpl extends PicManCommonImpl implements PicManFacade
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
dbf| Constructor and Description |
|---|
PicManImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJobToLog(JobLogEntry jle)
Add an entry to the Job Log
|
java.awt.Dimension |
determinePicSize(Pic pic)
Read the file for this pic to figure out his size
|
java.lang.String |
engineRunningShortStatus()
Return a one or two word status for the engine.
|
BatchManager |
getBatchManager()
Get a reference to the instantiated
BatchManager. |
BSAccountMan |
getBSAccountMan() |
java.lang.String |
getContactSelectorHtml(Chain chain,
java.lang.String setName,
java.lang.String uri) |
DatabaseFacade |
getDB()
Get a reference to the Database
|
java.util.List<java.lang.String> |
getDirsInDir(int rid,
java.lang.String subDir)
Fetch a
List of dirs in this directory. |
int |
getFilesInDirCount(int rid,
java.lang.String dir)
Get the number of files in a directory
|
java.lang.String |
getFilterAsString(java.lang.String picName)
Create a String that represents the Sets and values for this pic.
|
java.util.LinkedList<JobLogEntry> |
getJobLog()
Return a reference to the Job Log
|
int |
getJobLogMaxCount()
Get the maximum displayed job log lines in the home page.
|
Filter |
getMaskedFilter(java.util.List<Set> sets,
Filter filter)
Given a List of Sets, return a copy of a filter with the values 0'd out
except for the Sets listed.
|
MosaicMan |
getMosaicMan()
Fetch a reference to the Mosaic Manager
|
Thumbnail |
getMosaicThumbNail(Pic pic,
int height)
Get a Thumbnail from this pic at this size.
|
java.lang.String |
getPicFilterWebEdit(java.lang.String picName) |
PicImporter |
getPicImporter()
Get a reference to the PicImporter
|
PicReader |
getPicReader()
Get a reference to the PicReader
|
PosterManager |
getPosterManager()
Return a reference to The PosterManager
|
java.lang.String |
getSetSizeCheckboxesHtml(Chain chain)
Return a String of {tr}{td} checkboxes for this chain.
|
java.lang.String |
getSetSizeWebTable(java.util.List<SetSize> setSizeList,
boolean showUnused)
Deprecated.
|
SyncManager_Old |
getSyncManager() |
Thumbnail |
getTestMosaicThumbNail(Pic pic,
int height,
int depth) |
ThumbCache |
getThumbCache()
Get a reference to the ThumbCache Manager
|
Thumbnail |
getThumbNail(Pic pic,
int height)
Get a Thumbnail from this pic at this size
|
Thumbnail |
getThumbNail(Pic pic,
int height,
java.lang.String label)
Get a Thumbnail from this pic at this size
|
boolean |
isEngineOn()
Does the User have the batch engine turned on? Should we do work?
|
void |
releaseMosaicThumbCache()
Done with the mosaic cache, release it's resources.
|
void |
runBatchManager()
Run one time through the
BatchManager loop. |
void |
setBatchManagerTrigger(CronTriggerBean batchManagerTrigger) |
void |
setBSAccountMan(BSAccountMan bsAccountMan) |
void |
setDEBUGBatchManager(boolean debugFlag)
Enable logger output for the BatchManager
|
void |
setDEBUGBatchManagerEntry(boolean debugFlag)
Enable logger output for the BatchManager Entry
|
void |
setDEBUGDatabaseImpl(boolean debugFlag) |
void |
setDEBUGMosaicEngine(boolean debugFlag)
Enable logger output for the Mosaic Engine.
|
void |
setDEBUGMosaicMan(boolean debugFlag)
Enable logger output for the MosaicMan.
|
void |
setEngineCronExpression(java.lang.String expression)
Set the Cron string used to clock the engine. DDS
|
void |
setPicManDatabase(DatabaseFacade pmdb)
AOP Injector to set the Database
|
void |
setupMosaicThumbCache(int sid,
int height)
Initialize the mosaic thumb cache for this set at this height
|
void |
setupThumbCache() |
addError, addSetChangedListener, addSyncToLog, emptyErrorLog, fireSetSizeChanged, getError, getErrorLog, getSyncLog, getSyncLogMaxCount, removeSetChangedListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddError, addSetChangedListener, addSyncToLog, emptyErrorLog, fireSetSizeChanged, getError, getErrorLog, getSyncLog, getSyncLogMaxCount, removeSetChangedListenerpublic DatabaseFacade getDB()
PicManFacadegetDB in interface PicManFacadepublic void setBatchManagerTrigger(CronTriggerBean batchManagerTrigger)
public void setPicManDatabase(DatabaseFacade pmdb)
setPicManDatabase in class PicManCommonImplpmdb - A reference to the databasepublic void setDEBUGBatchManager(boolean debugFlag)
debugFlag - true == turn on debugging.public void setDEBUGBatchManagerEntry(boolean debugFlag)
debugFlag - true == turn on debugging.public void setDEBUGDatabaseImpl(boolean debugFlag)
public void setDEBUGMosaicMan(boolean debugFlag)
debugFlag - true == turn on debugging.public void setDEBUGMosaicEngine(boolean debugFlag)
debugFlag - true == turn on debugging.public BSAccountMan getBSAccountMan()
public void setBSAccountMan(BSAccountMan bsAccountMan)
bsAccountMan - the bsAccountMan to setpublic Thumbnail getThumbNail(Pic pic, int height)
PicManFacadegetThumbNail in interface PicManFacadepic - The Pic to readheight - How tall to make the imagepublic Thumbnail getThumbNail(Pic pic, int height, java.lang.String label)
PicManFacadegetThumbNail in interface PicManFacadepic - The Pic to readheight - How tall to make the imagelabel - Any text (like the rating) to draw in the lower left corner of the graphicpublic Thumbnail getMosaicThumbNail(Pic pic, int height)
PicManFacadePicManFacade.getThumbNail(Pic, int) in that it uses the Mosaic ThumbCache,
which has slightly different rules.ThumbCache operates thusly:
If a Thumbnail is requested and it doesn't exist, it is built at the MosaicThumbHeight. Then the size requested is
derived from that and returned.getMosaicThumbNail in interface PicManFacadepic - The Pic to readheight - How tall to make the imagepublic ThumbCache getThumbCache()
PicManFacadegetThumbCache in interface PicManFacadepublic void setupThumbCache()
setupThumbCache in interface PicManFacadepublic void setupMosaicThumbCache(int sid,
int height)
PicManFacadesetupMosaicThumbCache in interface PicManFacadesid - The SetID that MosaicMan is usingheight - The height of the thumbnailspublic void releaseMosaicThumbCache()
PicManFacadereleaseMosaicThumbCache in interface PicManFacadepublic SyncManager_Old getSyncManager()
getSyncManager in interface PicManFacadepublic java.util.LinkedList<JobLogEntry> getJobLog()
PicManFacadegetJobLog in interface PicManFacadepublic int getJobLogMaxCount()
PicManFacadegetJobLogMaxCount in interface PicManFacadepublic void addJobToLog(JobLogEntry jle)
PicManFacadeaddJobToLog in interface PicManFacadejle - The JobLogEntry to add.public java.lang.String getPicFilterWebEdit(java.lang.String picName)
@Deprecated public java.lang.String getSetSizeWebTable(java.util.List<SetSize> setSizeList, boolean showUnused)
PicManFacadegetSetSizeWebTable in interface PicManFacadesetSizeList - The sets/sizes to include in the tableshowUnused - Show or hide the unused Setspublic java.lang.String getContactSelectorHtml(Chain chain, java.lang.String setName, java.lang.String uri)
public java.lang.String getSetSizeCheckboxesHtml(Chain chain)
PicManFacadegetSetSizeCheckboxesHtml in interface PicManFacadechain - Chain to filter the checkboxes on. If null, then output all checkboxespublic void runBatchManager()
throws java.lang.Exception
BatchManager loop. Do any work if need be.
Called by the cron trigger job that was set up in the Spring configuration.java.lang.Exceptionpublic BatchManager getBatchManager()
PicManFacadeBatchManager.getBatchManager in interface PicManFacadepublic java.lang.String engineRunningShortStatus()
PicManFacadeengineRunningShortStatus in interface PicManFacadepublic void setEngineCronExpression(java.lang.String expression)
PicManFacadesetEngineCronExpression in interface PicManFacadeexpression - The cron expressionCronTriggerBeanpublic Filter getMaskedFilter(java.util.List<Set> sets, Filter filter)
PicManFacadegetMaskedFilter in interface PicManFacadesets - A list of setsfilter - The filter to maskpublic Thumbnail getTestMosaicThumbNail(Pic pic, int height, int depth)
getTestMosaicThumbNail in interface PicManFacadepublic java.awt.Dimension determinePicSize(Pic pic)
PicManFacadedeterminePicSize in interface PicManFacadepic - The Pic to readDimension. (-1,-1) = error.public MosaicMan getMosaicMan()
PicManFacadegetMosaicMan in interface PicManFacadepublic PicImporter getPicImporter()
PicManFacadegetPicImporter in interface PicManFacadepublic PicReader getPicReader()
PicManFacadegetPicReader in interface PicManFacadepublic int getFilesInDirCount(int rid,
java.lang.String dir)
PicManFacadegetFilesInDirCount in interface PicManFacaderid - The rootid to look underdir - The subdirectory i.e. "2008/20080609"public java.util.List<java.lang.String> getDirsInDir(int rid,
java.lang.String subDir)
PicManFacadeList of dirs in this directory.
Note: This does not do database lookups; rather, it reads the actual directory structure.
Perhaps this is not a good thing as the rest of the system deals with the database.
However, there are no real facilities for walking directories in the database.getDirsInDir in interface PicManFacaderid - The root id to look undersubDir - Any subdirectory to checkpublic java.lang.String getFilterAsString(java.lang.String picName)
PicManFacademlbG:6,6,6,6,0 mlb:6 Trains:6 Springfield
getFilterAsString in interface PicManFacadepublic boolean isEngineOn()
PicManFacadeisEngineOn in interface PicManFacadepublic PosterManager getPosterManager()
PicManFacadegetPosterManager in interface PicManFacade