Package org.lightadmin.core.config.bootstrap.parsing

Examples of org.lightadmin.core.config.bootstrap.parsing.DomainConfigurationProblem


        this.mappingContext = mappingContext;
        this.resourceLoader = resourceLoader;
    }

    public DomainConfigurationProblem createDomainConfigurationProblem(String message) {
        return new DomainConfigurationProblem(configurationUnits, message);
    }
View Full Code Here


    public DomainConfigurationProblem createDomainConfigurationProblem(String message) {
        return new DomainConfigurationProblem(configurationUnits, message);
    }

    public DomainConfigurationProblem createDomainUnitConfigurationProblem(String message) {
        return new DomainConfigurationProblem(configurationUnits, configurationUnitType, message);
    }
View Full Code Here

    void validateDomainType(final ConfigurationUnits configurationUnits, final ProblemReporter problemReporter) {
        final Class<?> domainType = configurationUnits.getDomainType();

        if (notPersistentEntityType(domainType)) {
            problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Non-persistent type %s is not supported.", domainType.getSimpleName())));
        }

        if (!hasConstructor(domainType)) {
            problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Type %s must have default constructor.", domainType.getSimpleName())));
        }
    }
View Full Code Here

        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

    }

    void validateSpecificationScope(final ScopeMetadata scope, final ConfigurationUnits configurationUnits, final ProblemReporter problemReporter) {
        SpecificationScopeMetadata specificationScopeMetadata = (SpecificationScopeMetadata) scope;
        if (specificationScopeMetadata.specification() == null) {
            problemReporter.error(new DomainConfigurationProblem(configurationUnits, SCOPES, "Filtering specification not defined for scope " + scope.getName()));
        }
    }
View Full Code Here

    }

    void validatePredicateScope(final ScopeMetadata scope, final ConfigurationUnits configurationUnits, final ProblemReporter problemReporter) {
        PredicateScopeMetadata predicateScopeMetadata = (PredicateScopeMetadata) scope;
        if (predicateScopeMetadata.predicate() == null) {
            problemReporter.error(new DomainConfigurationProblem(configurationUnits, SCOPES, "Filtering predicate not defined for scope " + scope.getName()));
        }
    }
View Full Code Here

        ProblemReporter problemReporter = failFastReporter();

        for (ConfigurationUnits configurationUnits : domainTypeConfigurationUnits) {
            if (nonPersistentEntityType(configurationUnits.getDomainType())) {
                problemReporter.error(new DomainConfigurationProblem(configurationUnits, format("Administration of non-persistent type %s is not supported.", configurationUnits.getDomainType().getSimpleName())));
                continue;
            }

            configurationUnits = preprocessConfigurationUnits(configurationUnits);
View Full Code Here

TOP

Related Classes of org.lightadmin.core.config.bootstrap.parsing.DomainConfigurationProblem

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.