Examples of removeProperty()


Examples of org.jahia.services.usermanager.jcr.JCRUser.removeProperty()

    protected abstract boolean removePropertyExternal(String key);

    protected boolean removePropertyInternal(String key) {
        JCRUser jcrUser = lookupExternalUser();
        return jcrUser != null && jcrUser.removeProperty(key);
    }

    public boolean setProperty(String key, String value) {
        if (null == key) {
            return false;
View Full Code Here

Examples of org.jboss.dashboard.commons.filter.FilterByCriteria.removeProperty()

        // Create a target filter containing only those properties belonging to this dataset.
        FilterByCriteria targetFilter = filter.cloneFilter();
        String[] remainingPropIds = filter.getPropertyIds();
        for (String propId : remainingPropIds) {
            if (getPropertyById(propId) == null) {
                targetFilter.removeProperty(propId);
            }
        }

        // Go ahead only if the target filter contains at least one property.
        if (targetFilter.getPropertyIds().length == 0) {
View Full Code Here

Examples of org.jboss.dashboard.provider.DataFilter.removeProperty()

            sqlDataSet.load();

            // Apply the in-memory filter in order to cover all the filter properties non specified as SQL conditions.
            DataFilter _remainingFilter = (DataFilter) filter.cloneFilter();
            List<String> propIds = currentStatement.getFilterPropertyIds();
            for (String propId : propIds) _remainingFilter.removeProperty(propId);
            DataSet result = sqlDataSet._filterInMemory(_remainingFilter);

            // If the in-memory filter applies then return it.
            if (result != null) return result;
            return sqlDataSet;
View Full Code Here

Examples of org.jboss.forge.addon.gradle.projects.model.GradleModelBuilder.removeProperty()

   {
      String property = null;

      GradleModelBuilder model = GradleModelBuilder.create(getGradleFacet().getModel());
      property = model.getProperties().get(name);
      model.removeProperty(name);
      getGradleFacet().setModel(model);

      return property;
   }
View Full Code Here

Examples of org.jboss.forge.project.facets.DependencyFacet.removeProperty()

            final PipeOut out)
   {
      DependencyFacet deps = project.getFacet(DependencyFacet.class);
      if (deps.getProperties().containsKey(name))
      {
         String value = deps.removeProperty(name);
         out.println("Removed property [" + name + "=" + value + "]");
      }
      else
      {
         out.println("No such property [" + name + "]");
View Full Code Here

Examples of org.jconfig.Configuration.removeProperty()

        }
    }
   
    public void removeProperty(String name, String category) {
        Configuration config = ConfigurationManager.getConfiguration(configName);
        config.removeProperty(name, category);
    }
   
    public void saveConfiguration() throws Exception {
        ConfigurationManager.getInstance().save(configName);
    }
View Full Code Here

Examples of org.modeshape.jcr.cache.MutableCachedNode.removeProperty()

        MutableCachedNode mutable = mutable();
        mutable.setProperty(cache, session.propertyFactory().create(JcrLexicon.PRIMARY_TYPE, newPrimaryTypeName));

        if (wasReferenceable && !isReferenceable()) {
            // Need to remove the 'jcr:uuid' reference ...
            mutable.removeProperty(cache, JcrLexicon.UUID);
        } else if (isReferenceable() && !mutable.hasProperty(JcrLexicon.UUID, cache)) {
            mutable.setProperty(cache, session.propertyFactory().create(JcrLexicon.UUID, getIdentifier()));
        }

        // And auto-create any properties that are defined by the new primary type ...
View Full Code Here

Examples of org.mule.DefaultMuleMessage.removeProperty()

        filter.setMuleContext(muleContext);

        MuleMessage message = new DefaultMuleMessage("blah", muleContext);

        assertTrue(!filter.accept(message));
        message.removeProperty("foo");
        assertTrue(!filter.accept(message));
        message.setOutboundProperty("foo", "car");
        assertTrue(filter.accept(message));
    }
   
View Full Code Here

Examples of org.mule.MessagePropertiesContext.removeProperty()

        //Note that we cannot write to the Inbound scope, its read only
        mpc.setProperty("Prop", "invocation", PropertyScope.INVOCATION);
        mpc.setProperty("Prop", "outbound", PropertyScope.OUTBOUND);

        assertEquals("outbound", mpc.getProperty("Prop", PropertyScope.OUTBOUND));
        mpc.removeProperty("Prop", PropertyScope.OUTBOUND);

        assertEquals("invocation", mpc.getProperty("Prop", PropertyScope.INVOCATION));
        mpc.removeProperty("Prop", PropertyScope.INVOCATION);

        assertEquals("session", mpc.getProperty("Prop", PropertyScope.SESSION));
View Full Code Here

Examples of org.mule.api.MuleMessage.removeProperty()

        filter.setMuleContext(muleContext);

        MuleMessage message = new DefaultMuleMessage("blah", muleContext);

        assertTrue(!filter.accept(message));
        message.removeProperty("foo");
        assertTrue(!filter.accept(message));
        message.setOutboundProperty("foo", "car");
        assertTrue(filter.accept(message));
    }
   
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.