diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Editor.java b/src/main/java/org/ntlab/acanthus_server/entities/Editor.java index eaea542..a8fa4cf 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Editor.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Editor.java @@ -1,27 +1,37 @@ package org.ntlab.acanthus_server.entities; +import com.fasterxml.jackson.annotation.JsonIgnore; + public class Editor { private Account account; private Boolean isOwner; //private Integer page; //private Integer layer; - /*public Editor(Account account){ - this.account = account; - isOwner = false; - }*/ - public Editor(Account account, boolean isOwner){ + public Editor(Account account, boolean isOwner) { this.account = account; this.isOwner = isOwner; } + + @JsonIgnore public Account getAccount() { return account; } + public void setAccount(Account account) { this.account = account; } - public Account getEditor(){ return this.account; } + @JsonIgnore + public Account getEditor() { + return this.account; + } - public boolean checkOwner(){ return this.isOwner; } + public boolean checkOwner() { + return this.isOwner; + } + + public Integer getUid() { + return this.account.getUid(); + } }