Package com.secretpal.model

Examples of com.secretpal.model.SPGroup


    eventPage.setEvent(_event);
    return eventPage;
  }

  public WOActionResults deleteEvent() {
    SPGroup group = _event.group();
    _event.delete();
    _event.editingContext().saveChanges();
    SPGroupPage groupPage = pageWithName(SPGroupPage.class);
    groupPage.setGroup(group);
    return groupPage;
View Full Code Here


  public String sectionClass() {
    return _membership.confirmed().booleanValue() ? "section" : "section pending";
  }

  public WOActionResults declineInvitation() {
    SPGroup group = _membership.group();
    SPMembership.declineInvitation(_membership);
    session().notifications().addNotice("Your invitation to '" + group.name() + "' has been declined.");
    return null;
  }
View Full Code Here

    gary.setPlainTextPassword("test1");
   
    SPPerson mary = SPPerson.createSPPerson(editingContext, Boolean.FALSE, "test2@secretpal.com", Boolean.FALSE, "Mary Example");
    mary.setPassword(null);
   
    SPGroup testGroup = SPGroup.createSPGroup(editingContext, "The Example Crew", admin);
    testGroup.setDescription("This is the example group for testing Secret Pal.");
    SPMembership.createSPMembership(editingContext, Boolean.TRUE, Boolean.TRUE, testGroup, admin);
    SPMembership.createSPMembership(editingContext, Boolean.FALSE, Boolean.TRUE, testGroup, gary);
    SPMembership.createSPMembership(editingContext, Boolean.FALSE, Boolean.FALSE, testGroup, mary);
    SPEvent testEvent = SPEvent.createSPEvent(editingContext, Boolean.TRUE, "Christmas 2010", testGroup);
    testEvent.setDescription("It's christmas time! Get your secret pal something nice!");
View Full Code Here

TOP

Related Classes of com.secretpal.model.SPGroup

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.