public class NewPicScannerImpl extends java.lang.Object implements NewPicScanner
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
NewPicScannerImpl() |
NewPicScannerImpl(PicManFacade pmf)
Constructor that sets the reference to PicManFacade
|
| Modifier and Type | Method and Description |
|---|---|
int |
getNewPicCount()
Scan the root directories and build a list of pics found.
|
java.util.ArrayList<java.io.File> |
getNewPics()
Return the newPics array
|
java.lang.String |
getProcessNewPicsErrorMessage()
If an error occurred during processNewPics, then it will be found here.
|
boolean |
processNewPics()
Process any pics in the newPics list.
|
void |
setPicExtensions(java.util.List<java.lang.String> list)
Set the pic extensions that are known pics
|
public NewPicScannerImpl()
public NewPicScannerImpl(PicManFacade pmf)
pmf - The PicManFacade primary interfacepublic void setPicExtensions(java.util.List<java.lang.String> list)
setPicExtensions in interface NewPicScannerlist - A list of file extensions, typically just "jpg"public java.util.ArrayList<java.io.File> getNewPics()
getNewPics in interface NewPicScannerpublic int getNewPicCount()
throws java.lang.Exception
getNewPicCount in interface NewPicScannerjava.lang.Exceptionpublic boolean processNewPics()
processNewPics in interface NewPicScannerpublic java.lang.String getProcessNewPicsErrorMessage()
NewPicScannergetProcessNewPicsErrorMessage in interface NewPicScanner