public class PicImporterImpl extends java.lang.Object implements PicImporter
Modifier and Type | Class and Description |
---|---|
class |
PicImporterImpl.PossibleDates |
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
PicImporterImpl() |
Modifier and Type | Method and Description |
---|---|
Document |
analyzePic(java.lang.String fname,
java.lang.String customDate)
Get some info about how this new import pic relates to our library
|
java.util.List<java.io.File> |
getPicNamesToImport()
Scan the camera's file system and return a list of Files that need importing
|
Document |
importPic(int rid,
java.lang.String odir,
java.lang.String iname,
java.lang.String oname)
Import a single pic from the "camera" to the the pictures file system.
|
void |
setPicMan(PicManFacade pmf)
Set the reference to the PicMan API.
|
public void setPicMan(PicManFacade pmf)
pmf
- The PicManFacadepublic java.util.List<java.io.File> getPicNamesToImport()
PicImporter
getPicNamesToImport
in interface PicImporter
File
s of jpgspublic Document importPic(int rid, java.lang.String odir, java.lang.String iname, java.lang.String oname)
PicImporter
importPic
in interface PicImporter
rid
- The rootIdodir
- The output directory "2008/20080126"iname
- The input filename "100_0877.JPG"oname
- The output pic name "b2008012660"ImportPicsDom
status document describing the status of the importpublic Document analyzePic(java.lang.String fname, java.lang.String customDate)
PicImporter
analyzePic
in interface PicImporter
fname
- The name of the import file to examinecustomDate
- If the user set a custom date for this pic. null if undefined.ImportAnalyzeDom
status document describing stuff about this pic