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