Skip to content

Commit

Permalink
SAK-42257 Messages in forums are not exported when archiving a site, …
Browse files Browse the repository at this point in the history
…part 2 (sakaiproject#7359)

Commit to return a Message object when saving a message instead of having void methods.
  • Loading branch information
adrianmticarum authored and ern committed Sep 20, 2019
1 parent 33b1364 commit 5879b48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public List getMessagesByTypeByContext(final String typeUuid, final String conte
* @param message
* @param recipients
*/
void savePrivateMessage(Message message);
void savePrivateMessage(Message message, boolean logEvent);
Message savePrivateMessage(Message message);
Message savePrivateMessage(Message message, boolean logEvent);

/**
* find message count for type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,17 @@ public PrivateForum initializationHelper(PrivateForum forum, Area area, String u
/**
* @see org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager#savePrivateMessage(org.sakaiproject.api.app.messageforums.Message)
*/
public void savePrivateMessage(Message message)
public Message savePrivateMessage(Message message)
{
messageManager.saveOrUpdateMessage(message);
return messageManager.saveOrUpdateMessage(message);
}

/**
* @see org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager#savePrivateMessage(org.sakaiproject.api.app.messageforums.Message, boolean logEvent)
*/
public void savePrivateMessage(Message message, boolean logEvent)
public Message savePrivateMessage(Message message, boolean logEvent)
{
messageManager.saveOrUpdateMessage(message, logEvent);
return messageManager.saveOrUpdateMessage(message, logEvent);
}

public Message getMessageById(Long id)
Expand Down

0 comments on commit 5879b48

Please sign in to comment.