| | |
| | | package de.micromata.borgbutler.data; |
| | | |
| | | import de.micromata.borgbutler.config.BorgRepoConfig; |
| | | import de.micromata.borgbutler.json.borg.BorgArchive; |
| | | import de.micromata.borgbutler.json.borg.BorgCache; |
| | | import de.micromata.borgbutler.json.borg.BorgEncryption; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Part of Borg json objects to refer objects to repositories. |
| | | */ |
| | | public class Repository implements Serializable { |
| | | public class Repository implements Serializable, Cloneable { |
| | | private static final long serialVersionUID = 1278802519434516280L; |
| | | /** |
| | | * A name describing this config. Only used for displaying purposes. This is automatically set with the name |
| | |
| | | @Getter |
| | | @Setter |
| | | private String id; |
| | | /** |
| | | * UTC date. |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | private String lastModified; |
| | |
| | | @Setter |
| | | private BorgEncryption encryption; |
| | | |
| | | public Repository() { |
| | | /** |
| | | * Might be null. |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | private List<BorgArchive> archives; |
| | | |
| | | @Override |
| | | public Object clone() throws CloneNotSupportedException { |
| | | return super.clone(); |
| | | } |
| | | } |