| | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | } |