Examples of addValue()


Examples of org.apache.directory.studio.ldapbrowser.core.model.IAttribute.addValue()

                            entry.setHasChildrenHint( false );
                        }

                        IAttribute ocAttribute = entry.getAttribute( attributeDescription );
                        Value ocValue = new Value( ocAttribute, value );
                        ocAttribute.addValue( ocValue );
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.model.impl.Attribute.addValue()

        {
            IAttribute newAttribute = new Attribute( toEntry, attribute.getDescription() );
            for ( IValue value : attribute.getValues() )
            {
                IValue newValue = new Value( newAttribute, value.getRawValue() );
                newAttribute.addValue( newValue );
            }
            toEntry.addAttribute( newAttribute );
        }
        EventRegistry.resumeEventFiringInCurrentThread();
View Full Code Here

Examples of org.apache.directory.studio.test.integration.ui.bots.EntryEditorBot.addValue()

        assertContains( "add: description\ndescription: This is the 1st description.", modificationLogsViewBot
            .getModificationLogsText() );

        // add second value
        entryEditorBot.activate();
        entryEditorBot.addValue( "description" );
        entryEditorBot.typeValueAndFinish( "This is the 2nd description." );
        assertEquals( 10, entryEditorBot.getAttributeValues().size() );
        assertTrue( entryEditorBot.getAttributeValues().contains( "description: This is the 1st description." ) );
        assertTrue( entryEditorBot.getAttributeValues().contains( "description: This is the 2nd description." ) );
        assertContains( "add: description\ndescription: This is the 2nd description.", modificationLogsViewBot
View Full Code Here

Examples of org.apache.giraph.comm.aggregators.GlobalCommValueOutputStream.addValue()

    // Send final aggregated values to master
    GlobalCommValueOutputStream globalOutput =
        new GlobalCommValueOutputStream(false);
    for (Map.Entry<String, Writable> entry : myReducedValues) {
      try {
        int currentSize = globalOutput.addValue(entry.getKey(),
            GlobalCommType.REDUCED_VALUE,
            entry.getValue());
        if (currentSize > maxBytesPerAggregatorRequest) {
          requestProcessor.sendReducedValuesToMaster(
              globalOutput.flush());
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.memory.PropertyBuilder.addValue()

            String mixinName = Util.getMixinName(oakPath);
            if (mixins == null) {
                tree.setProperty(JcrConstants.JCR_MIXINTYPES, Collections.singleton(mixinName), Type.NAMES);
            } else {
                PropertyBuilder pb = PropertyBuilder.copy(Type.NAME, mixins);
                pb.addValue(mixinName);
                tree.setProperty(pb.getPropertyState());
            }
        }
        String aclName = Util.getAclName(oakPath);
        return new NodeUtil(tree).addChild(aclName, NT_REP_ACL).getTree();
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.state.PropertyBuilder.addValue()

            String mixinName = Util.getMixinName(oakPath);
            if (mixins == null) {
                tree.setProperty(JcrConstants.JCR_MIXINTYPES, Collections.singleton(mixinName), Type.NAMES);
            } else {
                PropertyBuilder pb = PropertyUtil.getPropertyBuilder(Type.NAME, mixins);
                pb.addValue(mixinName);
                tree.setProperty(pb.getPropertyState());
            }
        }
        String aclName = Util.getAclName(oakPath);
        return new NodeUtil(tree).addChild(aclName, NT_REP_ACL).getTree();
View Full Code Here

Examples of org.apache.jackrabbit.oak.util.PropertyBuilder.addValue()

            String mixinName = Util.getMixinName(oakPath);
            if (mixins == null) {
                tree.setProperty(JcrConstants.JCR_MIXINTYPES, Collections.singleton(mixinName), Type.NAMES);
            } else {
                PropertyBuilder pb = PropertyBuilder.copy(Type.NAME, mixins);
                pb.addValue(mixinName);
                tree.setProperty(pb.getPropertyState());
            }
        }
        String aclName = Util.getAclName(oakPath);
        return new NodeUtil(tree).addChild(aclName, NT_REP_ACL).getTree();
View Full Code Here

Examples of org.apache.jetspeed.om.common.preference.PreferenceComposite.addValue()

            {
                portlet.addPreference(name, new String[] { value });
            }
            else
            {
                pref.addValue(value);
            }
           
            registry.savePortletDefinition(portlet);
        }
        else if(action.equals("edit_preference"))
View Full Code Here

Examples of org.apache.jetspeed.om.portlet.ContainerRuntimeOption.addValue()

        {
            ContainerRuntimeOption copyRuntimeOption = copy.addContainerRuntimeOption(runtimeOption.getName());
           
            for (String value : runtimeOption.getValues())
            {
                copyRuntimeOption.addValue(value);
            }
        }
       
        copy.getSupportedPublicRenderParameters().addAll(source.getSupportedPublicRenderParameters());
       
View Full Code Here

Examples of org.apache.jetspeed.om.portlet.Preference.addValue()

        Preference pref = prefs.getPortletPreference(prefName);
        if (pref == null)
        {
            pref = prefs.addPreference(prefName);
            pref.setReadOnly(false);
            pref.addValue(keywords);           
        }
        else
        {
            return modifyPref(prefName, keywords, prefs);          
        }       
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.