/** * Returns the set of users that are responsible for a specific resource.<p> * * @param dbc the current database context * @param resource the resource to get the responsible users from * * @return the set of users that are responsible for a specific resource * * @throws CmsException if something goes wrong */ public Set readResponsibleUsers(CmsDbContext dbc, CmsResource resource) throws CmsException { Set result = new HashSet(); Iterator principals = readResponsiblePrincipals(dbc, resource).iterator(); while (principals.hasNext()) { I_CmsPrincipal principal = (I_CmsPrincipal)principals.next(); if (principal instanceof CmsGroup) { try { result.addAll(getUsersOfGroup(dbc, principal.getName(), true, false, false)); } catch (CmsException e) { if (LOG.isInfoEnabled()) { LOG.info(e); } } } else { result.add(principal); } } return result; }
/** * Returns the set of users that are responsible for a specific resource.<p> * * @param dbc the current database context * @param resource the resource to get the responsible users from * * @return the set of users that are responsible for a specific resource * * @throws CmsException if something goes wrong */ public Set<CmsUser> readResponsibleUsers(CmsDbContext dbc, CmsResource resource) throws CmsException { Set<CmsUser> result = new HashSet<CmsUser>(); Iterator<I_CmsPrincipal> principals = readResponsiblePrincipals(dbc, resource).iterator(); while (principals.hasNext()) { I_CmsPrincipal principal = principals.next(); if (principal.isGroup()) { try { result.addAll(getUsersOfGroup(dbc, principal.getName(), true, false, false)); } catch (CmsException e) { if (LOG.isInfoEnabled()) { LOG.info(e); } } } else { result.add((CmsUser)principal); } } return result; }
try { it = m_driverManager.getUsersOfGroup(dbc, groupName, false, false, false).iterator(); } catch (CmsException e) {
try { it = m_driverManager.getUsersOfGroup(dbc, groupName, false, false, false).iterator(); } catch (CmsException e) {
try { it = m_driverManager.getUsersOfGroup(dbc, groupName, false, false, false).iterator(); } catch (CmsException e) {
List<CmsUser> result = null; try { result = m_driverManager.getUsersOfGroup( dbc, CmsOrganizationalUnit.removeLeadingSeparator(groupname),
List result = null; try { result = m_driverManager.getUsersOfGroup( dbc, CmsOrganizationalUnit.removeLeadingSeparator(groupname),
Iterator it = getUsersOfGroup(dbc, groupname, true, false, true).iterator(); while (it.hasNext()) { CmsUser user = (CmsUser)it.next();
List users = getUsersOfGroup(dbc, group.getName(), true, true, group.isRole());
Iterator<CmsUser> it = getUsersOfGroup(dbc, groupname, true, false, true).iterator(); while (it.hasNext()) { CmsUser user = it.next();
List<CmsUser> users = getUsersOfGroup(dbc, group.getName(), true, true, group.isRole());