Package org.guvnor.common.services.project.builder.service

Examples of org.guvnor.common.services.project.builder.service.BuildValidationHelper.validate()


        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
        final IncrementalBuildResults results = new IncrementalBuildResults( gav );
        final BuildValidationHelper validator = getBuildValidationHelper( resource );
        if ( validator != null ) {
            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                    results.addAddedMessage( convertValidationMessage( validationMessage ) );
                }
View Full Code Here


                        }

                        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
                        final BuildValidationHelper validator = getBuildValidationHelper( resource );
                        if ( validator != null ) {
                            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

                            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                                    nonKieResourceValidatorAddedMessages.add( validationMessage );
                                }
View Full Code Here

                    //Resource Type might require "external" validation (i.e. it's not covered by Kie)
                    final BuildValidationHelper validator = getBuildValidationHelper( path );
                    if ( validator != null ) {
                        final org.uberfire.backend.vfs.Path vfsPath = Paths.convert( path );
                        final List<ValidationMessage> addedValidationMessages = validator.validate( vfsPath );
                        nonKieResourceValidationHelperMessages.put( path,
                                                                    addedValidationMessages );
                    }

                    //Add new resource
View Full Code Here

            //Resource Type might require "external" validation (i.e. it's not covered by Kie)
            final IncrementalBuildResults results = new IncrementalBuildResults( gav );
            final BuildValidationHelper validator = getBuildValidationHelper( resource );
            if ( validator != null ) {
                final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

                if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                    for ( ValidationMessage validationMessage : addedValidationMessages ) {
                        results.addAddedMessage( convertValidationMessage( validationMessage ) );
                    }
View Full Code Here

                            }

                            //Resource Type might require "external" validation (i.e. it's not covered by Kie)
                            final BuildValidationHelper validator = getBuildValidationHelper( resource );
                            if ( validator != null ) {
                                final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

                                if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                                    for ( ValidationMessage validationMessage : addedValidationMessages ) {
                                        nonKieResourceValidatorAddedMessages.add( validationMessage );
                                    }
View Full Code Here

        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
        final IncrementalBuildResults results = new IncrementalBuildResults( gav );
        final BuildValidationHelper validator = getBuildValidationHelper( resource );
        if ( validator != null ) {
            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                    results.addAddedMessage( convertValidationMessage( validationMessage ) );
                }
View Full Code Here

                        }

                        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
                        final BuildValidationHelper validator = getBuildValidationHelper( resource );
                        if ( validator != null ) {
                            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );

                            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                                    nonKieResourceValidatorAddedMessages.add( validationMessage );
                                }
View Full Code Here

                    //Resource Type might require "external" validation (i.e. it's not covered by Kie)
                    final BuildValidationHelper validator = getBuildValidationHelper( path );
                    if ( validator != null ) {
                        final org.uberfire.backend.vfs.Path vfsPath = Paths.convert( path );
                        final List<ValidationMessage> addedValidationMessages = validator.validate( vfsPath );
                        nonKieResourceValidationHelperMessages.put( path,
                                                                    addedValidationMessages );
                    }

                    //Add new resource
View Full Code Here

        //Validate paths that are not handled by Kie
        for ( Map.Entry<Path, BuildValidationHelper> e : nonKieResourceValidationHelpers.entrySet() ) {
            final Path resource = e.getKey();
            final BuildValidationHelper validator = e.getValue();
            final List<ValidationMessage> validationMessages = validator.validate( Paths.convert( resource ) );
            if ( !( validationMessages == null || validationMessages.isEmpty() ) ) {
                for ( ValidationMessage validationMessage : validationMessages ) {
                    results.addBuildMessage( convertValidationMessage( validationMessage ) );
                }
                nonKieResourceValidationHelperMessages.put( resource,
View Full Code Here

        //Resource Type might require "external" validation (i.e. it's not covered by Kie)
        final BuildValidationHelper validator = getBuildValidationHelper( resource );
        if ( validator != null ) {
            nonKieResourceValidationHelpers.put( resource,
                                                 validator );
            final List<ValidationMessage> addedValidationMessages = validator.validate( Paths.convert( resource ) );
            if ( !( addedValidationMessages == null || addedValidationMessages.isEmpty() ) ) {
                for ( ValidationMessage validationMessage : addedValidationMessages ) {
                    results.addAddedMessage( convertValidationMessage( validationMessage ) );
                }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.