Package org.guvnor.common.services.shared.metadata.model

Examples of org.guvnor.common.services.shared.metadata.model.Overview


        }
    }

    private Overview loadOverview( final Path path,
                                   final String text ) {
        final Overview overview = super.loadOverview( path );
        overview.setPreview( text );
        return overview;
    }
View Full Code Here


                                                       dsl ) );
    }

    private Overview loadOverview( final Path path,
                                   final String dsl ) {
        final Overview overview = super.loadOverview( path );
        overview.setPreview( dsl );
        return overview;
    }
View Full Code Here

        }
    }

    private Overview loadOverview(Path path) {

        Overview overview = new Overview();

        overview.setMetadata(metadataService.getMetadata(path));

        org.uberfire.java.nio.file.Path convertedPath = Paths.convert(path);

        if (sourceServices.hasServiceFor(convertedPath)) {
            overview.setPreview(sourceServices.getServiceFor(convertedPath).getSource(convertedPath));
        }

        overview.setProjectName(projectService.resolveProject(path).getProjectName());

        return overview;
    }
View Full Code Here

        }
    }

    private Overview loadOverview(Path path, String drl) {

        Overview overview = new Overview();

        overview.setMetadata(metadataService.getMetadata(path));

        overview.setPreview(drl);

        overview.setProjectName(projectService.resolveProject(path).getProjectName());

        return overview;
    }
View Full Code Here

        return new CategoriesModelContent(categoriesPath, load(categoriesPath), loadOverview(categoriesPath));
    }

    protected Overview loadOverview(Path path) {

        Overview overview = new Overview();

        overview.setMetadata(metadataService.getMetadata(path));
        overview.setPreview("");
        overview.setProjectName("");

        return overview;
    }
View Full Code Here

        }
    }

    private Overview loadOverview( final Path path,
                                   final String drl ) {
        final Overview overview = super.loadOverview( path );
        overview.setPreview( drl );
        return overview;
    }
View Full Code Here

        }
    }

    private Overview loadOverview(Path path) {

        Overview overview = new Overview();

        overview.setMetadata(metadataService.getMetadata(path));

        org.uberfire.java.nio.file.Path convertedPath = Paths.convert(path);

        if (sourceServices.hasServiceFor(convertedPath)) {
            overview.setPreview(sourceServices.getServiceFor(convertedPath).getSource(convertedPath));
        }

        overview.setProjectName(projectService.resolveProject(path).getProjectName());

        return overview;
    }
View Full Code Here

        }
    }

    private Overview loadOverview(Path path) {

        Overview overview = new Overview();

        try {
            overview.setMetadata(metadataService.getMetadata(path));
        }catch (Exception e ){
            // Some older versions in our example do not have metadata.
            // This should be impossible in any kie-wb version
            logger.error("No metadata found for file: " + path.getFileName() + " full path [" + path.toString()+"]");
        }
        overview.setPreview("");

        overview.setProjectName(projectService.resolveProject(path).getProjectName());

        return overview;
    }
View Full Code Here

TOP

Related Classes of org.guvnor.common.services.shared.metadata.model.Overview

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.