Add creator full name
parent
cf154de2e4
commit
08ce41da5f
|
@ -96,7 +96,7 @@ public class MindmapController extends BaseController {
|
||||||
lockFullName = lockInfo.getUser().getFullName();
|
lockFullName = lockInfo.getUser().getFullName();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new RestMindmapMetadata(mindmap.getTitle(), mindMapBean.getProperties(), isLocked, lockFullName);
|
return new RestMindmapMetadata(mindmap.getTitle(), mindmap.getCreator().getFullName(), mindMapBean.getProperties(), isLocked, lockFullName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PreAuthorize("isAuthenticated() and hasRole('ROLE_USER')")
|
@PreAuthorize("isAuthenticated() and hasRole('ROLE_USER')")
|
||||||
|
|
|
@ -37,11 +37,14 @@ public class RestMindmapMetadata {
|
||||||
private String title;
|
private String title;
|
||||||
private String isLockedBy;
|
private String isLockedBy;
|
||||||
|
|
||||||
public RestMindmapMetadata(@NotNull String title, @NotNull String jsonProps, boolean locked, @Nullable String isLockedBy) {
|
private String creatorFullName;
|
||||||
|
|
||||||
|
public RestMindmapMetadata(@NotNull String title, @NotNull String jsonProps, @NotNull String creatorFullName, boolean locked, @Nullable String isLockedBy) {
|
||||||
this.jsonProps = jsonProps;
|
this.jsonProps = jsonProps;
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.locked = locked;
|
this.locked = locked;
|
||||||
this.isLockedBy = isLockedBy;
|
this.isLockedBy = isLockedBy;
|
||||||
|
this.creatorFullName = creatorFullName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getJsonProps() {
|
public String getJsonProps() {
|
||||||
|
@ -75,4 +78,12 @@ public class RestMindmapMetadata {
|
||||||
public void setIsLockedBy(String isLockedBy) {
|
public void setIsLockedBy(String isLockedBy) {
|
||||||
this.isLockedBy = isLockedBy;
|
this.isLockedBy = isLockedBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getCreatorFullName() {
|
||||||
|
return creatorFullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatorFullName(String creatorFullName) {
|
||||||
|
this.creatorFullName = creatorFullName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue