public final ChaiUser getManager() throws ChaiOperationException, ChaiUnavailableException { final String mgrDN = this.readStringAttribute(ATTR_MANAGER); if (mgrDN == null) { return null; } return ChaiFactory.createChaiUser(mgrDN, this.getChaiProvider()); }
public final Set<ChaiUser> getDirectReports() throws ChaiOperationException, ChaiUnavailableException { final Set<String> reportDNs = this.readMultiStringAttribute(ATTR_MANAGER); final Set<ChaiUser> reports = new HashSet<ChaiUser>(reportDNs.size()); for (final String reporteeDN : reportDNs) { reports.add(ChaiFactory.createChaiUser(reporteeDN, this.getChaiProvider())); } return Collections.unmodifiableSet(reports); }