Examples of Organisation


Examples of uk.org.woodcraft.bookings.datamodel.Organisation

  public void testGetByKey() {
    User user1 = CannedQueries.getByKey(User.class, "globaladmin@example.com");
    assertEquals("Global Admin 1", user1.getName());
    assertDetached(user1);
   
    Organisation org = CannedQueries.orgByName("Woodcraft Folk");   
    Organisation org2 = CannedQueries.getByKey(Organisation.class, org.getKey());
    assertEquals(org, org2);
    assertDetached(org2);
   
  }
View Full Code Here

Examples of uk.org.woodcraft.bookings.datamodel.Organisation

   
    // Org queries
    CannedQueries.allOrgs(false, false);
    CannedQueries.allOrgs(true, false);
    CannedQueries.allUnapprovedOrgs();
    Organisation org1 = CannedQueries.orgByName(TestConstants.ORG1_NAME);
    @SuppressWarnings("unused")
    Organisation duplicateOrg = CannedQueries.orgByName(TestConstants.ORG1_NAME, org1.getKeyCheckNotNull());
    CannedQueries.orgByKey(org1.getKeyCheckNotNull());
   
    // Unit queries
    CannedQueries.allUnits(false, false);
View Full Code Here

Examples of uk.org.woodcraft.bookings.datamodel.Organisation

    Key key = getWebKeyAsKey();
    if (key != null)
    {
      setModel(CannedQueries.orgByKey(key));
    } else {
      setModel(new Organisation());
    }
  }
View Full Code Here

Examples of uk.org.woodcraft.bookings.datamodel.Organisation

  }

  @SkipValidation
  public String listForOrg() {
   
    Organisation org = SessionUtils.getCurrentOrg()
   
    SecurityModel.checkAllowed(Operation.READ, org);
    setModelList(filterSystemUsers(CannedQueries.allUsersForOrg(org)));
    return SUCCESS;
  }
View Full Code Here

Examples of uk.org.woodcraft.bookings.datamodel.Organisation

  }
 
  public Collection<Organisation> getAllOrgs()
  {
    Collection<Organisation> orgs = CannedQueries.allOrgs(true, false);
    Organisation userAddedOrg = (Organisation)getSessionObject(SessionConstants.SIGNUP_ADDED_ORG);
    if (userAddedOrg != null) {
      orgs.add(userAddedOrg);
    }
   
    return orgs;
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.