private synchronized void initExplorerTypeSettings() {

        Map<String, CmsExplorerTypeSettings> explorerTypeSettingsMap = new HashMap<String, CmsExplorerTypeSettings>();
        List<CmsExplorerTypeSettings> explorerTypeSettings = new ArrayList<CmsExplorerTypeSettings>();

        if (m_defaultAccess.getAccessControlList() == null) {
            try {
                // initialize the default access control configuration
                m_defaultAccess.createAccessControlList(CmsExplorerTypeAccess.PRINCIPAL_DEFAULT);
            } catch (CmsException e) {
                if (CmsLog.INIT.isInfoEnabled()) {
                    CmsLog.INIT.info(
                        Messages.get().getBundle().key(
                            Messages.INIT_ADD_TYPE_SETTING_FAILED_1,
                            CmsExplorerTypeAccess.PRINCIPAL_DEFAULT),
                        e);
                }
            }
        }

        explorerTypeSettings.addAll(m_explorerTypeSettingsFromXml);
        explorerTypeSettings.addAll(m_explorerTypeSettingsFromModules);

        for (int i = 0; i < explorerTypeSettings.size(); i++) {
            CmsExplorerTypeSettings settings = explorerTypeSettings.get(i);
            // put the settings in the lookup map
            explorerTypeSettingsMap.put(settings.getName(), settings);
            if (getDefaultAccess() == settings.getAccess()) {
                continue;
            }
            try {
                // initialize the access control configuration of the explorer type
                settings.getAccess().createAccessControlList(settings.getName());
            } catch (CmsException e) {
                if (CmsLog.INIT.isInfoEnabled()) {
                    CmsLog.INIT.info(
                        Messages.get().getBundle().key(Messages.INIT_ADD_TYPE_SETTING_FAILED_1, settings.getName()),
                        e);
                }
            }
        }
        // sort the explorer type settings
        Collections.sort(explorerTypeSettings);
        // make the settings unmodifiable and store them in the global variables
        m_explorerTypeSettings = Collections.unmodifiableList(explorerTypeSettings);
        m_explorerTypeSettingsMap = Collections.unmodifiableMap(explorerTypeSettingsMap);

        m_explorerTypeViews = Maps.newHashMap();
        Set<String> explorerTypeViews = Sets.newHashSet();
        for (CmsExplorerTypeSettings explorerType : getExplorerTypeSettings()) {
            if (explorerType.isView()) {
                explorerTypeViews.add(explorerType.getName());
            }
        }

        for (String typeName : explorerTypeViews) {
            CmsExplorerTypeSettings explorerType = OpenCms.getWorkplaceManager().getExplorerTypeSetting(typeName);
            CmsElementView elemView = new CmsElementView(explorerType);
            m_explorerTypeViews.put(elemView.getId(), elemView);
        }

    }
private synchronized void initExplorerTypeSettings ( ) { Map < String , CmsExplorerTypeSettings > explorerTypeSettingsMap = new HashMap < String , CmsExplorerTypeSettings > ( ) ; List < CmsExplorerTypeSettings > explorerTypeSettings = new ArrayList < CmsExplorerTypeSettings > ( ) ; if ( m_defaultAccess . getAccessControlList ( ) == null ) { try { m_defaultAccess . createAccessControlList ( CmsExplorerTypeAccess . PRINCIPAL_DEFAULT ) ; } catch ( CmsException e ) { if ( CmsLog . INIT . isInfoEnabled ( ) ) { CmsLog . INIT . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . INIT_ADD_TYPE_SETTING_FAILED_1 , CmsExplorerTypeAccess . PRINCIPAL_DEFAULT ) , e ) ; } } } explorerTypeSettings . addAll ( m_explorerTypeSettingsFromXml ) ; explorerTypeSettings . addAll ( m_explorerTypeSettingsFromModules ) ; for ( int i = 0 ; i < explorerTypeSettings . size ( ) ; i ++ ) { CmsExplorerTypeSettings settings = explorerTypeSettings . get ( i ) ; explorerTypeSettingsMap . put ( settings . getName ( ) , settings ) ; if ( getDefaultAccess ( ) == settings . getAccess ( ) ) { continue ; } try { settings . getAccess ( ) . createAccessControlList ( settings . getName ( ) ) ; } catch ( CmsException e ) { if ( CmsLog . INIT . isInfoEnabled ( ) ) { CmsLog . INIT . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . INIT_ADD_TYPE_SETTING_FAILED_1 , settings . getName ( ) ) , e ) ; } } } Collections . sort ( explorerTypeSettings ) ; m_explorerTypeSettings = Collections . unmodifiableList ( explorerTypeSettings ) ; m_explorerTypeSettingsMap = Collections . unmodifiableMap ( explorerTypeSettingsMap ) ; m_explorerTypeViews = Maps . newHashMap ( ) ; Set < String > explorerTypeViews = Sets . newHashSet ( ) ; for ( CmsExplorerTypeSettings explorerType : getExplorerTypeSettings ( ) ) { if ( explorerType . isView ( ) ) { explorerTypeViews . add ( explorerType . getName ( ) ) ; } } for ( String typeName : explorerTypeViews ) { CmsExplorerTypeSettings explorerType = OpenCms . getWorkplaceManager ( ) . getExplorerTypeSetting ( typeName ) ; CmsElementView elemView = new CmsElementView ( explorerType ) ; m_explorerTypeViews . put ( elemView . getId ( ) , elemView ) ; } }
Initializes the configured explorer type settings.<p>