working on list submission

This commit is contained in:
2022-04-16 12:29:49 +02:00
parent 7b41ece15e
commit 853926e0f7
4 changed files with 77 additions and 5 deletions

View File

@@ -123,6 +123,10 @@ public class MailingList {
return list;
}
public static boolean isOpen(String list) {
return openLists().stream().filter(ml -> ml.email.equals(list)).count() > 0;
}
public Map<String, Object> safeMap() {
var map = new HashMap<String,Object>();
String[] parts = email.split("@", 2);
@@ -163,4 +167,7 @@ public class MailingList {
return this;
}
public String email() {
return email;
}
}