forked from RedHatInsights/notifications-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
294 additions
and
117 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
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
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
27 changes: 0 additions & 27 deletions
27
...-email/src/main/java/com/redhat/cloud/notifications/connector/email/model/bop/Emails.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...main/java/com/redhat/cloud/notifications/connector/email/model/bop/SendEmailsRequest.java
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.redhat.cloud.notifications.connector.email.model.bop; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* Represents the payload to be sent to BOP/MBOP. | ||
*/ | ||
public class SendEmailsRequest { | ||
|
||
private final Set<Email> emails = new HashSet<>(); | ||
private final boolean skipUsersResolution; | ||
|
||
public SendEmailsRequest(boolean skipUsersResolution) { | ||
this.skipUsersResolution = skipUsersResolution; | ||
} | ||
|
||
public Set<Email> getEmails() { | ||
return emails; | ||
} | ||
|
||
public boolean isSkipUsersResolution() { | ||
return skipUsersResolution; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...ail/src/main/java/com/redhat/cloud/notifications/connector/email/model/settings/User.java
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.redhat.cloud.notifications.connector.email.model.settings; | ||
|
||
import java.util.Objects; | ||
|
||
public class User { | ||
|
||
private String id; | ||
private String username; | ||
private String email; | ||
private boolean admin; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public boolean isAdmin() { | ||
return admin; | ||
} | ||
|
||
public void setAdmin(boolean admin) { | ||
this.admin = admin; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
|
||
if (!(o instanceof User)) { | ||
return false; | ||
} | ||
|
||
User user = (User) o; | ||
return Objects.equals(username, user.username); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(username); | ||
} | ||
} |
Oops, something went wrong.