mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
08.45.2018 e01e6d75d5667a723b6aebd0abfebe323514f7fa
borgbutler-core/src/main/java/de/micromata/borgbutler/json/borg/RepoInfo.java
@@ -1,12 +1,9 @@
package de.micromata.borgbutler.json.borg;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.micromata.borgbutler.json.JsonUtils;
import lombok.Getter;
import lombok.Setter;
public class RepoInfo {
public class RepoInfo extends RepositoryMatcher {
    @Getter
    @JsonProperty("security_dir")
    private String securityDir;
@@ -14,23 +11,11 @@
    private Cache cache;
    @Getter
    private Encryption encryption;
    @Getter
    private Repository repository;
    @Getter
    @Setter
    @JsonIgnore
    private String originalJson;
    public String toString() {
        return JsonUtils.toJson(this, true);
    }
    public void updateFrom(RepoInfo repoInfo) {
        super.updateFrom(repoInfo);
        this.securityDir = repoInfo.securityDir;
        this.cache = repoInfo.cache;
        this.encryption = repoInfo.encryption;
        this.repository = repoInfo.getRepository();
        this.originalJson = repoInfo.originalJson;
    }
}