Package com.google.appengine.api.datastore

Examples of com.google.appengine.api.datastore.Email


  @Override
  public EvaluationResult evaluate(ProcessDataRecord record) {
    EvaluationResult r = ops.get(0).evaluate(record);
   
    if (r.getPayload() instanceof String) {
      Email val = new Email((String) r.getPayload());
      return new EvaluationResult(val, r)
    } else {
      return r.withWarning(ErrorCode.W136);
    }
  }
View Full Code Here


    Event event = CannedQueries.eventByKey(eventKey);
   
    if (event == null)
      return new MyVillageResponse("Event with key '"+eventWebKey+"' not found");
   
    Email userEmail = new Email(userEmailString);
    Collection<Booking> bookings = CannedQueries.bookingsForEventAndEmail(eventKey, userEmail);
   
    for(Booking booking : bookings)
    {
      if (booking.getMyvillageAuthKey().equals(userKey))
View Full Code Here

      return null;
    return email.getEmail();
  }

  public void setEmail(String email) {
    this.email = new Email(email);
  }
View Full Code Here

    CannedQueries.bookingsForUnit(unit1, event1);
    CannedQueries.bookingsForVillage(village1);
    CannedQueries.bookingsHomeless(event1);
    CannedQueries.bookingByKey(bookings.iterator().next().getKeyCheckNotNull());
    CannedQueries.bookingsForName("Test person 2");
    CannedQueries.bookingsForEventAndEmail(event1.getKeyCheckNotNull(), new Email("email@example.com"));
    
    // Transaction queries
    Collection<Transaction> transactions = CannedQueries.transactionsForUnit(unit1, event1);
    CannedQueries.transactionsForEvent(event1);
    CannedQueries.transactionsForOrg(org1, event1);
View Full Code Here

      entity.setProperty("Date", new Date(RandomUtils.nextLong()));
      entity.setProperty("User", new User("test@example", "google.com"));
      entity.setProperty("Key", KeyFactory.createKey("test", RandomStringUtils
        .randomAlphabetic(5)));
      entity.setProperty("Category", new Category(RandomStringUtils.randomAlphabetic(3)));
      entity.setProperty("Email", new Email("test@example"));
      entity.setProperty("GeoPt", new GeoPt(new Float(new Integer(RandomStringUtils
        .randomNumeric(2)) - 9), new Float(
        new Integer(RandomStringUtils.randomNumeric(2)) - 9)));
      entity.setProperty("IMHandle", new IMHandle(Scheme.valueOf("sip"), RandomStringUtils
        .randomAlphabetic(2)));
View Full Code Here

      entity.setProperty("Date", new Date(RandomUtils.nextLong()));
      entity.setProperty("User", new User("test@example", "google.com"));
      entity.setProperty("Key", KeyFactory.createKey("test", RandomStringUtils
        .randomAlphabetic(5)));
      entity.setProperty("Category", new Category(RandomStringUtils.randomAlphabetic(3)));
      entity.setProperty("Email", new Email("test@example"));
      entity.setProperty("GeoPt", new GeoPt(new Float(new Integer(RandomStringUtils
        .randomNumeric(2)) - 9), new Float(
        new Integer(RandomStringUtils.randomNumeric(2)) - 9)));
      entity.setProperty("IMHandle", new IMHandle(Scheme.valueOf("sip"), RandomStringUtils
        .randomAlphabetic(2)));
View Full Code Here

    DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
    Key controlId = datastore.allocateIds("drop", 1).getStart();
    Key childKey = KeyFactory.createKey(controlId, GbControl.NAME, kindName);
    Entity control = new Entity(childKey);
    control.setProperty(GbControl.KIND_NAME, kindName);
    control.setProperty(GbControl.REPORT_TO, new Email("test@example.com"));
    control.setProperty(GbControl.COUNT, 0);
    control.setProperty(GbControl.UPDATE_DATE, new Date());
    datastore.put(control);

    return childKey;
View Full Code Here

      .randomNumeric(2))));
    entity.setProperty(GbProperty.PHONE_NUMBER, new PhoneNumber(RandomStringUtils
      .randomNumeric(11)));
    entity.setProperty(GbProperty.POSTAL_ADDRESS, new PostalAddress(RandomStringUtils
      .randomNumeric(7)));
    entity.setProperty(GbProperty.EMAIL, new Email(RandomStringUtils.randomAlphanumeric(20)));
    entity.setProperty(GbProperty.IMHANDLE, new IMHandle(
      Scheme.valueOf("sip"),
      RandomStringUtils.randomAlphabetic(2)));
    entity.setProperty(GbProperty.BLOB_KEY, new BlobKey(RandomStringUtils
      .randomAlphanumeric(10)));
View Full Code Here

            result.setUid(key);
            // 初期化キーを設定
            result.setInitialKey(RandomStringUtils.randomAlphanumeric(16));
        }
        result.setName(name);
        result.setMail(new Email(mail));
        return result;
    }
View Full Code Here

        Administrator user = new Administrator();
        user.setUid(UserService.createKey(uid));
        user.setName("Test User Name");
        user.setPassword(password);
        user.setMail(new Email("email@example.com"));
        Datastore.put(user);

        // 元URLを指定して、ログインに成功する場合
        tester.param("url", url);
        tester.param("uid", uid);
View Full Code Here

TOP

Related Classes of com.google.appengine.api.datastore.Email

Copyright © 2018 www.massapicom. 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.