Skip to content
Snippets Groups Projects
Commit 16203cc4 authored by srosse's avatar srosse
Browse files

no-jira: add the thread key to the Message of the Forum REST API

parent 7fa8a2e3
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,7 @@ import org.olat.restapi.support.vo.FileVO; ...@@ -43,6 +43,7 @@ import org.olat.restapi.support.vo.FileVO;
public class MessageVO { public class MessageVO {
private Long key; private Long key;
private Long threadKey;
private Long forumKey; private Long forumKey;
private Long parentKey; private Long parentKey;
private Long authorKey; private Long authorKey;
...@@ -64,6 +65,9 @@ public class MessageVO { ...@@ -64,6 +65,9 @@ public class MessageVO {
public MessageVO(Message message) { public MessageVO(Message message) {
key = message.getKey(); key = message.getKey();
if(message.getThreadtop() != null) {
threadKey = message.getThreadtop().getKey();
}
Identity auth = message.getCreator(); Identity auth = message.getCreator();
authorKey = auth.getKey(); authorKey = auth.getKey();
authorName = auth.getName(); authorName = auth.getName();
...@@ -96,6 +100,14 @@ public class MessageVO { ...@@ -96,6 +100,14 @@ public class MessageVO {
this.key = key; this.key = key;
} }
public Long getThreadKey() {
return threadKey;
}
public void setThreadKey(Long threadKey) {
this.threadKey = threadKey;
}
public Long getForumKey() { public Long getForumKey() {
return forumKey; return forumKey;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment