Project

General

Profile

Download (1.21 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2015 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.common;
10

    
11
import java.io.Serializable;
12
import java.util.ArrayList;
13
import java.util.List;
14

    
15
/**
16
 * @author cmathew
17
 * @date 5 Aug 2015
18
 *
19
 */
20
public class ImportResult implements Serializable {
21

    
22
    private boolean success;
23
    private List<byte[]> reports;
24

    
25
    public ImportResult() {
26
        success = true;
27
        reports = new ArrayList<byte[]>();
28
    }
29

    
30
    /**
31
     * @return the success
32
     */
33
    public boolean isSuccess() {
34
        return success;
35
    }
36
    /**
37
     * @param success the success to set
38
     */
39
    public void setSuccess(boolean success) {
40
        this.success = success;
41
    }
42
    /**
43
     * @return the exportData
44
     */
45
    public List<byte[]> getReports() {
46
        return reports;
47
    }
48
    /**
49
     * @param exportData the exportData to set
50
     */
51
    public void setReports(List<byte[]> reports) {
52
        this.reports = reports;
53
    }
54

    
55
    public void addReport(byte[] report) {
56
        reports.add(report);
57
    }
58
}
(41-41/61)