1 package net.sumaris.core.extraction.vo;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import lombok.Data;
26 import net.sumaris.core.model.data.IWithRecorderDepartmentEntity;
27 import net.sumaris.core.vo.IValueObject;
28 import net.sumaris.core.vo.administration.user.DepartmentVO;
29
30 @Data
31 public class ExtractionTypeVO implements IValueObject<Integer>,
32 IWithRecorderDepartmentEntity<Integer, DepartmentVO> {
33
34 public static final String PROPERTY_SHEET_NAMES = "sheetNames";
35
36 private Integer id;
37 private String category;
38 private String label;
39 private String name;
40 private String version;
41 private String[] sheetNames;
42 private Integer statusId;
43 private Boolean isSpatial;
44
45 private DepartmentVO recorderDepartment;
46
47 public String getFormat() {
48 return getLabel() != null ? getLabel().split("-")[0] : null;
49 }
50 }