EditorにgetUidなどを追加しました。
1 parent b3cb1e8 commit 0833e4a5909b6ca332400faa0434d985e0758385
yugo-asano authored on 28 May 2021
Showing 1 changed file
View
37
src/main/java/org/ntlab/acanthus_server/entities/Editor.java
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();
}
}