no message
This commit is contained in:
@@ -5,7 +5,6 @@ import Common.Visual.DataSetControlForm;
|
||||
import _VisualDVM.ComponentsServer.Recipient.Json.UserAccountJson;
|
||||
import _VisualDVM.ComponentsServer.Recipient.Json.UserAccountsJson;
|
||||
import _VisualDVM.ComponentsServer.Recipient.UI.RecipientsForm;
|
||||
import _VisualDVM.ComponentsServer.UserAccount.UserAccount;
|
||||
import _VisualDVM.Constants;
|
||||
import _VisualDVM.Global;
|
||||
|
||||
@@ -15,16 +14,16 @@ public class RecipientsDataSet extends DataSet<String, Recipient> {
|
||||
public RecipientsDataSet() {
|
||||
super(String.class, Recipient.class);
|
||||
}
|
||||
public void Unpack(String packed){
|
||||
public void Unpack(String packed) {
|
||||
clear();
|
||||
UserAccountsJson jsons = Utils_.gson.fromJson(packed, UserAccountsJson.class);
|
||||
for (UserAccountJson userAccountJson: jsons.values){
|
||||
for (UserAccountJson userAccountJson : jsons.values) {
|
||||
Global.componentsServer.db.recipients.put(userAccountJson.email, new Recipient(userAccountJson));
|
||||
}
|
||||
}
|
||||
@Override
|
||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||
return new RecipientsForm(this,mountPanel);
|
||||
return new RecipientsForm(this, mountPanel);
|
||||
}
|
||||
@Override
|
||||
public String getPluralDescription() {
|
||||
@@ -34,11 +33,11 @@ public class RecipientsDataSet extends DataSet<String, Recipient> {
|
||||
public String getSingleDescription() {
|
||||
return "адресат";
|
||||
}
|
||||
public Vector<String> getSelectedMails(){
|
||||
public Vector<String> getSelectedMails() {
|
||||
//баг текущий. значит адресаты уже активные и правильные. дополняем их админами и автором.
|
||||
Vector<String> res = new Vector<>();
|
||||
for (Recipient recipient:Data.values()){
|
||||
if (recipient.isSelected()&& !res.contains(recipient.email))
|
||||
for (Recipient recipient : Data.values()) {
|
||||
if (recipient.isSelected() && !res.contains(recipient.email))
|
||||
res.add(recipient.email);
|
||||
}
|
||||
//--
|
||||
|
||||
Reference in New Issue
Block a user