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