Search in sources :

Example 1 with ProjectFileSystem

use of com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem in project be5 by DevelopmentOnTheEdge.

the class YamlDeserializer method reloadEntity.

public Entity reloadEntity(final Entity oldEntity) throws ReadException {
    this.fileSystem = new ProjectFileSystem(oldEntity.getProject());
    this.setProject(oldEntity.getProject());
    final Entity entity = this.readEntity(oldEntity.getModule(), oldEntity.getName());
    if (oldEntity.getPrototype() != null) {
        @SuppressWarnings("unchecked") final BeModelCollection<BeModelElement> prototype = (BeModelCollection<BeModelElement>) oldEntity.getPrototype();
        entity.merge(prototype, true, true);
    }
    EntitiesFactory.addToModule(entity, oldEntity.getModule());
    return entity;
}
Also used : ProjectFileSystem(com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem) Entity(com.developmentontheedge.be5.metadata.model.Entity) BeModelElement(com.developmentontheedge.be5.metadata.model.base.BeModelElement) BeModelCollection(com.developmentontheedge.be5.metadata.model.base.BeModelCollection)

Example 2 with ProjectFileSystem

use of com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem in project be5 by DevelopmentOnTheEdge.

the class YamlSerializer method serialize.

public void serialize(final PageCustomizations customizations) throws WriteException {
    this.fileSystem = new ProjectFileSystem(customizations.getProject());
    new CustomizationSerializer().serialize(customizations.getModule());
}
Also used : ProjectFileSystem(com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)

Example 3 with ProjectFileSystem

use of com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem in project be5 by DevelopmentOnTheEdge.

the class YamlSerializer method serialize.

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

Example 4 with ProjectFileSystem

use of com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem in project be5 by DevelopmentOnTheEdge.

the class YamlSerializer method serialize.

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

Example 5 with ProjectFileSystem

use of com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem in project be5 by DevelopmentOnTheEdge.

the class YamlSerializer method serialize.

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

Aggregations

ProjectFileSystem (com.developmentontheedge.be5.metadata.serialization.ProjectFileSystem)10 Project (com.developmentontheedge.be5.metadata.model.Project)3 Path (java.nio.file.Path)3 IOException (java.io.IOException)2 WriteException (com.developmentontheedge.be5.metadata.exception.WriteException)1 Entity (com.developmentontheedge.be5.metadata.model.Entity)1 ProjectFileStructure (com.developmentontheedge.be5.metadata.model.ProjectFileStructure)1 BeModelCollection (com.developmentontheedge.be5.metadata.model.base.BeModelCollection)1 BeModelElement (com.developmentontheedge.be5.metadata.model.base.BeModelElement)1 JULLogger (com.developmentontheedge.be5.metadata.util.JULLogger)1 ProcessController (com.developmentontheedge.be5.metadata.util.ProcessController)1 FileSystems (java.nio.file.FileSystems)1 FileVisitResult (java.nio.file.FileVisitResult)1 Files (java.nio.file.Files)1 LinkOption (java.nio.file.LinkOption)1 Paths (java.nio.file.Paths)1 SimpleFileVisitor (java.nio.file.SimpleFileVisitor)1 StandardWatchEventKinds (java.nio.file.StandardWatchEventKinds)1 WatchEvent (java.nio.file.WatchEvent)1 WatchKey (java.nio.file.WatchKey)1