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