Gets the popup menu factory for flagging login requests.

@return the popup flag login request menu factory
764852
private PopupMenuItemSiteNodeContextMenuFactory getPopupFlagLoginRequestMenuFactory() {
		PopupMenuItemSiteNodeContextMenuFactory popupFlagLoginRequestMenuFactory = new PopupMenuItemSiteNodeContextMenuFactory(
				Constant.messages.getString("context.flag.popup")) {
			private static final long serialVersionUID = 8927418764L;

			@Override
			public PopupMenuItemContext getContextMenu(Context context, String parentMenu) {
				return new PopupMenuItemContext(context, parentMenu, 
						Constant.messages.getString(labelPopupMenuKey, context.getName())) {

					private static final long serialVersionUID = 1967885623005183801L;
					private ExtensionUserManagement usersExtension;
					private Context uiSharedContext;

					/**
					 * Make sure the user acknowledges the Users corresponding to this context will
					 * be deleted.
					 * 
					 * @return true, if successful
					 */
					private boolean confirmUsersDeletion(Context uiSharedContext) {
						usersExtension = Control.getSingleton().getExtensionLoader().getExtension(ExtensionUserManagement.class);
						if (usersExtension != null) {
							if (usersExtension.getSharedContextUsers(uiSharedContext).size() > 0) {
								int choice = JOptionPane.showConfirmDialog(this, Constant.messages
										.getString("authentication.dialog.confirmChange.label"),
										Constant.messages
												.getString("authentication.dialog.confirmChange.title"),
										JOptionPane.OK_CANCEL_OPTION);
								if (choice == JOptionPane.CANCEL_OPTION) {
									return false;
								}
							}
						}
						return true;
					}

					@Override
					public void performAction(SiteNode sn) {
						// Manually create the UI shared contexts so any modifications are done
						// on an UI shared Context, so changes can be undone by pressing Cancel
						SessionDialog sessionDialog = View.getSingleton().getSessionDialog();
						sessionDialog.recreateUISharedContexts(Model.getSingleton().getSession());
						uiSharedContext = sessionDialog.getUISharedContext(this.getContext().getIndex());

						// Do the work/changes on the UI shared context
						if (isTypeForMethod(this.getContext().getAuthenticationMethod())) {
							LOGGER.info("Selected new login request via PopupMenu. Changing existing " + methodName + " instance for Context "
									+ getContext().getIndex());
							PostBasedAuthenticationMethod method = (PostBasedAuthenticationMethod) uiSharedContext
									.getAuthenticationMethod();

							try {
								method.setLoginRequest(sn);
							} catch (Exception e) {
								LOGGER.error("Failed to set login request: " + e.getMessage(), e);
								return;
							}

							// Show the session dialog without recreating UI Shared contexts
							View.getSingleton()
									.showSessionDialog(
											Model.getSingleton().getSession(),
											ContextAuthenticationPanel
													.buildName(this.getContext().getIndex()), false);
						} else {
							LOGGER.info("Selected new login request via PopupMenu. Creating new " + methodName + " instance for Context "
									+ getContext().getIndex());
							PostBasedAuthenticationMethod method = createAuthenticationMethod(getContext().getIndex());

							try {
								method.setLoginRequest(sn);
							} catch (Exception e) {
								LOGGER.error("Failed to set login request: " + e.getMessage(), e);
								return;
							}
							if (!confirmUsersDeletion(uiSharedContext)) {
								LOGGER.debug("Cancelled change of authentication type.");
								return;
							}
							uiSharedContext.setAuthenticationMethod(method);

							// Show the session dialog without recreating UI Shared contexts
							// NOTE: First init the panels of the dialog so old users data gets
							// loaded and just then delete the users
							// from the UI data model, otherwise the 'real' users from the
							// non-shared context would be loaded
							// and would override any deletions made.
							View.getSingleton().showSessionDialog(Model.getSingleton().getSession(),
									ContextAuthenticationPanel.buildName(this.getContext().getIndex()),
									false, new Runnable() {

										@Override
										public void run() {
											// Removing the users from the 'shared context' (the UI)
											// will cause their removal at
											// save as well
											if (usersExtension != null)
												usersExtension.removeSharedContextUsers(uiSharedContext);
										}
									});
						}
					}
				};
			}

			@Override
			public int getParentMenuIndex() {
				return 3;
			}
		};
		return popupFlagLoginRequestMenuFactory;
	}
722217
private Component createQuickLaunchDropDown() {

        PopupView pv = new PopupView(new PopupView.Content() {

            private static final long serialVersionUID = 1L;

            public String getMinimizedValueAsHTML() {

                return getDropDownButtonHtml(FontOpenCms.APPS);
            }

            public Component getPopupComponent() {

                CmsObject cms = A_CmsUI.getCmsObject();
                Locale locale = UI.getCurrent().getLocale();
                HorizontalLayout layout = new HorizontalLayout();
                layout.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);
                layout.addStyleName(OpenCmsTheme.QUICK_LAUNCH);
                layout.setSpacing(false);
                layout.setMargin(true);
                for (I_CmsWorkplaceAppConfiguration config : OpenCms.getWorkplaceAppManager().getQuickLaunchConfigurations(
                    cms)) {
                    layout.addComponent(CmsDefaultAppButtonProvider.createAppButton(cms, config, locale));
                }
                return layout;
            }
        });
        pv.setDescription(CmsVaadinUtils.getMessageText(Messages.GUI_QUICK_LAUNCH_TITLE_0));
        pv.addStyleName(OpenCmsTheme.NAVIGATOR_DROPDOWN);
        pv.setHideOnMouseOut(false);

        return pv;

    }
459048
public function menuLogin(): ?Menu
    {
        if (Auth::check()) {
            return null;
        }

        // Return to this page after login...
        $url = app(ServerRequestInterface::class)->getUri();

        // ...but switch from the tree-page to the user-page
        $url = str_replace('route=tree-page', 'route=user-page', $url);

        return new Menu(I18N::translate('Sign in'), route('login', ['url' => $url]), 'menu-login', ['rel' => 'nofollow']);
    }
589470
public final String getProxyScript() {
        StringBuilder buf = new StringBuilder("makeStaplerProxy('").append(getURL()).append("','").append(
                WebApp.getCurrent().getCrumbIssuer().issueCrumb()
        ).append("',[");

        boolean first=true;
        for (Method m : getTarget().getClass().getMethods()) {
            Collection<String> names;
            if (m.getName().startsWith("js")) {
                names = Collections.singleton(camelize(m.getName().substring(2)));
            } else {
                JavaScriptMethod a = m.getAnnotation(JavaScriptMethod.class);
                if (a!=null) {
                    names = Arrays.asList(a.name());
                    if (names.isEmpty())
                        names = Collections.singleton(m.getName());
                } else
                    continue;
            }

            for (String n : names) {
                if (first)  first = false;
                else        buf.append(',');
                buf.append('\'').append(n).append('\'');
            }
        }
        buf.append("])");
        
        return buf.toString();
    }
164819
public function getPopupIdentRand()
    {
        if (($sValue = $this->getViewConfigParam('popupidentrand')) === null) {
            $sValue = md5(time());
            $this->setViewConfigParam('popupidentrand', $sValue);
        }

        return $sValue;
    }
755244
public function getFormFactory()
    {
        if ($this->formFactory) {
            return $this->formFactory;
        }

        $this->formFactory = new Factory();
        return $this->formFactory;
    }
280777
private ZapMenuItem getMenuFind() {
        if (menuFind == null) {
            menuFind = new ZapMenuItem("menu.edit.find", getFindDefaultKeyStroke());

            menuFind.addActionListener(new java.awt.event.ActionListener() {
                @Override
                public void actionPerformed(java.awt.event.ActionEvent e) {
                    showFindDialog(getView().getMainFrame(), null);
                }
            });
        }
        return menuFind;
    }
417893
public String[][] getPopupMap()
    {
        String string[][] = {
        {UserInfo.HOME_PAGE_ONLY, "Home page only"},
        {UserInfo.NO, "Never"}, 
        {UserInfo.YES, "Always"}
        };
        return string;
    }
239892
public Menu get() {
        String url = WxEndpoint.get("url.menu.get");
        String content = wxClient.get(url);
        logger.debug("get default menu: {}", content);
        MenuWrapper menuWrapper = JsonMapper.nonEmptyMapper().fromJson(content, MenuWrapper.class);
        return menuWrapper.getMenu();
    }
773936
public SSLSocketFactory getSSLSockectFactory() {

    SSLContext context = null;

    try {

      context = SSLContext.getInstance("TLS");

    } catch (NoSuchAlgorithmException e) {

      throw new VOMSError(e.getMessage(), e);
    }

    KeyManager[] keyManagers = new KeyManager[] { credential.getKeyManager() };

    X509TrustManager trustManager = SocketFactoryCreator
      .getSSLTrustManager(validator);

    TrustManager[] trustManagers = new TrustManager[] { trustManager };

    SecureRandom secureRandom = null;

    /* http://bugs.sun.com/view_bug.do?bug_id=6202721 */
    /*
     * Use new SecureRandom instead of SecureRandom.getInstance("SHA1PRNG") to
     * avoid unnecessary blocking
     */
    secureRandom = new SecureRandom();

    try {

      context.init(keyManagers, trustManagers, secureRandom);

    } catch (KeyManagementException e) {

      throw new VOMSError(e.getMessage(), e);
    }

    return context.getSocketFactory();
  }
583517
public static DesignContextMenu create() {
        return PageUtil.createPage(DesignConstants.RESOURCE_PREFIX + "designContextMenu.fsp", ExecutionContext.getPage())
                .get(0).getAttribute("controller", DesignContextMenu.class);
    }
481671
public LoginConfigType<WebAppType<T>> getOrCreateLoginConfig()
   {
      List<Node> nodeList = childNode.get("login-config");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new LoginConfigTypeImpl<WebAppType<T>>(this, "login-config", childNode, nodeList.get(0));
      }
      return createLoginConfig();
   }
661104
public String[][] getPopupMap()
    {
        String[][] string = {
            {DBConstants.BLANK, DBConstants.BLANK},
            {MessageConstants.LOCAL_QUEUE, MessageConstants.LOCAL_QUEUE},
            {MessageConstants.INTRANET_QUEUE, MessageConstants.INTRANET_QUEUE},
            {MessageConstants.INTERNET_QUEUE, MessageConstants.INTERNET_QUEUE},
        };
        return string;
    }
1102165
public alluxio.grpc.GetUfsInfoPOptionsOrBuilder getOptionsOrBuilder() {
    return options_ == null ? alluxio.grpc.GetUfsInfoPOptions.getDefaultInstance() : options_;
  }
399131
private PopupFindMenu getPopupMenuFind() {
        if (popupFindMenu== null) {
            popupFindMenu = new PopupFindMenu();
            popupFindMenu.setText(Constant.messages.getString("edit.find.popup"));	// ZAP: i18n
            popupFindMenu.addActionListener(new java.awt.event.ActionListener() {
                @Override
                public void actionPerformed(java.awt.event.ActionEvent e) {
                    JTextComponent component = popupFindMenu.getLastInvoker();
                    Window window = getWindowAncestor(component);
                    if (window != null) {
                        showFindDialog(window, component);
                    }
                }
            });
        }
        return popupFindMenu;
    }
551315
public String getWebUrl() {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getWebUrl()");
		}
		
		final WebView webView = waiter.waitForAndGetView(0, WebView.class);

		if(webView == null)
			Assert.fail("WebView is not found!");

		instrumentation.runOnMainSync(new Runnable() {
			public void run() {
				webUrl = webView.getUrl();
			}
		});
		return webUrl;
	}
947203
def getFactory(self):
        
        checkers = [self.loginSystem, AllowAnonymousAccess()]
        guardedRoot = PersistentSessionWrapper(
            self.store,
            Portal(self.loginSystem, checkers),
            domains=[self.hostname])
        unguardedRoot = UnguardedWrapper(self.store, guardedRoot)
        securingRoot = SecuringWrapper(self, unguardedRoot)
        logPath = None
        if self.httpLog is not None:
            logPath = self.httpLog.path
        return AxiomSite(self.store, securingRoot, logPath=logPath)