Examples of containsKey()


Examples of com.esotericsoftware.kryo.util.ObjectMap.containsKey()

  }

  public void write (Kryo kryo, Output output, T object) {
    CachedField[] fields = getFields();
    ObjectMap context = kryo.getGraphContext();
    if (!context.containsKey(this)) {
      context.put(this, null);
      if (TRACE) trace("kryo", "Write " + fields.length + " field names.");
      output.writeVarInt(fields.length, true);
      for (int i = 0, n = fields.length; i < n; i++)
        output.writeString(fields[i].field.getName());
View Full Code Here

Examples of com.esri.gpt.framework.collection.StringAttributeMap.containsKey()

  RequestContext rc = getContextBroker().extractRequestContext();
  UsernamePasswordCredentials upc = rc.getIdentityConfiguration().getSimpleConfiguration().getServiceAccountCredentials();
  if(upc !=null) return _manageUser;
 
  StringAttributeMap sNavParameters = rc.getCatalogConfiguration().getParameters();
  if(sNavParameters.containsKey("ldap.identity.manage.userRoleEnabled")){ 
    String hasManageUser = Val.chkStr(sNavParameters.getValue("ldap.identity.manage.userRoleEnabled"));
    _manageUser = Boolean.valueOf(hasManageUser);
  }
  return _manageUser;
}
View Full Code Here

Examples of com.esri.gpt.framework.security.principal.Groups.containsKey()

  getQueryFunctions().readUserGroups(dirContext,user);
  Groups userGroups = user.getGroups();
  Roles configuredRoles = getConfiguration().getIdentityConfiguration().getConfiguredRoles();
  RoleSet authenticatedRoles = user.getAuthenticationStatus().getAuthenticatedRoles();
  for (Role role: configuredRoles.values()) {
    if (userGroups.containsKey(role.getDistinguishedName())) {
      authenticatedRoles.addAll(role.getFullRoleSet());
    }
  }
  user.getAuthenticationStatus().setWasAuthenticated(true);
 
View Full Code Here

Examples of com.esri.gpt.framework.security.principal.UserAttributeMap.containsKey()

            String sLdapKey = attr.getID();
            Object oVal = attr.get();
                       
            // set the corresponding application user attribute
            String sAppKey = Val.chkStr(nameMap.findApplicationName(sLdapKey));
            if ((sAppKey.length() > 0) && configured.containsKey(sAppKey)) {
              if (oVal instanceof String) {
                userProf.set(sAppKey,(String)oVal);
              } else if (oVal == null) {
                userProf.set(sAppKey,"");
              }
View Full Code Here

Examples of com.esri.gpt.framework.security.principal.Users.containsKey()

    User user = context.getUser();
    if (sSelectedKey.equals(user.getKey())) {
      return new Publisher(context);
    } else {
      Users users = Publisher.buildSelectablePublishers(context,forManagement);
      if (users.containsKey(sSelectedKey)) {
        return new Publisher(context,sSelectedKey);
      } else {
        throw new NotAuthorizedException("Not authorized.");
      }
    }
View Full Code Here

Examples of com.eviware.soapui.support.types.StringToObjectMap.containsKey()

          // properties.put( name, testRunContext.getProperty( name ));

          result.startTimer();
          StringToObjectMap properties = new StringToObjectMap();

          if( isCopyLoadTestProperties() && properties.containsKey( TestRunContext.LOAD_TEST_CONTEXT ) )
          {
            properties
                .put( TestRunContext.THREAD_INDEX, testRunContext.getProperty( TestRunContext.THREAD_INDEX ) );
            properties.put( TestRunContext.TOTAL_RUN_COUNT,
                testRunContext.getProperty( TestRunContext.TOTAL_RUN_COUNT ) );
View Full Code Here

Examples of com.eviware.soapui.support.types.StringToStringMap.containsKey()

          {
            XmlError xmlError = ( XmlError )error;
            String sourceName = xmlError.getSourceName();
            String message = xmlError.getMessage();

            if( !doubles.containsKey( message ) || !doubles.get( message ).equalsIgnoreCase( sourceName ) )
            {
              if( appended )
                result.append( "<hr>" );

              result.append( "<b>Source:</b> " ).append( sourceName ).append( "<br>" );
View Full Code Here

Examples of com.eviware.soapui.support.types.StringToStringsMap.containsKey()

        boolean replaceHeaders = isReplaceHeaders();

        for (String name : headersToAdd.keySet()) {
            // remove existing if replace is enabled
            if (replaceHeaders && headers.containsKey(name))
                headers.get(name).clear();

            // add header values
            for (String value : headersToAdd.get(name)) {
                headers.add(name, PropertyExpander.expandProperties(context, value));
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.http.HttpFields.containsKey()

        }

        // If we are HTTP 1.1, add the Host header
        if (version.getVersion() > 10)
        {
            if (!headers.containsKey(HttpHeader.HOST.asString()))
                headers.put(getHttpDestination().getHostField());
        }

        if (request.getAgent() == null)
            headers.put(getHttpClient().getUserAgentField());
View Full Code Here

Examples of com.google.api.client.http.HttpHeaders.containsKey()

      final HttpResponse response = request.execute();

      final HttpHeaders headers = response.getHeaders();
      assertThat(headers.getContentType().contains("application/json")).isTrue();
      assertThat(headers.containsKey(StubResponse.STUBBY_RESOURCE_ID_HEADER)).isTrue();
      final List<String> headerValues = (List<String>) headers.get(StubResponse.STUBBY_RESOURCE_ID_HEADER);
      assertThat(headerValues.get(0)).isEqualTo("1");
   }

   @Test
View Full Code Here
TOP
Copyright © 2015 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.