Package org.lightadmin.api.config.unit

Examples of org.lightadmin.api.config.unit.SidebarsConfigurationUnit


            problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Type %s must have default constructor.", domainType.getSimpleName())));
        }
    }

    void validateSidebars(ConfigurationUnits configurationUnits, ProblemReporter problemReporter) {
        final SidebarsConfigurationUnit sidebarsConfigurationUnit = configurationUnits.getSidebars();
        final List<SidebarMetadata> sidebars = sidebarsConfigurationUnit.getSidebars();

        for (SidebarMetadata sidebar : sidebars) {
            final String jspFilePath = sidebar.getJspFilePath();
            if (!resourceLoader.getResource(jspFilePath).exists()) {
                problemReporter.error(new DomainConfigurationProblem(configurationUnits, SIDEBARS, "Wrong jsp file path defined for sidebar " + jspFilePath));
View Full Code Here


        addAttribute(attributeContext, "menuItems", menuItems(configuration.getManagedDomainTypeConfigurations().values()));
    }

    @Override
    protected void execute(final TilesRequestContext tilesContext, final AttributeContext attributeContext, final DomainTypeAdministrationConfiguration configuration) {
        final SidebarsConfigurationUnit sidebarsConfigurationUnit = configuration.getSidebars();
        final String selectedMenuItemName = configuration.getEntityConfiguration().getPluralName();

        addAttribute(attributeContext, "selectedMenuItemName", selectedMenuItemName);

        addAttribute(attributeContext, "sidebars", sidebarsConfigurationUnit.getSidebars());
    }
View Full Code Here

TOP

Related Classes of org.lightadmin.api.config.unit.SidebarsConfigurationUnit

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.