@Test public void testDisciplineIncident() { Entity di = helper.generateDisciplineIncident(otherEdorg.getEntityId()); Assert.assertFalse(validator.canAccess(di)); di = helper.generateDisciplineIncident(myEdOrg.getEntityId()); Assert.assertTrue(validator.canAccess(di)); }
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);  }