package cn.com.basic.face.discern.query.item; import java.io.File; import cn.com.basic.face.discern.entity.Register; import cn.com.basic.face.util.FileUtil; public class OfflineRegisterItem extends Register{ private File rawSurveillancePhotoFile; private File SurveillancePhotoFile; private File uploadCustomPhotoFile; private File idCardPhotoFile; public File getRawSurveillancePhotoFile() { return rawSurveillancePhotoFile; } public void setRawSurveillancePhotoFile(File rawSurveillancePhotoFile) { this.rawSurveillancePhotoFile = rawSurveillancePhotoFile; } public File getSurveillancePhotoFile() { return SurveillancePhotoFile; } public void setSurveillancePhotoFile(File surveillancePhotoFile) { SurveillancePhotoFile = surveillancePhotoFile; } public File getUploadCustomPhotoFile() { return uploadCustomPhotoFile; } public void setUploadCustomPhotoFile(File uploadCustomPhotoFile) { this.uploadCustomPhotoFile = uploadCustomPhotoFile; } public File getIdCardPhotoFile() { return idCardPhotoFile; } public void setIdCardPhotoFile(File idCardPhotoFile) { this.idCardPhotoFile = idCardPhotoFile; } public void loadFiles() { setRawSurveillancePhotoFile(FileUtil.getFile(getRawSurveillancePhotoPath())); setSurveillancePhotoFile(FileUtil.getFile(getSurveillancePhoto())); setUploadCustomPhotoFile(FileUtil.getFile(getUploadCustomPhoto())); setIdCardPhotoFile(FileUtil.getFile(getIdCardPhoto())); } public void deleteFiles() { FileUtil.deleteFile(getRawSurveillancePhotoPath()); FileUtil.deleteFile(getSurveillancePhoto()); FileUtil.deleteFile(getUploadCustomPhoto()); FileUtil.deleteFile(getIdCardPhoto()); } }