Examples of enable()


Examples of org.apache.directory.api.ldap.model.schema.registries.Schema.enable()

                    }

                    // If the dependency is disabled, then enable it
                    if ( dependencySchema.isDisabled() )
                    {
                        dependencySchema.enable();

                        if ( !load( registries, dependencySchema ) )
                        {
                            dependencySchema.disable();
View Full Code Here

Examples of org.apache.directory.server.schema.bootstrap.Schema.enable()

            return SCHEMA_UNCHANGED;
        }

        Schema schema = loader.getSchema( schemaName );
        loader.loadWithDependencies( schema, globalRegistries );
        schema.enable();
       
        return SCHEMA_MODIFIED;
    }

View Full Code Here

Examples of org.apache.directory.shared.ldap.model.schema.registries.Schema.enable()

                    }

                    // If the dependency is disabled, then enable it
                    if ( dependencySchema.isDisabled() )
                    {
                        dependencySchema.enable();

                        if ( load( registries, dependencySchema ) == false )
                        {
                            dependencySchema.disable();
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.SchemaManager.enable()

        final SchemaLoader loader = new LdifSchemaLoader(schemaRepository);
        final SchemaManager schemaManager = new DefaultSchemaManager(loader);
        service.setSchemaManager(schemaManager);

        // Enable nis so that posixAccount and posixGroup are available
        schemaManager.enable("nis");
        // We have to load the schema now, otherwise we won't be able
        // to initialize the Partitions, as we won't be able to parse
        // and normalize their suffix DN
        schemaManager.loadAllEnabled();
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.manager.impl.DefaultSchemaManager.enable()

        final SchemaLoader loader = new LdifSchemaLoader(schemaRepository);
        final SchemaManager schemaManager = new DefaultSchemaManager(loader);
        service.setSchemaManager(schemaManager);

        // Enable nis so that posixAccount and posixGroup are available
        schemaManager.enable("nis");
        // We have to load the schema now, otherwise we won't be able
        // to initialize the Partitions, as we won't be able to parse
        // and normalize their suffix DN
        schemaManager.loadAllEnabled();
View Full Code Here

Examples of org.apache.felix.scr.Component.enable()

        TestCase.assertFalse( component.isDefaultEnabled() );

        TestCase.assertEquals( Component.STATE_DISABLED, component.getState() );
        TestCase.assertNull( SimpleComponent.INSTANCE );

        component.enable();
        delay();

        TestCase.assertEquals( Component.STATE_ACTIVE, component.getState() );
        TestCase.assertNotNull( SimpleComponent.INSTANCE );
        TestCase.assertNull( SimpleComponent.INSTANCE.getProperty( PROP_NAME ) );
View Full Code Here

Examples of org.apache.felix.scr.integration.components.EnableComponent.enable()

       
        EnableComponent ec = getServiceFromConfiguration(dto, EnableComponent.class);
       
        TestCase.assertEquals(0, SimpleComponent.INSTANCES.size());

        ec.enable(name);
        delay();
        TestCase.assertEquals(1, SimpleComponent.INSTANCES.size());
        ec.enable(name);
        delay();
        TestCase.assertEquals(1, SimpleComponent.INSTANCES.size());
View Full Code Here

Examples of org.apache.helix.model.IdealState.enable()

        if (currentData == null) {
          throw new HelixException("Cluster: " + clusterName + ", resource: " + resourceName
              + ", ideal-state is null");
        }
        IdealState idealState = new IdealState(currentData);
        idealState.enable(enabled);
        return idealState.getRecord();
      }
    }, AccessOption.PERSISTENT);
  }
View Full Code Here

Examples of org.apache.marmotta.platform.core.api.statistics.StatisticsModule.enable()

    @Path("/{module}/enabled")
    public Response setEnabled(@PathParam("module") String module, @QueryParam("value") boolean enabled) {
        final StatisticsModule mod = statisticsService.getModule(module);
        if (mod != null) {
            if (enabled) {
                mod.enable();
            } else {
                mod.disable();
            }
            return Response.ok().entity(enabled).build();
        }
View Full Code Here

Examples of org.apache.openjpa.datacache.CacheStatisticsSPI.enable()

        return _dcm.listKnownTypes();
    }
    public void collectStatistics(boolean enable) {
        CacheStatisticsSPI stats = (CacheStatisticsSPI) _dc.getStatistics();
        if (enable) {
            stats.enable();
        } else {
            stats.disable();
        }
    }
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.