public interface PicManFacade extends PicManCommonFacade
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 . |
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.
|
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)
Return the sets/sizes as an HTML table
|
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 |
setEngineCronExpression(java.lang.String expression)
Set the Cron string used to clock the engine. DDS
|
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, removeSetChangedListener
DatabaseFacade getDB()
PicReader getPicReader()
java.awt.Dimension determinePicSize(Pic pic)
pic
- The Pic to readDimension
. (-1,-1) = error.ThumbCache getThumbCache()
void setupThumbCache()
void setupMosaicThumbCache(int sid, int height)
sid
- The SetID that MosaicMan is usingheight
- The height of the thumbnailsvoid releaseMosaicThumbCache()
java.lang.String getSetSizeWebTable(java.util.List<SetSize> setSizeList, boolean showUnused)
setSizeList
- The sets/sizes to include in the tableshowUnused
- Show or hide the unused Setsjava.lang.String getSetSizeCheckboxesHtml(Chain chain)
chain
- Chain to filter the checkboxes on. If null, then output all checkboxesjava.lang.String getFilterAsString(java.lang.String picName)
mlbG:6,6,6,6,0 mlb:6 Trains:6 Springfield
picName
- BatchManager getBatchManager()
BatchManager
.java.lang.String engineRunningShortStatus()
void setEngineCronExpression(java.lang.String expression)
expression
- The cron expressionCronTriggerBean
Thumbnail getThumbNail(Pic pic, int height)
pic
- The Pic to readheight
- How tall to make the imageThumbnail getThumbNail(Pic pic, int height, java.lang.String label)
pic
- The Pic to readheight
- How tall to make the imagelabel
- Any text (like the rating) to draw in the lower left corner of the graphicThumbnail getMosaicThumbNail(Pic pic, int height)
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.pic
- The Pic to readheight
- How tall to make the imageMosaicMan getMosaicMan()
Filter getMaskedFilter(java.util.List<Set> sets, Filter filter)
sets
- A list of setsfilter
- The filter to maskSyncManager_Old getSyncManager()
PosterManager getPosterManager()
PicImporter getPicImporter()
int getFilesInDirCount(int rid, java.lang.String dir)
rid
- The rootid to look underdir
- The subdirectory i.e. "2008/20080609"java.util.List<java.lang.String> getDirsInDir(int rid, java.lang.String subDir)
List
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.rid
- The root id to look undersubDir
- Any subdirectory to checkjava.util.LinkedList<JobLogEntry> getJobLog()
int getJobLogMaxCount()
void addJobToLog(JobLogEntry jle)
jle
- The JobLogEntry to add.boolean isEngineOn()