@Test public void testStudentDiscIncAssoc() { Entity student = helper.generateStudent(); helper.generateStudentSchoolAssociation(student.getEntityId(), otherEdorg.getEntityId(), "", false); Entity discIncAssoc = helper.generateStudentDisciplineIncidentAssociation(student.getEntityId(), "dicpId"); Assert.assertFalse(validator.canAccess(discIncAssoc)); helper.generateStudentSchoolAssociation(student.getEntityId(), myEdOrg.getEntityId(), "", false); Assert.assertTrue(validator.canAccess(discIncAssoc)); }
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);  }