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();
}
}
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;
}
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);
}
Aggregations