19 package org.turro.mail.json;
21 import java.util.ArrayList;
22 import java.util.HashMap;
23 import java.util.List;
25 import javax.json.JsonValue;
26 import org.turro.json.IJSONizable;
34 private String category, subject, message;
35 private boolean administrators;
36 private List<String> entityPaths =
new ArrayList<>();
37 private List<String> contactIds =
new ArrayList<>();
38 private Map<String, String> users =
new HashMap<>();
45 this.category = category;
53 this.subject = subject;
61 this.message = message;
65 return administrators;
69 this.administrators = administrators;
77 this.entityPaths = entityPaths;
85 this.contactIds = contactIds;
92 public void setUsers(Map<String, String> users) {
119 contactIds.
add(contactId);
124 users.put(name, email);
144 public String
toJson(Map<String, Object> properties) {
145 return toJson(
this, properties);
void setUsers(Map< String, String > users)
List< String > getEntityPaths()
Map< String, String > getUsers()
void setMessage(String message)
JsonMailStructure add(String contactId)
JsonMailStructure category(String category)
List< String > getContactIds()
JsonMailStructure administrators()
String toJson(Map< String, Object > properties)
JsonMailStructure entityPath(String entityPath)
boolean isAdministrators()
void setEntityPaths(List< String > entityPaths)
JsonMailStructure message(String message)
void setCategory(String category)
JsonMailStructure add(String name, String email)
void setContactIds(List< String > contactIds)
static JsonMailStructure subject(String subject)
void setSubject(String subject)
static JsonMailStructure fromJson(JsonValue value)
void setAdministrators(boolean administrators)