@Test public void testCanValidate() { assertFalse(val.canValidate(EntityNames.COHORT, false)); assertTrue(val.canValidate(EntityNames.COHORT, true)); assertFalse(val.canValidate(EntityNames.SECTION, true)); assertFalse(val.canValidate(EntityNames.SECTION, false)); }
@Override public boolean canValidate(String entityType, boolean isTransitive) { return isTransitive && EntityNames.COHORT.equals(entityType) && isTeacher(); }
TeacherToCohortValidator extends AbstractContextValidator { @Override public boolean canValidate(String entityType, boolean isTransitive) { return isTransitive && EntityNames.COHORT.equals(entityType) && isTeacher(); } }
TeacherToCohortValidator extends AbstractContextValidator { @Override public boolean canValidate(String entityType, boolean isTransitive) { return isTransitive && EntityNames.COHORT.equals(entityType) && isTeacher(); }  }
TeacherToCohortValidator extends AbstractContextValidator { @Override public boolean canValidate(String entityType, boolean isTransitive) { return isTransitive && EntityNames.COHORT.equals(entityType) && isTeacher(); }  @Override boolean canValidate(String entityType, boolean isTransitive); @Override Set<String> validate(String entityType, Set<String> ids); @Override SecurityUtil.UserContext getContext(); }
TeacherToCohortValidator extends AbstractContextValidator { @Override public boolean canValidate(String entityType, boolean isTransitive) { return isTransitive && EntityNames.COHORT.equals(entityType) && isTeacher(); }  @Override boolean canValidate(String entityType, boolean isTransitive); @Override Set<String> validate(String entityType, Set<String> ids); @Override SecurityUtil.UserContext getContext();  }