Examples of containsKey()


Examples of org.apache.sling.auth.core.spi.AuthenticationInfo.containsKey()

    @Test
    public void testSetPassword() {
        final char[] pwd = new char[6];
        final AuthenticationInfo info = new AuthenticationInfo("test", "name");

        assertFalse(info.containsKey(ResourceResolverFactory.PASSWORD));

        info.setPassword(pwd);
        assertSame(pwd, info.get(ResourceResolverFactory.PASSWORD));

        info.setPassword(null);
View Full Code Here

Examples of org.apache.sling.event.EventPropertiesMap.containsKey()

                    final Map<String, Object> props =  new EventPropertiesMap(event);
                    props.put(JobImpl.PROPERTY_BRIDGED_EVENT, Boolean.TRUE);

                    // check for deprecated/unsupported properties
                    for(final String ignoredProp : IGNORED_CONFIG_PROPERTIES) {
                        if ( props.containsKey(ignoredProp)) {
                            Utility.logDeprecated(logger, "Job " + EventUtil.toString(event) + " is using deprecated and ignored property " + ignoredProp);
                            props.remove(ignoredProp);
                        }
                    }
                    if ( jobName != null ) {
View Full Code Here

Examples of org.apache.sling.jcr.resource.JcrPropertyMap.containsKey()

        search(vm.values().iterator(), VALUE2);
    }

    public void testContainsKeyEmpty() {
        final JcrPropertyMap map = createPropertyMap(rootNode);
        assertFalse(map.containsKey(""));
        assertNull(map.get(""));
    }

    public void testNamesOld() throws Exception {
        this.rootNode.getSession().refresh(false);
View Full Code Here

Examples of org.apache.sling.resourceresolver.impl.tree.ResourceProviderEntry.containsKey()

        // collect providers along the ancestor path segements
        final String[] elements = ResourceProviderEntry.split(path);
        ResourceProviderEntry base = rootProviderEntry;
        for (final String element : elements) {
            if (base.containsKey(element)) {
                base = base.get(element);
                if (log.isDebugEnabled()) {
                    log.debug("Loading from {}  {} ", element,
                            base.getResourceProviders().length);
                }
View Full Code Here

Examples of org.apache.solr.common.SolrDocument.containsKey()

          LOG.warn("Error reading a field from document : " + solrDoc, e);
          // if it happens log it and continue
          continue;
        }
      }
      if (sf != null && sf.multiValued() && !solrDoc.containsKey(fieldName)) {
        ArrayList l = new ArrayList();
        l.add(val);
        solrDoc.addField(fieldName, l);
      } else {
        solrDoc.addField(fieldName, val);
View Full Code Here

Examples of org.apache.solr.common.SolrInputDocument.containsKey()

        Result result = encodeRecord(record);
       
        mapper.map(result, solrUpdateWriter);
        Assert.assertFalse(solrUpdateWriter.documents.isEmpty());
        SolrInputDocument doc = solrUpdateWriter.documents.get(0);
        Assert.assertTrue(doc.containsKey("a_string"));
        Assert.assertEquals("myvalue", doc.get("a_string").getValue());
    }


    public Result encodeRecord(Record record) throws InterruptedException, RepositoryException {
View Full Code Here

Examples of org.apache.tools.ant.types.resources.Union.containsKey()

                        return;
                    }
                }

                FileNameMapper useMapper = null;
                if (!outputResources.containsKey(outPort)) {
                    if (mapper != null) {
                        useMapper = mapper;
                    } else {
                        useMapper = new ExtensionMapper();
                    }
View Full Code Here

Examples of org.apache.turbine.util.ParameterParser.containsKey()

    {
        this.data = data;
        valid_flag = true;
       
        ParameterParser pp = data.getParameters();
        if ( pp.containsKey(getKey()) && pp.getString(getKey()) != null )
        {
            set_flag = true;
            if (validate(pp))
            {
                // iv.reconcileNotValid(pp);
View Full Code Here

Examples of org.apache.turbine.util.parser.ParameterParser.containsKey()

        if (urlToFilter.getTaskOwner() != null){
            context.put("taskOwner", urlToFilter.getTaskOwner());
        }
       
        // restrict the displayed tasks:
        if (pp.containsKey("systemfilter_displayedtasks")){
            SWAMPHashSet displayedTasks = new SWAMPHashSet();
            displayedTasks.add(pp.get("systemfilter_displayedtasks"), ",");
            context.put("displaytasks", displayedTasks);
        }
       
View Full Code Here

Examples of org.apache.uima.aae.monitor.statistics.DelegateStats.containsKey()

        entry.setStat(stats);
        // Add entry for self (this aggregate). MessageContext.getEndpointName()
        // returns the name of the queue receiving the message.
        stats.put(getController().getServiceEndpointName(), new TimerStats());
      } else {
        if (!stats.containsKey(getController().getServiceEndpointName())) {
          stats.put(getController().getServiceEndpointName(), new DelegateStats());
        }
      }
    } else {
      cacheStats(casReferenceId, timeWaitingForCAS, timeToDeserializeCAS);
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.