@Test public void testStaffProgram() { Entity staff = helper.generateStaff(); helper.generateStaffEdorg(staff.getEntityId(), otherEdorg.getEntityId(), false); Entity staffProgram = helper.generateStaffProgram(staff.getEntityId(), "programId", false, true); Assert.assertFalse(validator.canAccess(staffProgram)); helper.generateStaffEdorg(staff.getEntityId(), myEdOrg.getEntityId(), false); Assert.assertTrue(validator.canAccess(staffProgram)); }
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);  }