xuxiuxi
2017-07-28 3699eddecd1337710f2bf1e95dac3e9bb4b49574
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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());
    }
}