Search in sources :

Example 1 with StaticPages

use of com.developmentontheedge.be5.metadata.model.StaticPages in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadPages.

public static StaticPages reloadPages(final Path file, final Module target) throws ReadException {
    checkProject(target.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadPages(file, target);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 2 with StaticPages

use of com.developmentontheedge.be5.metadata.model.StaticPages in project be5 by DevelopmentOnTheEdge.

the class YamlDeserializer method reloadPages.

public StaticPages reloadPages(final Path path, final Module target) throws ReadException {
    final StaticPages pages = new StaticPages(target);
    final StaticPagesDeserializer deserializer = new StaticPagesDeserializer(path, pages);
    deserializer.deserialize();
    DataElementUtils.saveQuiet(pages);
    return pages;
}
Also used : StaticPages(com.developmentontheedge.be5.metadata.model.StaticPages) LanguageStaticPages(com.developmentontheedge.be5.metadata.model.LanguageStaticPages)

Example 3 with StaticPages

use of com.developmentontheedge.be5.metadata.model.StaticPages in project be5 by DevelopmentOnTheEdge.

the class YamlSerializer method serialize.

public void serialize(final StaticPages pages) throws WriteException {
    this.fileSystem = new ProjectFileSystem(pages.getProject());
    new StaticPagesSerializer().serialize(pages);
}
Also used : ProjectFileSystem(com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)

Aggregations

LanguageStaticPages (com.developmentontheedge.be5.metadata.model.LanguageStaticPages)1 StaticPages (com.developmentontheedge.be5.metadata.model.StaticPages)1 ProjectFileSystem (com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)1 YamlDeserializer (com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)1