Package com.secretpal.model

Examples of com.secretpal.model.SPPerson.emailAddress()


    public void invalidRecipients(ERMessage message, NSArray<String> invalidRecipientAddresses) {
      EOEditingContext editingContext = ERXEC.newEditingContext();
      editingContext.lock();
      try {
        SPPerson person = (SPPerson) ERXEOControlUtilities.convertGIDtoEO(editingContext, _personGID);
        _errorNoticeList.addNotice("Failed to send an email to '" + person.emailAddress() + "'.");
      } finally {
        editingContext.unlock();
        editingContext.dispose();
      }
    }
View Full Code Here


    public void deliveryFailed(ERMessage message, Throwable failure) {
      EOEditingContext editingContext = ERXEC.newEditingContext();
      editingContext.lock();
      try {
        SPPerson person = (SPPerson) ERXEOControlUtilities.convertGIDtoEO(editingContext, _personGID);
        _errorNoticeList.addNotice("Failed to send an email to '" + person.emailAddress() + "'.");
        person.setEmailDeliveryFailure(Boolean.TRUE);
        editingContext.saveChanges();
      } finally {
        editingContext.unlock();
        editingContext.dispose();
View Full Code Here

public class SecretPal1 extends ERXMigrationDatabase.Migration implements IERXPostMigration {
  public void postUpgrade(EOEditingContext editingContext, EOModel model) throws Throwable {
    for (SPPerson person : SPPerson.fetchAllSPPersons(editingContext)) {
      EOEditingContext nestedEditingContext = ERXEC.newEditingContext(editingContext);
      SPPerson nestedPerson = person.localInstanceIn(nestedEditingContext);
      nestedPerson.setEmailAddress(SPUtilities.cleanseEmailAddress(nestedPerson.emailAddress()));
      try {
        nestedEditingContext.saveChanges();
      }
      catch (NSValidation.ValidationException e) {
        // this probably means the person realized they screwed up and reinvited the person with the proper email address
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.