Returns the role select options.<p>

@return the role select options
972262
private List<CmsSelectWidgetOption> getRoles() {

        List<CmsSelectWidgetOption> roleOptions = new ArrayList<CmsSelectWidgetOption>();
        roleOptions.add(
            new CmsSelectWidgetOption(
                NO_ROLE,
                false,
                Messages.get().getBundle(getLocale()).key(Messages.GUI_USER_EDITOR_NO_ROLE_0)));
        try {
            List<CmsRole> roles = new ArrayList<CmsRole>(
                OpenCms.getRoleManager().getRoles(getCms(), m_paramOufqn, false));
            // ensure the role sorting matches the system roles order
            CmsRole.applySystemRoleOrder(roles);
            for (CmsRole role : roles) {
                roleOptions.add(
                    new CmsSelectWidgetOption(
                        role.getRoleName(),
                        role.getRoleName().equals(CmsRole.ELEMENT_AUTHOR.getRoleName()),
                        role.getDisplayName(getCms(), getLocale())));
            }
        } catch (CmsException e) {
            LOG.error(e.getLocalizedMessage(), e);
        }
        return roleOptions;
    }
1038069
protected function getRoles() {
        if (!$this->_roles) {
            $this->_roles = new RoleList($this->version, $this->solution['sid']);
        }

        return $this->_roles;
    }
1018676
public String[] getSelectOptions() {
        List<WebElement> optionList = getElement().findElements(By.tagName("option"));
        String[] optionArray = new String[optionList.size()];
        for (int i = 0; i < optionList.size(); i++) {
            optionArray[i] = optionList.get(i).getText();
        }
        return optionArray;
    }
439427
@Override
  public Map<String, String> getAllOptions()
  {
    final Map<String, String> result = new HashMap<String, String>();

    result.putAll(getUserOptions());
    result.putAll(getManagedOptions());

    return result;
  }
793163
public List<Role> findAllRoles() {
        List<Role> list = new ArrayList<>();
        List<String> roleStrings;
        try {
            roleStrings = readLines(rolesFile);
        } catch (IOException e) {
            throw new FileBasedRuntimeException(e);
        }

        for (String roleString : roleStrings) {
            if (StringUtils.isNotBlank(roleString)) {
                String[] substrings =
                    StringUtils.splitByWholeSeparator(roleString, Configuration.get().getAssociationSeparator());
                if (substrings.length < 1 || StringUtils.isBlank(substrings[0])) {
                    continue;
                }
                Role role = new Role(substrings[0]);
                if (substrings.length > 1) {
                    role.setRoles(Arrays.asList(StringUtils.splitByWholeSeparator(substrings[1], Configuration.get()
                            .getValueSeparator())));
                }
                list.add(role);
            }
        }

        return list;
    }
225690
public List<SecurityRoleType<WebFragmentType<T>>> getAllSecurityRole()
   {
      List<SecurityRoleType<WebFragmentType<T>>> list = new ArrayList<SecurityRoleType<WebFragmentType<T>>>();
      List<Node> nodeList = childNode.get("security-role");
      for(Node node: nodeList)
      {
         SecurityRoleType<WebFragmentType<T>>  type = new SecurityRoleTypeImpl<WebFragmentType<T>>(this, "security-role", childNode, node);
         list.add(type);
      }
      return list;
   }
482695
public List<String> getButtonBarOption() {

        if (m_buttonBarOption == null) {
            // use lazy initializing for performance reasons
            if (CmsStringUtil.isEmpty(getButtonBarOptionString())) {
                // no individual configuration defined, create empty list
                m_buttonBarOption = Collections.emptyList();
            } else {
                // create list of button bar options from configuration string
                m_buttonBarOption = CmsStringUtil.splitAsList(getButtonBarOptionString(), DELIMITER_VALUE, true);
            }
        }
        return m_buttonBarOption;
    }
371723
@Override
    public List<Role> findRoles() {
        List<Role> roleList;
        try {
            roleList = createRoles(ldapDao.getDirectChildren(DnFactory.roles()));
        } catch (NoSuchNodeException | MissingParentException e) {
            LOGGER.error("LDAP exception", e);
            throw new LdapRuntimeException(e);
        }
        return roleList;
    }
224758
public PositionOptions getPosition()
	{
		IComplexOption position = options.getComplexOption("position");
		
		if (position instanceof PositionOptions)
		{
			return (PositionOptions) position;
		}
		
		return new PositionOptions()
				.setMy(new PositionAlignmentOptions(PositionRelation.CENTER))
				.setAt(new PositionAlignmentOptions(PositionRelation.CENTER))
				.setOf("window");
	}
226752
public static List<String> getManagableOUs(CmsObject cms) {

        List<String> ous = new ArrayList<String>();
        try {
            for (CmsRole role : OpenCms.getRoleManager().getRolesOfUser(
                cms,
                cms.getRequestContext().getCurrentUser().getName(),
                "",
                true,
                false,
                true)) {
                if (role.getRoleName().equals(CmsRole.ACCOUNT_MANAGER.getRoleName())) {
                    if (role.getOuFqn().equals("")) {
                        ous.add(0, role.getOuFqn());
                    } else {
                        ous.add(role.getOuFqn());
                    }
                }
            }
        } catch (CmsException e) {
            //
        }
        return ous;
    }
791
public java.util.List<ConfigurationOptionSetting> getOptionSettings() {
        if (optionSettings == null) {
            optionSettings = new com.amazonaws.internal.SdkInternalList<ConfigurationOptionSetting>();
        }
        return optionSettings;
    }
159231
public List<CmsContainerElementBean> getElements() {

        if (m_elements == null) {
            m_elements = new ArrayList<CmsContainerElementBean>();
            for (CmsContainerBean container : m_containers.values()) {
                m_elements.addAll(container.getElements());
            }
        }
        return m_elements;
    }
1182491
public alluxio.grpc.GetUfsInfoPOptions getOptions() {
    return options_ == null ? alluxio.grpc.GetUfsInfoPOptions.getDefaultInstance() : options_;
  }
1063313
public List<Option> getSelectedItems() {
        final List<Option> items = new ArrayList<>(0);
        for (Entry<OptionElement, Option> entry : itemMap.entrySet()) {
            Option opt = entry.getValue();
            if (opt.isSelected())
                items.add(opt);
        }
        return items;
    }
906333
public List<SecurityRoleType<WebAppDescriptor>> getAllSecurityRole()
   {
      List<SecurityRoleType<WebAppDescriptor>> list = new ArrayList<SecurityRoleType<WebAppDescriptor>>();
      List<Node> nodeList = model.get("security-role");
      for(Node node: nodeList)
      {
         SecurityRoleType<WebAppDescriptor>  type = new SecurityRoleTypeImpl<WebAppDescriptor>(this, "security-role", model, node);
         list.add(type);
      }
      return list;
   }
940713
public List<String> getResources() {

        List<String> res = new ArrayList<String>();
        for (I_CmsEditableGroupRow row : m_resourcesGroup.getRows()) {
            res.add(((CmsPathSelectField)row.getComponent()).getValue());
        }
        return res;
    }
526001
public static SelectOptions getViewSelectOptions(CmsObject cms, String value) {

        Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);

        List<String> options = new ArrayList<String>();
        List<String> values = new ArrayList<String>();
        int selectedIndex = 0;

        List<I_CmsWorkplaceAppConfiguration> apps = OpenCms.getWorkplaceAppManager().getDefaultQuickLaunchConfigurations();

        for (I_CmsWorkplaceAppConfiguration app : apps) {
            if (OpenCms.getRoleManager().hasRole(
                cms,
                cms.getRequestContext().getCurrentUser().getName(),
                app.getRequiredRole())) {
                values.add(app.getId());
                options.add(app.getName(locale));
            }
        }

        SelectOptions optionBean = new SelectOptions(options, values, selectedIndex);
        return optionBean;
    }