Package com.almende.eve.entity

Examples of com.almende.eve.entity.Registration


      @Name("email") @Required(false) String email) throws Exception {
    // remove any existing registration
    unregister(agent, email);
   
    // create a new registration
    Registration registration = new Registration();
    registration.setDirectoryAgent(getFirstUrl());
    registration.setAgent(agent);
    registration.setType(type);
    registration.setUsername(username);
    registration.setEmail(email);
   
    // store the registration
    ObjectDatastore datastore = new AnnotationObjectDatastore();
    datastore.store(registration);
   
View Full Code Here


    .addFilter("directoryAgent", FilterOperator.EQUAL, getFirstUrl())
    .addFilter(field, FilterOperator.EQUAL, value)
    .now();
 
    while (it.hasNext()) {
      Registration registration = it.next();
      datastore.delete(registration);
   
  }
View Full Code Here

      .type(Registration.class)
      .addFilter("directoryAgent", FilterOperator.EQUAL, getFirstUrl())
      .now();
   
    while (it.hasNext()) {
      Registration registration = it.next();
      datastore.delete(registration);
      // TODO: bulk delete all registrations instead of one by one
    }
  }
View Full Code Here

TOP

Related Classes of com.almende.eve.entity.Registration

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.