Package org.apache.directory.server.config.beans

Examples of org.apache.directory.server.config.beans.ConfigBean


     */
    public String[] checkPortsBeforeServerStart( LdapServer server ) throws Exception
    {
        List<String> alreadyInUseProtocolPortsList = new ArrayList<String>();

        ConfigBean configuration = getServerConfiguration( server );

        // LDAP
        if ( isEnableLdap( configuration ) )
        {
            if ( !AvailablePortFinder.available( getLdapPort( configuration ) ) )
View Full Code Here


            {
                return;
            }

            // Reading the configuration of the file
            ConfigBean configBean = LoadConfigurationRunnable.readConfiguration( inputStream );

            // Resetting the configuration back to the editor
            editor.resetConfiguration( configBean );
        }
        catch ( Exception e )
View Full Code Here

                    reportErrorReadingServerConfiguration( view, message );
                    return;
                }

                // Parsing the 'config.ldif' file
                ConfigBean configuration = null;
                try
                {
                    configuration = ApacheDS200LdapServerAdapter.getServerConfiguration( server );
                }
                catch ( Exception e )
View Full Code Here

     * @throws Exception
     * @throws ServerXmlIOException
     */
    private int getTestingPort( LdapServer server ) throws Exception
    {
        ConfigBean configuration = getServerConfiguration( server );

        // LDAP
        if ( isEnableLdap( configuration ) )
        {
            return getLdapPort( configuration );
View Full Code Here

     */
    public String[] checkPortsBeforeServerStart( LdapServer server ) throws Exception
    {
        List<String> alreadyInUseProtocolPortsList = new ArrayList<String>();

        ConfigBean configuration = getServerConfiguration( server );

        // LDAP
        if ( isEnableLdap( configuration ) )
        {
            if ( !AvailablePortFinder.available( getLdapPort( configuration ) ) )
View Full Code Here

     * @return
     *      the configuration bean associated with the editor
     */
    public ConfigBean getConfigBean()
    {
        ConfigBean configBean = getServerConfigurationEditor().getConfigBean();

        if ( configBean == null )
        {
            configBean = new ConfigBean();
            getServerConfigurationEditor().setConfiguration( configBean );
        }

        return configBean;
    }
View Full Code Here

        initConfigPartition( instanceLayout );

        // Read the configuration
        cpReader = new ConfigPartitionReader( configPartition );
       
        ConfigBean configBean = cpReader.readConfig();
       
        DirectoryServiceBean directoryServiceBean = configBean.getDirectoryServiceBean();
       
        // Initialize the DirectoryService now
        DirectoryService directoryService = initDirectoryService( instanceLayout, directoryServiceBean );

        // start the LDAP server
View Full Code Here

     * @throws ConfigurationException
     */
    public ConfigBean readConfig( Dn baseDn, String objectClass ) throws ConfigurationException
    {
        LOG.debug( "Reading configuration for the {} element, from {} ", objectClass, baseDn );
        ConfigBean configBean = new ConfigBean();

        if ( baseDn == null )
        {
            baseDn = configPartition.getSuffix();
        }

        List<AdsBaseBean> beans = read( baseDn, objectClass, SearchScope.ONELEVEL, MANDATORY );

        if ( LOG.isDebugEnabled() )
        {
            if ( ( beans == null ) || ( beans.size() == 0 ) )
            {
                LOG.debug( "No {} element to read", objectClass );
            }
            else
            {
                LOG.debug( beans.get( 0 ).toString() );
            }
        }

        configBean.setDirectoryServiceBeans( beans );

        return configBean;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.config.beans.ConfigBean

Copyright © 2018 www.massapicom. 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.