Examples of login()


Examples of org.sonar.server.user.UserSession.login()

    FilterAggregationBuilder facetTopAggregation = assigneeFacetBuilder.buildTopFacetAggregation(fieldName, facetName, facetFilter, DEFAULT_ISSUE_FACET_SIZE);
    List<String> assignees = Lists.newArrayList(query.assignees());

    UserSession session = UserSession.get();
    if (session.isLoggedIn()) {
      assignees.add(session.login());
    }
    facetTopAggregation = assigneeFacetBuilder.addSelectedItemsToFacet(fieldName, facetName, facetTopAggregation, assignees.toArray());

    // Add missing facet for unassigned issues
    facetTopAggregation.subAggregation(
View Full Code Here

Examples of org.sonar.wsclient.user.User.login()

    Issues issues = new IssueJsonParser().parseIssues(json);

    assertThat(issues.users()).hasSize(2);

    User morgan = issues.user("morgan");
    assertThat(morgan.login()).isEqualTo("morgan");
    assertThat(morgan.name()).isEqualTo("Morgan");
    assertThat(morgan.active()).isTrue();
    assertThat(morgan.email()).isEqualTo("mor@gan.bzh");

    User arthur = issues.user("arthur");
View Full Code Here

Examples of org.sonatype.security.SecuritySystem.login()

  {
    WebSecurityUtil.setupWebContext(username + "-" + repositoryId + "-" + path);

    SecuritySystem securitySystem = this.lookup(SecuritySystem.class);

    Subject subject = securitySystem.login(new UsernamePasswordToken(username, ""));

    Repository repo = this.getRepositoryRegistry().getRepository(repositoryId);

    ResourceStoreRequest request = new ResourceStoreRequest(path, false);
View Full Code Here

Examples of org.springframework.nanotrader.data.service.TradingService.login()

    when(tradingService.findQuotesBySymbols(anySetOf(String.class))).thenReturn(quotes());
    when(tradingService.findAccount(eq(ACCOUNT_ID))).thenReturn(account());
    when(tradingService.findAccountByProfile(any(Accountprofile.class))).thenReturn(account());
    when(tradingService.findPortfolioSummary(eq(ACCOUNT_ID))).thenReturn(portfolioSummary());
    when(tradingService.findMarketSummary()).thenReturn(marketSummary());
    when(tradingService.login(eq(USER_ID), eq(PASSWORD))).thenReturn(accountProfile());
    when(tradingService.login(eq(BAD_USER_ID), eq(BAD_PASSWORD))).thenReturn(null);
    when(tradingService.findHoldingSummary(eq(ACCOUNT_ID))).thenReturn(holdingSummary());

    doNothing().when(tradingService).logout(any(String.class));
    return tradingService;
View Full Code Here

Examples of org.traccar.web.client.model.UserProperties.login()

        this.userHandler = userHandler;

        UserProperties userProperties = GWT.create(UserProperties.class);

        List<ColumnConfig<User, ?>> columnConfigList = new LinkedList<ColumnConfig<User, ?>>();
        columnConfigList.add(new ColumnConfig<User, String>(userProperties.login(), 0, "Name"));
        columnConfigList.add(new ColumnConfig<User, Boolean>(userProperties.admin(), 0, "Administrator"));
        columnModel = new ColumnModel<User>(columnConfigList);

        uiBinder.createAndBindUi(this);
View Full Code Here

Examples of org.vietspider.browser.HttpSessionUtils.login()

    HttpSessionUtils httpSession = new HttpSessionUtils(webClient, "ERROR");

    StringBuilder builder = new StringBuilder("https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1k96igf4806cy&ltmpl=default&ltmplcache=2");
    builder.append('\n').append("your_username:your_password");

    httpSession.login(builder.toString(), "utf-8", new URL(homepage), homepage);

    httpGet = webClient.createGetMethod("http://mail.google.com/mail/", "http://gmail.com");
    response = webClient.execute(httpHost, httpGet);
    entity = response.getEntity();
View Full Code Here

Examples of org.wicketstuff.security.WaspSession.login()

    authorized.put(SecureComponentHelper.alias(MySecurePanel.class),
      getWaspApplication().getActionFactory().getAction("access"));
    WaspSession session = getSecureSession();
    try
    {
      session.login(authorized);
      return true;
    }
    catch (LoginException e)
    {
      log.error(e.getMessage(), e);
View Full Code Here

Examples of org.wikipedia.Wiki.login()

                        wiki.setThrottle(5000);
                        wiki.setResolveRedirects(true);

                        try {
                            Bukkit.getLogger().info("Logging In");
                            wiki.login(username, password);
                            Bukkit.getLogger().info("Logged in Successfully!");

                            int amount = 0;
                            String failed = "";
View Full Code Here

Examples of org.wikipediacleaner.api.API.login()

      EnumWikipedia wiki = getWikipedia();

      // Login
      if (!reloadOnly) {
        setText(GT._("Login"));
        LoginResult result = api.login(wiki, username, new String(password), login);
        if (login) {
          if ((result == null) || (!result.isLoginSuccessful())) {
            throw new APIException("Login unsuccessful: " + ((result != null) ? result.toString() : ""));
          }
        }
View Full Code Here

Examples of org.wikipediacleaner.api.request.ApiLoginRequest.login()

      boolean login) throws APIException {
    logout(wiki);
    ApiLoginResult result = new ApiXmlLoginResult(wiki, httpClient);
    ApiLoginRequest request = new ApiLoginRequest(wiki, result);
    if (login) {
      return request.login(username, password);
    }
    return LoginResult.createCorrectLogin();
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.