use of com.serotonin.m2m2.vo.mailingList.MailingListRecipient in project ma-modules-public by infiniteautomation.
the class PhoneEntryModel method fromModel.
@Override
public MailingListRecipient fromModel() {
PhoneEntry entry = new PhoneEntry();
entry.setPhone(phone);
return entry;
}
use of com.serotonin.m2m2.vo.mailingList.MailingListRecipient in project ma-modules-public by infiniteautomation.
the class UserEntryModel method fromModel.
@Override
public MailingListRecipient fromModel() {
UserEntry entry = new UserEntry();
Integer user = UserDao.getInstance().getIdByXid(username);
if (user != null) {
entry.setUserId(user);
}
return entry;
}
use of com.serotonin.m2m2.vo.mailingList.MailingListRecipient in project ma-modules-public by infiniteautomation.
the class UserPhoneEntryModel method fromModel.
@Override
public MailingListRecipient fromModel() {
UserEntry entry = new UserEntry();
Integer user = UserDao.getInstance().getIdByXid(username);
if (user != null) {
entry.setUserId(user);
}
return entry;
}
use of com.serotonin.m2m2.vo.mailingList.MailingListRecipient in project ma-modules-public by infiniteautomation.
the class AddressEntryModel method fromModel.
@Override
public MailingListRecipient fromModel() {
AddressEntry entry = new AddressEntry();
entry.setAddress(address);
return entry;
}
use of com.serotonin.m2m2.vo.mailingList.MailingListRecipient in project ma-modules-public by infiniteautomation.
the class MailingListEntryModel method fromModel.
@Override
public MailingListRecipient fromModel() {
MailingListEntry entry = new MailingListEntry();
Integer id = MailingListDao.getInstance().getIdByXid(xid);
if (id != null) {
entry.setMailingListId(id);
}
return entry;
}
Aggregations