/** * Will return all the SiteResearchStaff which are currently active. * * @return the in active site research staff */ @Transient public List<SiteResearchStaff> getInActiveSiteResearchStaff() { List<SiteResearchStaff> srsList = new ArrayList<SiteResearchStaff>(); for (SiteResearchStaff srs : getSiteResearchStaffs()) { if (!srs.isActive()) srsList.add(srs); } return srsList; }
/** * Checks if is active. * * @return true, if is active */ @Transient public boolean isActive() { if (getSiteResearchStaffs() == null) return false; for (SiteResearchStaff srs : this.getSiteResearchStaffs()) { if (srs.isActive()) return true; } return false; }