If someone is currently handling a report, re-direct all messages relating to that report to them.
This commit is contained in:
parent
bf81c26874
commit
a1713ca866
|
@ -182,7 +182,7 @@ public class ReportManager {
|
|||
}
|
||||
else
|
||||
{
|
||||
// TODO send to handler?
|
||||
sendReportHandlerNotification(report, message);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,6 +284,7 @@ public class ReportManager {
|
|||
|
||||
/**
|
||||
* Send a network-wide {@link ReportNotification} to all online staff.
|
||||
*
|
||||
* @param message - the report notification message to send.
|
||||
*/
|
||||
public void sendReportNotification(JsonMessage message)
|
||||
|
@ -294,6 +295,7 @@ public class ReportManager {
|
|||
|
||||
/**
|
||||
* Send a network-wide {@link ReportNotification} to all online staff.
|
||||
*
|
||||
* @param message - the report notification message to send.
|
||||
*/
|
||||
public void sendReportNotification(String message)
|
||||
|
@ -302,6 +304,30 @@ public class ReportManager {
|
|||
reportNotification.publish();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send to the handler of a {@link Report}, regardless of whether or not the handler is currently on this server instance.
|
||||
*
|
||||
* @param report the report of which a message should be sent ot it's handler
|
||||
* @param jsonMessage the report notification message to send
|
||||
*/
|
||||
public void sendReportHandlerNotification(Report report, JsonMessage jsonMessage)
|
||||
{
|
||||
ReportHandlerNotification reportNotification = new ReportHandlerNotification(report, jsonMessage);
|
||||
reportNotification.publish();
|
||||
}
|
||||
|
||||
/**
|
||||
* Send to the handler of a {@link Report}, regardless of whether or not the handler is currently on this server instance.
|
||||
*
|
||||
* @param report the report of which a message should be sent ot it's handler
|
||||
* @param message the report notification message to send
|
||||
*/
|
||||
public void sendReportHandlerNotification(Report report, String message)
|
||||
{
|
||||
ReportHandlerNotification reportNotification = new ReportHandlerNotification(report, message);
|
||||
reportNotification.publish();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param playerName - the name of the player whose active report id is being fetched
|
||||
* @return the report id for the active report corresponding with playerName, if one
|
||||
|
|
Loading…
Reference in New Issue