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

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


        }
    }

    @Override
    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 );
        categoriesModelContent.setCategories( getContent( categoriesPath ) );

        return categoriesModelContent;
    }
View Full Code Here


        }
    }

    @Override
    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);
        categoriesModelContent.setCategories(load(categoriesPath));

        return categoriesModelContent;
    }
View Full Code Here

            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.CategoriesModelContent

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.