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

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


    protected MigrationPathManager migrationPathManager;
   
    public void migrateAll() {
        System.out.println( "  Category migration started" );

        Categories vfsCategories = new Categories();
        loadChildCategories("/", vfsCategories);       

        categoriesService.save(migrationPathManager.generatePathForModule("categories.xml"), vfsCategories,null,"");
       
        System.out.println( "  Category migration ended" );
View Full Code Here


    @Override
    public Categories getContent( final Path path ) {
        try {
            final String content = ioService.readAllString( Paths.convert( path ) );
            final Categories categories;

            if ( content.trim().equals( "" ) ) {
                categories = new Categories();
            } else {
                categories = (Categories) xt.fromXML( content );
            }

            return categories;
View Full Code Here

    public CategoriesModelContent getContentByRoot( Path pathToRoot ) {
        CategoriesModelContent categoriesModelContent = new CategoriesModelContent();

        org.uberfire.java.nio.file.Path path = Paths.convert( pathToRoot ).resolve( "categories.xml" );
        if ( !ioService.exists( path ) ) {
            saveWithServerSidePath( path, new Categories() );
        }

        Path categoriesPath = Paths.convert( path );

        categoriesModelContent.setPath( categoriesPath );
View Full Code Here

    protected MigrationPathManager migrationPathManager;
   
    public void migrateAll() {
        System.out.println( "  Category migration started" );

        Categories vfsCategories = new Categories();
        loadChildCategories("/", vfsCategories);       

        categoriesService.save(migrationPathManager.generatePathForModule("categories.xml"), vfsCategories);
       
        System.out.println( "  Category migration ended" );
View Full Code Here

    @Override
    public Categories load(Path path) {
        try {
            final String content = ioService.readAllString(Paths.convert(path));
            final Categories categories;

            if (content.trim().equals("")) {
                categories = new Categories();
            } else {
                categories = (Categories) xt.fromXML(content);
            }

            return categories;
View Full Code Here

    public CategoriesModelContent getContentByRoot(Path pathToRoot) {
        CategoriesModelContent categoriesModelContent = new CategoriesModelContent();

        org.uberfire.java.nio.file.Path path = Paths.convert(pathToRoot).resolve("categories.xml");
        if (!ioService.exists(path)) {
            saveWithServerSidePath(path, new Categories());
        }

        Path categoriesPath = Paths.convert(path);

        categoriesModelContent.setPath(categoriesPath);
View Full Code Here

    @Override
    public Categories load(Path path) {
        try {
            final String content = ioService.readAllString(Paths.convert(path));
            final Categories categories;

            if (content.trim().equals("")) {
                categories = new Categories();
            } else {
                categories = (Categories) xt.fromXML(content);
            }

            return categories;
View Full Code Here

    @Override
    public CategoriesModelContent getContentByRoot(Path pathToRoot) {

        org.uberfire.java.nio.file.Path path = Paths.convert(pathToRoot).resolve("categories.xml");
        if (!ioService.exists(path)) {
            saveWithServerSidePath(path, new Categories());
        }

        Path categoriesPath = Paths.convert(path);

        return new CategoriesModelContent(categoriesPath, load(categoriesPath), loadOverview(categoriesPath));
View Full Code Here

TOP

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

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.