001package co.codewizards.cloudstore.core.dto; 002 003import java.util.UUID; 004 005import javax.xml.bind.annotation.XmlRootElement; 006 007/** 008 * DTO for {@code LocalRepository} and {@code RemoteRepository}. 009 * <p> 010 * <b>Important:</b> This object can be read anonymously without authentication! It therefore 011 * does currently not contain any sensitive information. 012 * <p> 013 * Future refactorings must take this into account and never add any secret data here! The world 014 * can read it! See {@code RepositoryDTOService}. 015 * @author Marco หงุ่ยตระกูล-Schulze - marco at codewizards dot co 016 */ 017@XmlRootElement 018public class RepositoryDTO { 019 020 private UUID repositoryId; 021 022 private byte[] publicKey; 023 024 private long revision = -1; 025 026 public UUID getRepositoryId() { 027 return repositoryId; 028 } 029 public void setRepositoryId(UUID repositoryId) { 030 this.repositoryId = repositoryId; 031 } 032 033 public byte[] getPublicKey() { 034 return publicKey; 035 } 036 public void setPublicKey(byte[] publicKey) { 037 this.publicKey = publicKey; 038 } 039 040 public long getRevision() { 041 return revision; 042 } 043 public void setRevision(long revision) { 044 this.revision = revision; 045 } 046}