Search in sources :

Example 1 with SecurityCollection

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

the class Serialization method reloadSecurity.

public static SecurityCollection reloadSecurity(final Path file, final Project project) throws ReadException {
    checkProject(project);
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadSecurityCollection(file, project);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 2 with SecurityCollection

use of com.developmentontheedge.be5.metadata.model.SecurityCollection 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 3 with SecurityCollection

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

the class YamlDeserializer method reloadSecurityCollection.

public SecurityCollection reloadSecurityCollection(final Path path, final Project project) throws ReadException {
    final SecurityCollection security = project.newSecurityCollection();
    final SecurityDeserializer securityDeserializer = new SecurityDeserializer(path, security);
    securityDeserializer.deserialize();
    DataElementUtils.saveQuiet(securityDeserializer.getResult());
    return securityDeserializer.getResult();
}
Also used : SecurityCollection(com.developmentontheedge.be5.metadata.model.SecurityCollection)

Aggregations

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