-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* UserDetails refactoring broke SMS processing as SMS processing was done in another thread that does not have the currentUser set. The processing code uses the manager which requires the currentUser to be set. * Process incoming SMS via jobs instead to fix the above. Every incoming sms will result in a job executed as the user sending the sms * Override MessageSender for Email and SmsMessageSender with FakeMessageSender so we can assert on error sms responses. * Test that we can delete a tracker event via an sms and that we respond with an sms if the event cannot be deleted.
- Loading branch information
Showing
19 changed files
with
521 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,16 @@ | |
package org.hisp.dhis.outboundmessage; | ||
|
||
import java.util.Set; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
/** | ||
* @author Zubair <[email protected]> | ||
*/ | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class OutboundMessage { | ||
private String subject; | ||
|
||
|
@@ -45,26 +51,14 @@ public OutboundMessage(String subject, String text, Set<String> recipients) { | |
this.recipients = recipients; | ||
} | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text; | ||
} | ||
|
||
public Set<String> getRecipients() { | ||
return recipients; | ||
} | ||
|
||
public void setRecipients(Set<String> recipients) { | ||
this.recipients = recipients; | ||
} | ||
|
||
public String getSubject() { | ||
return subject; | ||
} | ||
|
||
public void setSubject(String subject) { | ||
this.subject = subject; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 0 additions & 76 deletions
76
...ice-core/src/main/java/org/hisp/dhis/sms/DatabaseSupportedInternalMemoryMessageQueue.java
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/sms/SmsPublisher.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.