Get ComboBox for selecting roles.<p>

@param ou name
@return ComboBox
514685
protected ComboBox<CmsRole> getRoleComboBox(String ou) {

        ComboBox<CmsRole> box = new ComboBox<CmsRole>();
        CmsUserEditDialog.iniRole(A_CmsUI.getCmsObject(), ou, box, null);
        box.setSelectedItem(CmsRole.EDITOR.forOrgUnit(ou));

        return box;
    }
74849
public CmsRole forOrgUnit(String ouFqn) {

        CmsRole newRole = new CmsRole(this);
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(ouFqn)) {
            if (!ouFqn.endsWith(CmsOrganizationalUnit.SEPARATOR)) {
                ouFqn += CmsOrganizationalUnit.SEPARATOR;
            }
        }
        newRole.m_ouFqn = ouFqn;
        return newRole;
    }
690922
public CmsUUID getElementView() {

        String elementViewString = getString(CmsEditorConstants.ATTR_ELEMENT_VIEW);
        if (elementViewString == null) {
            return null;
        }
        return new CmsUUID(elementViewString);
    }
434763
protected List<CmsSelectWidgetOption> getComboClasses() {

        List<CmsSelectWidgetOption> result = new ArrayList<CmsSelectWidgetOption>(16);
        result.add(
            new CmsSelectWidgetOption(
                CmsInternalRelationsValidationJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_INTERNALVALIDATION_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsPublishJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_PUBLISH_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsStaticExportJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_STATICEXPORT_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsExternalLinksValidator.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_POINTERVALIDATION_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsMemoryMonitor.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_MEMORYMONITOR_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsSearchManager.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_SEARCHINDEX_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsContentNotificationJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_CONTENTNOTIFICATION_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsCreateImageSizeJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_IMAGESIZE_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsImageCacheCleanupJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_IMAGE_CACHECLEAN_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsHistoryClearJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_CLEARHISTORY_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsDeleteExpiredResourcesJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_DELETEEXPIRED_0)));
        result.add(
            new CmsSelectWidgetOption(
                CmsUnsubscribeDeletedResourcesJob.class.getName(),
                false,
                null,
                key(Messages.GUI_EDITOR_CRONCLASS_UNSUBSCRIBEDELETED_0)));
        return result;
    }
1247012
public MenuItemSelectable getSelectedMenuItem() {
		List<MenuItemSelectable> selectedItems = getSelectedMenuItems();
		if (selectedItems.isEmpty()) {
			return null;
		} else {
			return selectedItems.get(0);
		}
	}
618568
private String getOuFromItem(Object itemId, I_CmsOuTreeType type) {

        if (type.equals(CmsOuTreeType.OU)) {
            return ((CmsOrganizationalUnit)itemId).getName();
        }
        Object o = m_treeContainer.getParent(itemId);
        while (!(o instanceof CmsOrganizationalUnit)) {
            o = m_treeContainer.getParent(o);
        }
        return ((CmsOrganizationalUnit)o).getName();
    }
483098
public Criteria gt(Object o) {
        this.criteriaType = RelationalOperator.GT;
        this.right = ValueNode.toValueNode(o);
        return this;
    }
873135
private Principal selectedPrincipal() {
        if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_users())) {
            return userColumn.getSelectedItem();
        } else if (browseByColumn.getSelectedItem().getTitle().equals(Console.CONSTANTS.common_label_groups())) {
            return groupColumn.getSelectedItem();
        }
        return null;
    }
431522
private JButton getOkButton()
    {
        if (okButton == null)
        {
            okButton = new JButton();
            okButton.setText("Go!");
            okButton.addActionListener(new java.awt.event.ActionListener()
            {
                public void actionPerformed(java.awt.event.ActionEvent e)
                {
                    displayURL(urlText.getText());
                }
            });
        }
        return okButton;
    }
390199
public String getPreselectOption(String siteRoot, List<CmsSiteSelectorOption> options) {

        if ((siteRoot == null) || options.isEmpty()) {
            return null;
        }
        for (CmsSiteSelectorOption option : options) {
            if (CmsStringUtil.joinPaths(siteRoot, "/").equals(CmsStringUtil.joinPaths(option.getSiteRoot(), "/"))) {
                return option.getSiteRoot();
            }
        }
        return options.get(0).getSiteRoot();
    }
1138761
protected ContextSelectComboBox getContextSelectComboBox() {
		if (contextSelectBox == null) {
			contextSelectBox = new ContextSelectComboBox();
			contextSelectBox.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent e) {
					contextSelected((Context) contextSelectBox.getSelectedItem());
				}
			});
		}
		return contextSelectBox;
	}
408677
protected CmsToggleButton createOpener() {

        final CmsToggleButton opener = new CmsToggleButton();
        opener.setButtonStyle(ButtonStyle.FONT_ICON, null);
        opener.setSize(Size.small);
        opener.addStyleName(CSS.listTreeItemOpener());
        opener.setUpFace("", I_CmsButton.TREE_PLUS);
        opener.setDownFace("", I_CmsButton.TREE_MINUS);
        opener.addClickHandler(new ClickHandler() {

            /**
             * @see com.google.gwt.event.dom.client.ClickHandler#onClick(com.google.gwt.event.dom.client.ClickEvent)
             */
            public void onClick(ClickEvent e) {

                setOpen(opener.isDown());
                e.stopPropagation();
                e.preventDefault();
            }
        });
        return opener;
    }
180221
protected JComboBox<AuthenticationMethodType> getAuthenticationMethodsComboBox() {
		if (authenticationMethodsComboBox == null) {
			Vector<AuthenticationMethodType> methods = new Vector<>(extension.getAuthenticationMethodTypes());
			authenticationMethodsComboBox = new JComboBox<>(methods);
			authenticationMethodsComboBox.setSelectedItem(null);

			// Prepare the listener for the change of selection
			authenticationMethodsComboBox.addItemListener(new ItemListener() {

				@Override
				public void itemStateChanged(ItemEvent e) {
					if (e.getStateChange() == ItemEvent.SELECTED && !e.getItem().equals(shownMethodType)) {
						log.debug("Selected new Authentication type: " + e.getItem());

						AuthenticationMethodType type = ((AuthenticationMethodType) e.getItem());
						if (shownMethodType == null || type.getAuthenticationCredentialsType() != shownMethodType
								.getAuthenticationCredentialsType()) {

							if (needsConfirm && !confirmAndResetUsersCredentials(type)) {
								log.debug("Cancelled change of authentication type.");

								authenticationMethodsComboBox.setSelectedItem(shownMethodType);
								return;
							}
						}
						resetLoggedInOutIndicators();

						// If no authentication method was previously selected or it's a different
						// class, create a new authentication method object
						if (selectedAuthenticationMethod == null
								|| !type.isTypeForMethod(selectedAuthenticationMethod)) {
							selectedAuthenticationMethod = type.createAuthenticationMethod(getContextIndex());
						}

						// Show the configuration panel
						changeMethodConfigPanel(type);
						if (type.hasOptionsPanel()) {
							shownConfigPanel.bindMethod(selectedAuthenticationMethod, getAuthenticationIndicatorsPanel());
						}
					}
				}
			});
		}
		return authenticationMethodsComboBox;
	}
1113364
protected CmsObject getCms() {

        if (m_cms == null) {
            try {
                m_cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
                m_cms.getRequestContext().setSiteRoot("");
            } catch (CmsException e) {
                return null;
            }
        }
        return m_cms;
    }
858226
@Override
	public String[] getUsersInRole(String role) {
		if (role_list.containsKey(role)) {
			return role_list.get(role).toArray(new String[0]);
		} else {
			return new String[0];
		}
	}
799417
public com.google.api.ads.admanager.axis.v201811.CmsMetadataCriteriaComparisonOperator getOperator() {
        return operator;
    }
1105947
private ComboBox prepareComboBox(IndexedContainer container, String captionKey) {

        ComboBox result = new ComboBox(CmsVaadinUtils.getWpMessagesForCurrentLocale().key(captionKey), container);
        result.setTextInputAllowed(true);
        result.setNullSelectionAllowed(false);
        result.setWidth("100%");
        result.setInputPrompt(
            Messages.get().getBundle(UI.getCurrent().getLocale()).key(Messages.GUI_EXPLORER_CLICK_TO_EDIT_0));
        result.setItemCaptionPropertyId(CAPTION_PROPERTY);
        result.setFilteringMode(FilteringMode.CONTAINS);
        return result;
    }