Package org.apache.directory.studio.ldapbrowser.core.jobs

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeAttributesRunnable


        boolean init = !isChecked();
        for ( IEntry entry : entries )
        {
            entry.setInitOperationalAttributes( init );
        }
        new StudioBrowserJob( new InitializeAttributesRunnable( entries ) ).execute();
    }
View Full Code Here


            boolean oai = entry.isOperationalAttributesInitialized();
            boolean ai = entry.isAttributesInitialized();
            if ( ( !ai || ( !oai && showOperationalAttributes && entry.isConsistent() ) ) && entry.isDirectoryEntry() )
            {
                InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( new IEntry[]
                    { entry }, showOperationalAttributes );
                StudioBrowserJob job = new StudioBrowserJob( runnable );
                job.execute();
                return new Object[0];
            }
View Full Code Here


    private void reloadOperationalAttributes()
    {
        IEntry entry = EntryPropertyPage.getEntry( getElement() );
        InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( new IEntry[]
            { entry }, true );
        RunnableContextRunner.execute( runnable, null, true );

        this.entryUpdated( entry );
    }
View Full Code Here

    private void reloadEntry()
    {
        IEntry entry = EntryPropertyPage.getEntry( getElement() );
        InitializeChildrenRunnable runnable1 = new InitializeChildrenRunnable( new IEntry[]
            { entry } );
        InitializeAttributesRunnable runnable2 = new InitializeAttributesRunnable( new IEntry[]
            { entry }, true );
        RunnableContextRunner.execute( runnable1, null, true );
        RunnableContextRunner.execute( runnable2, null, true );
        this.entryUpdated( entry );
    }
View Full Code Here

            }

            // init attributes
            if ( !templateEntries[0].isAttributesInitialized() )
            {
                InitializeAttributesRunnable initializeAttributesRunnable = new InitializeAttributesRunnable( templateEntries, false );
                RunnableContextRunner.execute( initializeAttributesRunnable, getContainer(), true );
            }

            // clone entry and remove non-modifyable attributes
            try
View Full Code Here

        boolean soa = BrowserCommonActivator.getDefault().getPreferenceStore().getBoolean(
            BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES );

        if ( entries.length > 0 )
        {
            new StudioBrowserJob( new InitializeAttributesRunnable( entries, soa ) ).execute();
            new StudioBrowserJob( new InitializeChildrenRunnable( entries ) ).execute();
        }
        if ( searches.length > 0 )
        {
            new StudioBrowserJob( new SearchRunnable( searches ) ).execute();
        }

        if ( entryInput != null )
        {
            new StudioBrowserJob( new InitializeAttributesRunnable( new IEntry[]
                { entryInput }, soa ) ).execute();
        }
        if ( searchInput != null )
        {
            new StudioBrowserJob( new SearchRunnable( new ISearch[]
View Full Code Here

     */
    public static StudioBrowserJob ensureAttributesInitialized( IEntry entry )
    {
        if ( !entry.isAttributesInitialized() )
        {
            InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( entry );
            StudioBrowserJob job = new StudioBrowserJob( runnable );
            job.execute();
            return job;
        }

View Full Code Here

            && ( this.mode == MODE_NORMAL || this.mode == MODE_INCLUDE_OPERATIONAL_ATTRIBUTES ) )
        {
            IEntry[] uninitializedEntries = ( IEntry[] ) uninitializedEntryList
                .toArray( new IEntry[uninitializedEntryList.size()] );

            InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( uninitializedEntries );
            RunnableContextRunner.execute( runnable, null, true );

            // SyncInitializeEntryJob job = new
            // SyncInitializeEntryJob(uninitializedEntries,
            // InitializeEntryJob.INIT_ATTRIBUTES_MODE, null);
View Full Code Here

        {
            IEntry entry = ( IEntry ) inputElement;

            if ( !entry.isAttributesInitialized() )
            {
                InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( entry );
                StudioBrowserJob job = new StudioBrowserJob( runnable );
                job.execute();
                return new Object[0];
            }
            else
View Full Code Here

        {
            IEntry entry = ( IEntry ) inputElement;

            if ( !entry.isAttributesInitialized() )
            {
                InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( entry );
                StudioBrowserJob job = new StudioBrowserJob( runnable );
                job.execute();
                return new Object[0];
            }
            else
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeAttributesRunnable

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.