EditorとAnimationを少し変更しました。 #125

Merged r-takeuchi merged 1 commit into nitta-lab-2021:master from nitta-lab-2021:Editors on 28 May 2021
Showing 2 changed files
View
2
■■■
src/main/java/org/ntlab/acanthus_server/entities/Animation.java
Date dt = new Date();
this.createdDate = dt.toString();
this.isPublic = false;
this.owner = owner;
this.editors.add(new Editor(owner));
this.editors.add(new Editor(owner, true));
this.pageMap.put(0, 0);
}
 
private Gallery gallery = Gallery.getInstance();
View
10
src/main/java/org/ntlab/acanthus_server/entities/Editor.java
private Boolean isOwner;
//private Integer page;
//private Integer layer;
 
public Editor(Account account){
/*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;
}*/
}
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
 
public Account getEditor(){ return this.account; }
 
public boolean checkOwner(){ return this.isOwner; }
}