while (it.hasNext()) { CmsGroup group = it.next(); if (group.isVirtual()) { CmsRole r = CmsRole.valueOf(group); if (roleFlags.contains(new Integer(r.getVirtualGroupFlags()))) {
while (it.hasNext()) { CmsGroup group = (CmsGroup)it.next(); if (group.isVirtual()) { CmsRole r = CmsRole.valueOf(group); if (roleFlags.contains(new Integer(r.getVirtualGroupFlags()))) {
/** * @see org.opencms.workplace.tools.accounts.A_CmsGroupUsersList#validateParamaters() */ @Override protected void validateParamaters() throws Exception { super.validateParamaters(); if (getCms().readGroup(new CmsUUID(getParamGroupid())).isVirtual()) { throw new Exception(); } } }
/** * Returns the role for the given group.<p> * * @param group a group to check for role representation * * @return the role for the given group */ public static CmsRole valueOf(CmsGroup group) { // check groups for internal representing the roles if (group.isRole()) { CmsRole role = valueOfGroupName(group.getName()); if (role != null) { return role; } } // check virtual groups mapping a role if (group.isVirtual()) { int index = (group.getFlags() & (I_CmsPrincipal.FLAG_CORE_LIMIT - 1)); index = index / (I_CmsPrincipal.FLAG_GROUP_VIRTUAL * 2); CmsRole role = getSystemRoles().get(index); return role.forOrgUnit(group.getOuFqn()); } return null; }
/** * Returns the role for the given group.<p> * * @param group a group to check for role representation * * @return the role for the given group */ public static CmsRole valueOf(CmsGroup group) { // check groups for internal representing the roles if (group.isRole()) { CmsRole role = valueOfGroupName(group.getName()); if (role != null) { return role; } } // check virtual groups mapping a role if (group.isVirtual()) { int index = (group.getFlags() & (I_CmsPrincipal.FLAG_CORE_LIMIT - 1)); index = index / (I_CmsPrincipal.FLAG_GROUP_VIRTUAL * 2); CmsRole role = (CmsRole)getSystemRoles().get(index); return role.forOrgUnit(group.getOuFqn()); } return null; }
if (group.isVirtual()) {
if (group.isVirtual()) {
try { CmsGroup group = m_cms.readGroup(groupName); if (group.isVirtual() || group.isRole()) { CmsRole role = CmsRole.valueOf(group); OpenCms.getRoleManager().addUserToRole(m_cms, role, name);
try { CmsGroup group = m_cms.readGroup(groupName); if (group.isVirtual() || group.isRole()) { CmsRole role = CmsRole.valueOf(group); OpenCms.getRoleManager().addUserToRole(m_cms, role, name);
A_CmsEditGroupDialog.PARAM_GROUPID); try { return !wp.getCms().readGroup(new CmsUUID(groupId)).isVirtual(); } catch (Exception e) { return false;