@Test public void testTeacherSchoolAssoc() { Entity tsa = helper.generateTeacherSchool("teacherId", otherEdorg.getEntityId()); Assert.assertFalse(validator.canAccess(tsa)); tsa = helper.generateTeacherSchool("teacherId", myEdOrg.getEntityId()); Assert.assertTrue(validator.canAccess(tsa)); }
public boolean canAccess(Entity entity) { return canAccess(entity, true); }
EntityOwnershipValidator { public boolean canAccess(Entity entity) { return canAccess(entity, true); } }
EntityOwnershipValidator { public boolean canAccess(Entity entity) { return canAccess(entity, true); }  }
EntityOwnershipValidator { public boolean canAccess(Entity entity) { return canAccess(entity, true); }  boolean canAccess(Entity entity); boolean canAccess(Entity entity, boolean isTransitive); }
EntityOwnershipValidator { public boolean canAccess(Entity entity) { return canAccess(entity, true); }  boolean canAccess(Entity entity); boolean canAccess(Entity entity, boolean isTransitive);  }